﻿/* =====================================================
   CAROUSEL VISIBILITY
   ===================================================== */
.desktop-carousel {
    display: block;
}

.mobile-carousel {
    display: none;
}

/* =====================================================
   CAROUSEL BASE
   ===================================================== */
#siteCarousel,
#desktopCarousel,
#mobileCarousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =====================================================
   CAROUSEL ITEM
   ===================================================== */
.carousel-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6; /* Desktop hero ratio */
    overflow: hidden;
}

    /* =====================================================
   IMAGE (ONE IMAGE ONLY)
   ===================================================== */
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* KEY FIX */
        object-position: center; /* Smart crop */
        display: block;
    }

/* =====================================================
   OVERLAY
   ===================================================== */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45) );
    pointer-events: none;
    z-index: 1;
}

/* =====================================================
   CAPTION
   ===================================================== */
.carousel-caption {
    position: absolute;
    z-index: 2;
    bottom: 22%;
    right: 8%;
    left: auto;
    text-align: right;
    max-width: 520px;
}

.caption-f-l {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
}

.caption-s-l {
    color: #fff;
    font-size: 14px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* =====================================================
   TAG
   ===================================================== */
.carousel-tag {
    color: var(--gold-light);
    background: linear-gradient( 135deg, color-mix(in srgb, var(--gray-base) 80%, transparent), color-mix(in srgb, var(--gray-base) 40%, transparent) );
    border: 1px solid var(--primary-base1);
    border-radius: 1rem;
    padding: .25rem .6rem;
    margin-bottom: .75rem;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================================
   NAV ARROWS
   ===================================================== */
#imgPrev,
#imgNext {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,.6));
    transition: transform .6s ease-in-out;
}

    #imgPrev:hover,
    #imgNext:hover {
        transform: rotate(360deg);
    }

/* =====================================================
   MOBILE OPTIMIZATION
   ===================================================== */
@media (max-width: 768px) {

    .carousel-item {
        aspect-ratio: 4 / 5; /* Mobile friendly */
    }

        .carousel-item img {
            object-position: center top; /* Keep faces/content */
        }

    .carousel-caption {
        bottom: 8%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }

    .caption-f-l {
        font-size: 1.3rem;
    }

    .caption-s-l {
        font-size: .9rem;
    }
}
