/* Global */
section.content-left p, section.content-right p, section.timeline p {
    color: var(--black);
}

.owl-stage,
.owl-item {
    display: flex;
    align-items: stretch;
}

.owl-nav {
    margin-top: 0 !important;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: -1;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: relative;
    background: var(--red) !important;
    border-radius: 50% !important;
    width: 41px;
    height: 41px;
    opacity: 1 !important;
    overflow: hidden;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.owl-next {
    right: -65px;
}

.owl-prev {
    left: -65px;
}

.owl-next:hover,
.owl-prev:hover {
    box-shadow: 0px 4px 20px 0px rgba(255, 2, 0, 0.7);
    transition: 0.5s ease-in-out;
}

/* .owl-next:after,
.owl-prev:after {
    content: "";
    position: absolute;
    top: 0;
    left: -43%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(229, 172, 142, 0), rgba(255, 255, 255, 0.25) 50%, rgba(229, 172, 142, 0));
    transform: skewX(0deg);
    transition: transform 0.8s;
}

.owl-next:hover::after,
.owl-prev:hover::after {
    transform: translateX(480%);
} */

.close-btn {
    position: absolute;
    top: -50px;
    right: -101px;
    background: none;
    border: none;

    @media (max-width: 991px) {
        right: 0;
        top: -30px;
    }
}


/* Global */

/* Banner */
section.banner .content-inner {
    max-width: 645px;
}

/* Banner */

/* Timeline section */
section.timeline .heading h2 {
    margin-bottom: 0;
}

section.timeline .heading {
    text-align: center;
    margin-bottom: 31px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

section.timeline .card-content {
    @media (max-width: 1749px) {
        padding: 0 65px;
    }

    @media (max-width: 575px) {
        padding: 0;
    }
}

section.timeline .item {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(155, 3, 2, 0.15);
    background-color: #FFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.timeline .item.active-card {
    border: 1px solid var(--red);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

section.timeline .item h3 {
    margin-bottom: 20px;
}

section.timeline .owl-nav {
    bottom: 25%;

    @media (max-width: 575px) {
        bottom: 0;
        position: relative;
        justify-content: center;
        gap: 10px;
        margin-top: 20px !important;
    }
}

@media (max-width: 575px) {
    section.timeline .owl-nav .owl-next {
        right: 0;
    }

    section.timeline .owl-nav .owl-prev {
        left: 0;
    }
}

section.timeline .owl-item {
    padding: 0 0 7px 3px;
}

section.timeline .heritage-timeline {
    position: relative;
    margin-top: 50px;

    @media (max-width: 575px) {
        display: none;
    }
}

section.timeline .timeline-dots {
    display: flex;
    justify-content: space-around;
}

section.timeline .timeline-dots:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    height: 3px;
    background: var(--red);
}

section.timeline .timeline-dots .dot {
    width: 30px;
    height: 30px;
    background: var(--black);
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 1;
}

section.timeline .timeline-dots .dot.active {
    background: var(--red);
}


/* Timeline section */


/* Video section */
section.video img {
    cursor: pointer;
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

section.video .video-popover {
    border: none;
    background: rgba(0, 0, 0, 0.9);
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

section.video .popover-content {
    position: relative;
    width: 50%;

    @media (max-width: 991px) {
        width: 90%;
    }
}

section.video .video-popover:popover-open {
    display: flex;
}

section.video .video-iframe {
    aspect-ratio: 16 / 9;
}

section.video .video-iframe iframe,
section.video .video-iframe video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Video section */

/* Gallery section */
section.gallery h2 {
    margin-bottom: 50px;
    text-align: center;

    @media (max-width: 767px) {
        margin-bottom: 30px;
    }
}

section.gallery .gallery-content {
    @media (max-width: 1749px) {
        padding: 0 65px;
    }

    @media (max-width: 575px) {
        padding: 0;
    }
}

section.gallery .gallery-img {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
}

section.gallery .gallery-img img {
    object-fit: cover;
    object-position: center;
    min-height: 250px;
}

section.gallery .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

section.gallery .gallery-img:hover .overlay {
    opacity: 1;
}

section.gallery .owl-nav {
    top: 50%;
    transform: translateY(-50%);

    @media (max-width: 575px) {
        top: unset;
        transform: unset;
        justify-content: center;
        gap: 10px;
        margin-top: 20px !important;
        position: relative;
    }

}

@media (max-width: 575px) {
    section.gallery .owl-nav .owl-next {
        right: 0;
    }

    section.gallery .owl-nav .owl-prev {
        left: 0;
    }
}


.gallery-popover {
    border: none;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0;
}

.gallery-popover .owl-nav {
    top: 50%;
    transform: translateY(-50%);

    @media (max-width: 991px) {
        top: unset;
        transform: unset;
        justify-content: center;
        gap: 10px;
        margin-top: 10px !important;
    }
}

.gallery-popover .owl-next {
    right: -101px;

    @media (max-width: 991px) {
        right: 0;
    }
}

.gallery-popover .owl-prev {
    left: -101px;

    @media (max-width: 991px) {
        left: 0;
    }
}

.gallery-popover:popover-open {
    display: flex;
}

.gallery-popover-content {
    position: relative;
    max-width: 80%;
    width: 900px;
}


.gallery-popover .image-counter {
    position: absolute;
    top: -50px;
    left: -101px;
    color: var(--bs-white);
    font-family: var(--roboto-regular);
    font-size: 18px;

    @media (max-width: 991px) {
        left: 0;
        top: -30px;
    }
}

/* Gallery section */