/* ==========================================================================
   About Us Gallery Slider
   ========================================================================== */

.ljt-about-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    /* Match typography and general colors to existing Long Journey styles */
}

/* --- Main Image Area --- */
.ljt-about-gallery-main {
    position: relative;
    width: 100%;
    /* Keep a consistent landscape aspect ratio */
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #07101a; /* Match Long Journey dark background */
}

/* Individual Slides */
.ljt-about-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease-in-out, visibility 600ms ease-in-out;
    z-index: 1;
}

.ljt-about-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* The Image inside the slide (Ken Burns Zoom effect) */
.ljt-about-gallery-slide .ljt-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transform: scale(1.0);
    transition: transform 8s linear;
}

/* When active, trigger the slight zoom */
.ljt-about-gallery-slide.is-active .ljt-main-img {
    transform: scale(1.05);
}

/* --- Thumbnail Strip --- */
.ljt-about-gallery-thumbs {
    display: flex;
    gap: 15px;
    justify-content: center; /* Center on desktop */
    width: 100%;
    padding: 10px 0;
}

/* Thumbnail Buttons */
.ljt-about-gallery-thumb {
    position: relative;
    flex: 0 0 calc(20% - 12px); /* Desktop: 5 items */
    aspect-ratio: 16 / 9;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 300ms ease;
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ljt-about-gallery-thumb:focus-visible {
    outline: 2px solid #C8A047;
    outline-offset: 4px;
}

.ljt-about-gallery-thumb:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.ljt-about-gallery-thumb.is-active {
    opacity: 1;
    border-color: #C8A047;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(200, 160, 71, 0.2);
    z-index: 2;
}

/* Thumbnail Image */
.ljt-about-gallery-thumb .ljt-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Let the button handle clicks */
    border-radius: 6px; /* slightly smaller to fit inside border */
}

/* Screen Reader Only Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Empty State */
.ljt-about-gallery-empty {
    padding: 40px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .ljt-about-gallery-thumb {
        flex: 0 0 calc(33.333% - 10px); /* 3 thumbs on tablet */
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .ljt-about-gallery-thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px; /* space for scrollbar */
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for cleaner look if desired, but good for UX */
        scrollbar-width: none;
    }
    
    .ljt-about-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .ljt-about-gallery-thumb {
        flex: 0 0 75%; /* 1 partial thumb visible to indicate scroll */
        scroll-snap-align: center;
    }
}
