/* Swiper Container Styling */
.swiper {
    width: 100%;
    max-width: 1600px;
    /* ADJUST: Limit swiper total width */
    max-height: none;

    /* --- GLOBAL SLIDER CONTROLS (Adjust these to change every slider) --- */
    --slide-width: 320px;
    /* Width of one image card */
    --slide-height: 30rem;
    /* Height of one image card */
    --slide-gap: 50;
    /* Space between images (use with 'slide' effect) */

    --slides-per-view: auto;
    /* How many images to show? (e.g. 1, 2, 3 or 'auto') */
    --centered-active: 'false';
    /* Center active slide? Recommended 'true' for 'Scale' effect below */
    --active-scale: 2.1;
    /* How much to grow the active slide (e.g. 1.1 or 1.2) */
    --initial-index: 0;
    /* Which image to start on? (0 = first, 1 = second...) */

    /* EFFECT OPTIONS: 
       - 'slide' (Default)
       - 'coverflow' (3D effect)
       - 'fade' (Smooth transition - best with 1 slide)
       - 'cards' (Stacked like a deck)
       - 'flip' (3D flip)
       - 'cube' (3D cube)
    */
    --slider-effect: 'coverflow';
}

/* --- INDIVIDUAL SLIDER CONTROLS (Target specific sections) --- */

.section-4 {
    --slides-per-view: 2;
    --slide-width: 500px;
    --slider-effect: 'slide';
    --slide-gap: 80;
    /* Unitless pixels for JS parsing */
}

.section-5 {
    --slides-per-view: 4;
    --slide-width: 500px;
    --slider-effect: 'slide';
}

.section-6 {
    --slides-per-view: auto;
    --slide-width: 33rem;
    --slide-height: 44rem;
    --slider-effect: 'slide';
}

.section-8 {
    --slides-per-view: 2;
    --slide-height: 19rem;
    --slide-width: 9rem;
    --slide-gap: 6;
    --slider-effect: 'slide';
}

.section-3 {
    --slider-effect: 'coverflow';
}

.section-7 {
    --slider-effect: 'coverflow';
}

.section-7 .swiper-slide {
    border: none;
    /* Remove frame from container */
    overflow: visible;
    /* Ensure image border isn't clipped */
}

.section-7 .swiper-slide img {
    border: none;
    /* Removed white border */
    border-radius: 24px;
    box-sizing: border-box;
}


.section-9 {
    --slide-height: 25rem;
    --slider-effect: 'slide';
}

.section-10 {
    --slides-per-view: 3;
    --slider-effect: 'slide';
}

.section-13 {
    --slide-height: 22rem;
    /* Increased height */
    --slide-width: 44rem;
    /* Increased width */
}

.section-14 {
    --slides-per-view: 3;
    --slider-effect: 'slide';
}

.section-15 {
    --slide-height: 7rem;
    --slide-width: 9rem;
    --slide-gap: 6;
    --slider-effect: 'slide';
}

.section-15 .swiper-pagination {
    display: none !important;
}

/* Ensure pagination is always on top layer and not covered by scaling slides */
.swiper-pagination {
    z-index: 100 !important;
    bottom: 0px !important;
}

/* Add padding to container so pagination doesn't overlap the actual slide content */
.swiper {
    padding-bottom: 40px !important;
}



.swiper-slide {
    background-position: center;
    background-size: cover;
    width: var(--slide-width);
    /* ADJUST: Horizontal width of each image card (dynamic) */
    height: var(--slide-height);
    /* ADJUST: Vertical height of each image card (dynamic) */

    /* Centering content inside the slide */
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #1e293b; */
    /* background-color: rgba(255, 255, 255, 0); */
    /* ADJUST: Control light blue transparent background here */
    /* Slate 800 */
    border-radius: 24px;
    /* ADJUST: Roundness of card corners */
    overflow: hidden;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); */
    /* ADJUST: Shadow depth under cards */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Active Slide Scaling */
.swiper-slide-active {
    transform: scale(var(--active-scale, 1.1));
    z-index: 10;
    /* Ensure active slide stays on top */
}

/* Image Styling */
.swiper-slide img {
    display: block;
    width: 100%;
    /* ADJUST: Image width (usually 100%) */
    height: 100%;
    /* ADJUST: Image height (usually 100%) */
    object-fit: contain;
    /* ADJUST: Change to 'contain' for no cropping, or 'cover' for uniform grid */
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.1);
    /* ADJUST: Image zoom on hover */
}

/* Custom Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(190, 190, 190, 0.055);
    width: 55px;
    /* ADJUST: Circle size of arrows */
    height: 55px;
    /* ADJUST: Circle size of arrows */
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.4rem;
    /* ADJUST: Arrow icon size */
    font-weight: bold;
}

/* Pagination Dots */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    /* ADJUST: Size of inactive dots */
    height: 12px;
    /* ADJUST: Size of inactive dots */
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
    /* Blue 500 */
    width: 35px;
    /* ADJUST: Length of the active dot */
    border-radius: 6px;
}

/* --- LIGHTBOX STYLES --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    /* ADJUST: Max screen width of lightbox */
    max-height: 90%;
    /* ADJUST: Max screen height of lightbox */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    /* ADJUST: Vertical height limit in lightbox */
    border-radius: 12px;
    /* ADJUST: Lightbox image corner curve */
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    /* ADJUST: Lightbox image shadow */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    /* ADJUST: Button gap from top */
    right: 0;
    color: #fff;
    font-size: 40px;
    /* ADJUST: Close button size */
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ef4444;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 45px;
    /* ADJUST: Arrow icon size in lightbox */
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 85px;
    /* ADJUST: Arrow container width */
    height: 85px;
    /* ADJUST: Arrow container height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #3b82f6;
}

.lightbox-prev {
    right: -130px;
    /* In RTL, Prev is on the right */
}

.lightbox-next {
    left: -130px;
    /* In RTL, Next is on the left */
}

@media (max-width: 1200px) {
    .lightbox-prev {
        right: 10px;
    }

    .lightbox-next {
        left: 10px;
    }

    .lightbox-close {
        top: 10px;
        left: 20px;
    }
}