/* ==========================================================================
   1. GLOBAL SYSTEM RESETS & SCROLL MECHANICS
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   2. CINEMATIC CAROUSEL MAIN VIEWPORT FRAME
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100vw;
    height: 90vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    user-select: none;
}

.carousel-track {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: grab;
    will-change: transform;
}

    .carousel-track:active {
        cursor: grabbing;
    }

.carousel-slide {
    text-align: center;
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track .carousel-slide .item-content {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 70px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1;
        background-color: rgba(238, 27, 37, 0.6);
        display: flex;
        padding: 40px 150px 50px;
        -webkit-clip-path: polygon(8% 0, 100% 0%, 92% 100%, 0% 100%);
        clip-path: polygon(8% 0, 100% 0%, 92% 100%, 0% 100%);
    }

@media only screen and (max-width: 1199px) {
    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 60px;
    }

    .pagination-icon-btn .pagination-fa-icon i:before {
        font-size: 35px !important;
    }
}


@media only screen and (max-width: 991px) {
    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 50px;
        padding: 40px 100px;
    }
}

@media only screen and (max-width: 767px) {
    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 36px;
        padding: 35px 100px;
    }

    .pagination-icon-btn .pagination-fa-icon i:before {
        font-size: 25px;
    }
}

@media only screen and (max-width: 575px) {
    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 30px;
        padding: 30px 80px;
    }
}

@media only screen and (max-width: 479px) {
    .carousel-track .carousel-slide .item-content .big-text {
        font-size: 20px;
        padding: 30px 50px;
    }
}

/* ==========================================================================
   3. PERFORMANCE LAZY-IMAGE TRANSITIONS
   ========================================================================== */
.lazy-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

    .lazy-slide-img.loaded {
        opacity: 1;
    }
/* Bottom shadow backdrop gradient protecting typography readability */
.slide-overlay {
    position: absolute;
    bottom: 120px; /* Offset room ensures text does not collide with menu grid */
    left: 0;
    width: 100%;
    padding: 80px 40px 60px 40px;
    box-sizing: border-box;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
}

    .slide-overlay h2 {
        margin: 0 0 12px 0;
        font-size: 70px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

    .slide-overlay p {
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.5;
        color: #e5e5e5;
        max-width: 700px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

.no-artworks-fallback {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: system-ui, sans-serif;
    color: #fff;
}

.no-artworks-content h2 {
    color: #d60a17;
    margin: 0 0 10px 0;
}

/* ==========================================================================
   4. SLIDING TEXT/ICON PAGINATION STRUCTURES
   ========================================================================== */
.pagination-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    /*    height: 100px; */
    background-color: #d60a17; /* Solid red corporate primary brand color */
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.4);
}

    .pagination-wrapper::-webkit-scrollbar {
        display: none;
    }

    .pagination-wrapper.is-dragging {
        cursor: grabbing;
    }

.pagination-swipe-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    z-index: 11;
    display: none;
    gap: 5px;
    transform: translateX(-50%);
    pointer-events: none;
}

    .pagination-swipe-indicator.is-visible {
        display: flex;
    }

.pagination-swipe-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .pagination-swipe-dot.is-active {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.25);
    }

.carousel-icon-pagination-track {
    display: flex;
    height: 100%;
    width: max-content;
}
/* New layout container class to handle narrow dataset lists */
.pagination-wrapper.centered-track {
    display: flex;
    justify-content: center;
}

    .pagination-wrapper.centered-track .carousel-icon-pagination-track {
        transform: none !important; /* Forces the flex-bar to lock statically into dead center */
    }

.pagination-icon-link-wrapper {
    width: 200px;
    text-decoration: none;
    display: block;
    color: inherit;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
    pointer-events: none;
}

    .pagination-icon-link-wrapper .pagination-fa-icon,
    .pagination-icon-link-wrapper h6 {
        pointer-events: auto;
        cursor: pointer;
    }

    .pagination-icon-link-wrapper:last-child {
        border-right: none;
    }

