/* --- Premium Gallery Carousel Styling --- */
.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px auto;
    padding: 10px 0;
}

.gallery-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-track img {
    width: 25%;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 20px;
    height: 280px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    filter: brightness(0.95);
}

/* Premium Hover Effect */
.gallery-track img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0,0,0,0.2), 0 10px 10px rgba(0,0,0,0.15);
    filter: brightness(1);
    z-index: 2;
}

/* Frosted Glass Navigation Buttons */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 20px;
    color: #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.gallery-prev:hover,
.gallery-next:hover {
    background: #111;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* --- Responsive Breakpoints --- */
@media(max-width: 991px) {
    .gallery-track img { width: 50%; height: 260px; }
}

@media(max-width: 576px) {
    .gallery-track img { width: 100%; height: 240px; }
    .gallery-prev, .gallery-next { width: 40px; height: 40px; font-size: 16px; }
}

/* --- Premium Lightbox (Modal) Styling --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 20px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    font-size: 24px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

@media(max-width: 576px) {
    .lightbox-prev { left: 10px; width: 45px; height: 45px; }
    .lightbox-next { right: 10px; width: 45px; height: 45px; }
    .lightbox-close { top: 15px; right: 15px; }
}