/* --- Carousel Container Layout --- */
.acc-container {
    position: relative;
    width: 100%;
    overflow: hidden; 
    padding-bottom: 50px; 
}

.acc-swiper {
    overflow: visible !important; 
}

/* --- Slide Sizing & Focus Effect --- */
.acc-slide {
    width: 60%; 
    padding: 0 5px !important; 
    
    opacity: 0.3; /* Keep the dimming effect for unselected images */
    transition: opacity 0.6s ease; /* Removed the transform transition */
    box-sizing: border-box;
    
    /* Removed: transform: scale(0.95); */
}

/* The exact middle slide */
.acc-slide.swiper-slide-active {
    opacity: 1; 
    z-index: 2;
    
    /* Removed: transform: scale(1); */
}

.acc-slide-inner img,
.acc-slide-inner video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.acc-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.acc-slide-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Because JS is now centering, ONLY the exact middle slide is active */
.acc-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.acc-slide-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Ensure the link wrapper behaves perfectly block-level */
.acc-slide-inner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Prevents underlines if themes get aggressive */
}

/* Optional: Prevent users from accidentally clicking dimmed/inactive side images */
.acc-slide:not(.swiper-slide-active) a {
    pointer-events: none; /* Only the center image is clickable */
}

/* --- Navigation Arrows --- */
.acc-nav-prev,
.acc-nav-next {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(180, 180, 180, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff !important;
    margin-top: -25px !important; 
    transition: background-color 0.3s ease; /* Added transition */
}

.acc-nav-prev { left: 2% !important; }
.acc-nav-next { right: 2% !important; }

.acc-nav-prev::after,
.acc-nav-next::after {
    font-size: 14px !important;
    font-weight: 900 !important; /* Forces maximum font thickness */
    -webkit-text-stroke: 2px currentColor; /* Adds a 2px outline to bulk up the icon */
}

/* Hover State */
.acc-nav-prev:hover,
.acc-nav-next:hover {
    background-color: rgba(180, 180, 180, 0.85); /* Darker frosted glass */
    cursor: pointer;
}

/* --- Line-Style Pagination --- */
.acc-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.acc-container .swiper-pagination-bullet {
    width: 45px; 
    height: 4px; /* Slightly thicker looks better with rounded edges */
    border-radius: 50px; /* High value creates the fully rounded pill shape */
    background-color: #000;
    opacity: 0.2;
    margin: 0 !important;
    transition: opacity 0.3s ease, width 0.3s ease; 
}

.acc-container .swiper-pagination-bullet-active {
    opacity: 1;
    width: 90px; /* 2x longer when active */
}


/* --- Ensure the wrapper can contain the absolute button --- */
.acc-slide-inner {
    position: relative;
}

/* --- The Zoom / Lightbox Button --- */
/* Added "a.acc-zoom-btn" and "!important" to override the 100% link stretch issue */
.acc-slide-inner a.acc-zoom-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px !important;  /* Matches nav arrows */
    height: 50px !important; /* Matches nav arrows */
    background-color: rgba(180, 180, 180, 0.4) !important; /* Matches frosted glass nav arrows */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0; 
    pointer-events: none; 
}

/* Only show the button on the active center slide */
.acc-slide.swiper-slide-active .acc-zoom-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Hover state matching the arrows */
.acc-slide-inner a.acc-zoom-btn:hover {
    background-color: #1a1a1a !important; /* High contrast hover, or change to match your arrows */
    cursor: pointer;
}

/* --- Drawing the Plus Sign using pure CSS --- */
.acc-plus-icon {
    position: relative;
    width: 14px; /* Scaled slightly to match the font-size of the arrows */
    height: 14px;
}

.acc-plus-icon::before,
.acc-plus-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff; /* Crisp white like the arrow icons */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* The horizontal line */
.acc-plus-icon::before {
    width: 100%;
    height: 2px; /* Thickness of the plus lines */
}

/* The vertical line */
.acc-plus-icon::after {
    width: 2px; /* Thickness of the plus lines */
    height: 100%;
}

/* Only show the button on the active center slide */
.acc-slide.swiper-slide-active .acc-zoom-btn {
    opacity: 1;
    pointer-events: auto;
}

.acc-zoom-btn:hover {
    background-color: rgba(195, 185, 175, 0.95);
    transform: scale(1.05);
}

/* --- Drawing the Plus Sign using pure CSS --- */
.acc-plus-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.acc-plus-icon::before,
.acc-plus-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* The horizontal line */
.acc-plus-icon::before {
    width: 100%;
    height: 2px;
}

/* The vertical line */
.acc-plus-icon::after {
    width: 2px;
    height: 100%;
}

/* --- Responsive Adjustments --- */

@media (min-width: 1440px) {
    .acc-slide {
        width: 65%; 
        /* Keep it slightly wider on massive screens so it doesn't bleed together */
        padding: 0 2px; 
    }
}

@media (max-width: 1024px) {
    .acc-slide {
        width: 75%; 
        padding: 0 1px; 
    }
}

@media (max-width: 768px) {
    .acc-slide {
        width: 85%; 
        padding: 0 1px; 
    }
}