.pagination-icon-btn {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 10px 24px;
    height: 150px;
    width: 100%; /* Uniform width ensures precision track centering calculations */
    box-sizing: border-box;
    background-color: #d60a17;
    text-align: center;
    border: 3px double rgba(255, 255, 255, 0.15);
    box-shadow: rgb(198, 15, 24) 0px 0px 15px inset;
}

@media only screen and (max-width: 991px) {
    .pagination-icon-btn h6 {
        font-size: 16px;
        line-height: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .pagination-wrapper {
        bottom: auto !important;
    }

    .pagination-icon-btn h6 {
        font-size: 15px;
        line-height: 20px;
    }

    .pagination-icon-btn .pagination-fa-icon {
        line-height: 1;
        max-width: max-content;
    }

        .pagination-icon-btn .pagination-fa-icon i {
            max-width: max-content;
            display: flex;
        }

            .pagination-icon-btn .pagination-fa-icon i:before {
                font-size: 25px;
            }

    .pagination-icon-link-wrapper {
        width: 100%;
        max-height: 100%;
    }

    .pagination-icon-btn {
        width: 100%;
        display: flex;
        padding: 18px 5px 22px;
        box-shadow: rgb(198, 15, 24) 0px 0px 10px inset;
        border: 2px double rgba(255, 255, 255, 0.15);
    }

    .pagination-icon-link-wrapper.active, .pagination-item-node.active .pagination-icon-btn {
        box-shadow: rgb(198, 15, 24) 0px 0px 10px inset;
        max-height: 100%
    }

    .carousel-page-item {
        width: 50vw;
        flex: 0 0 50vw;
        height: 110px !important;
    }
}
/* ==========================================================================
   5. FONT AWESOME ICON ELEMENTS SIZING RULES
   ========================================================================== */
.pagination-icon-btn .pagination-fa-icon {
    line-height: 1;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

    .pagination-icon-btn .pagination-fa-icon i {
        margin-bottom: 5px;
        display: block;
    }

        .pagination-icon-btn .pagination-fa-icon i:before {
            font-size: 52px;
            color: #ffffff;
        }

.pagination-icon-btn h6 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    white-space: wrap;
    overflow: hidden;
    width: 100%;
}

.pagination-icon-link-wrapper:hover .pagination-fa-icon {
    transform: scale(1.1);
}

/* Active Navy Blue Focus State configuration */
.pagination-icon-link-wrapper.active {
    background-color: #0b2545;
}

    .pagination-icon-link-wrapper.active .pagination-icon-btn {
        background-color: #0b2545;
        box-shadow: rgb(198, 15, 24) 0px 0px 15px inset;
    }

/* ==========================================================================
   6. RESPONSIVE BREAKPOINT SCALES (MOBILE OVERRIDES)
   ========================================================================== */
@media (max-width: 768px) {
    .carousel-container {
        height: auto;
        min-height: 50vh;
    }

    .slide-overlay {
        bottom: 0;
        position: relative;
        padding: 30px 20px;
        background: #111;
    }

        .slide-overlay h2 {
            font-size: 1.6rem;
        }


        .slide-overlay p {
            font-size: 0.95rem;
        }
}

/* Fix structural height loops within Owl item elements */
#main-carousel.owl-carousel,
#main-carousel .owl-stage-outer,
#main-carousel .owl-stage,
#main-carousel .owl-item,
#main-carousel .carousel-slide {
    height: 90vh;
    min-width: 100%;
}

/* Let the bottom track display as a single unified sliding block */
#pagination-carousel .owl-stage {
    display: flex !important;
}

#pagination-carousel .owl-item {
    float: none !important;
}

/* Tweak Active Navy Focus Overrides based on new item wrapper classes */
.pagination-item-node.active {
    background-color: #0b2545;
}

    .pagination-item-node.active .pagination-icon-btn {
        background-color: #0b2545;
        box-shadow: rgb(198, 15, 24) 0px 0px 15px inset;
    }

/* Ensure affordance indicators interact cleanly with the wrapper element */
.pagination-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 10;
}
