.single-post .post .post-desc-wrapper .post-footer .post-links a {
    color: #fff !important;
}

.race-schedule-list:not(.sim-schedule-list) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sim-schedule-list {
    display: flex;
    flex-wrap: wrap;
}

.race-schedule-list .race-item {
    width: 33.333%;
    margin-bottom: 40px;
}

.race-schedule-list .race-item .race-item-inner {
    border-style: solid;
    border-color: #FFFFFF;
    border-width: 2px 2px 2px 2px;
    border-radius: 10px 10px 10px 10px;
    margin-top: 10px;
    align-content: center;
    align-items: center;
    padding: 30px 12px 30px 12px;
    margin: 0 10px;
}

.race-schedule-list .race-item .race-date {
    font-size: 21px;
    line-height: 25px;
    font-weight: 600;
    letter-spacing: 0px;
}

.race-schedule-list .race-item .countdown {
    display: flex;
}

.race-schedule-list .race-item .countdown .countdown-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.race-schedule-list .race-item .countdown .countdown-block span {
    width: 100%;
    text-align: center;
}

.race-schedule-list .race-item .countdown .countdown-block span:nth-child(1) {
    color: #ffffff;
    background: #cf142b;
    padding: 1px;
    border-radius: 50px;
    font-size: 20px;
    margin-bottom: 7px;
    font-weight: 900;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
}

@media (max-width:960px) {
    .race-schedule-list .race-item {
        width: 50%;
    }
}

@media (max-width:767px) {
    .race-schedule-list .race-item {
        width: 100%;
    }
}

/* Next Race */

.next-race-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.next-race-container .race-item {
    width: 100%;
    margin-bottom: 40px;
}

.next-race-container .race-item .race-item-inner {
}

.next-race-container .race-item .race-date {
    font-weight: 600;
    letter-spacing: 0px;
}

.next-race-container .race-item .countdown {
    display: flex;
}

.next-race-container .race-item .countdown .countdown-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.next-race-container .race-item .countdown .countdown-block span {
    width: 100%;
    text-align: center;
}

.next-race-container .race-item .countdown .countdown-block span:nth-child(1) {
    color: #ffffff;
    background: #cf142b;
    padding: 1px;
    border-radius: 50px;
    font-size: 20px;
    margin-bottom: 7px;
    font-weight: 900;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
}

#custom-gallery-wrapper #custom-gallery-preview {
    display: flex;
    flex-wrap: wrap;
}

.all-galleries-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.all-galleries-wrapper .gallery-group {
    width: 32.164%;
}

@media (max-width: 960px) {
    .all-galleries-wrapper .gallery-group {
        width: 100%;
    }    
}

.all-galleries-wrapper .gallery-group .gallery-post-title {
    color: #ffffff;
}

.all-galleries-wrapper .gallery-group .gallery-post-thumbnail img.gallery-modal-btn {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-gallery .swiper-slide {
    justify-content: center;
    display: flex;
}

.custom-gallery .swiper-slide img {
    max-width: 100%;
    max-height: 88vh;
    width: 100%;
    object-fit: contain;
}

.custom-gallery.swiper:not(.swiper-modal) {
    visibility: hidden;
    height: 0;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: #000; /* Fallback color */
}

/* Modal Content */
.modal-content {
    margin: auto;
    padding: 20px;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
}

.modal-header {
    width: 100%;
}

.modal-body {
    width: 100%;
    margin-top: 20px;
}

.modal-body .custom-gallery.swiper-backface-hidden .swiper-slide {
    justify-content: center;
    display: flex;
    max-height: 90vh;
}

.modal-body .custom-gallery.swiper-backface-hidden .swiper-slide img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover {
    color: #FFFFFF !important;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.gallery-post-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
}

.floating-box {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 50px;
  white-space: nowrap;
  display: none;
  z-index: 10;
  font-size: 14px;
}

.floating-box i {
    padding: 8px 10px;
    margin-right: 10px;
    background-color: #cf142b;
    border-radius: 50px;
}

#galleryModal .swiper-button-next, #galleryModal .swiper-button-prev {
    color: #cf142b !important;
}

#galleryModal .swiper-button-next:after, #galleryModalllery .swiper-button-prev:after {
    font-weight: 800;
}

.gallery-filters button[type="submit"] {
    background-color: #cf142b;
    color: #fff;
    border: none;
    padding: 0px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    height: 42px;
}

.gallery-filters select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #000;
}

@media (max-width: 768px) {
    .gallery-filters select {
        width: 100%;
        margin-bottom: 10px;
    }    
}

.gallery-filters select:focus {
    background-color: #fff !important;
    color: #000;
    outline: none;
}
.gallery-filters select option:focus {
    color: #000;
    background-color: #cf142b !important;
}

#galleryModal .swiper-horizontal>.swiper-pagination-bullets, #galleryModal .swiper-pagination-bullets.swiper-pagination-horizontal, #galleryModal .swiper-pagination-custom, #galleryModal .swiper-pagination-fraction {
    bottom: 60px !important;
    top: unset !important;
}

#galleryModal .swiper-pagination-bullet-active {
    background: #cf142b !important;
}

#galleryModal .swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
}

#galleryModal .swiper-pagination-bullet:not(.swiper-pagination-bullet-active-main) {
    opacity: 60% !important;
}

@media (max-width: 767px) {
    #galleryModal .swiper-3d .swiper-wrapper {
        align-items: center;
    }

    #galleryModal .modal-content {
        height: 100%;
    }
}

/* VIDEO MASK */
.section_video .mask {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  background: rgb(0, 0, 0, 0.5) !important;
}

.single-post .mcb-column-inner P {
    color: #ffffff !important;
}