/* --- СЛАЙДЕР (Premium Gallery) --- */
.premium-gallery-section {
    padding: 8px 0 8px 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
    /* background: linear-gradient(to bottom, #ffffff 0%, #f8f6f3 100%); */
}

.slider-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 60px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
}

.slider {
    display: flex;
    will-change: transform;
    margin: 0 -10px;
}

.slide {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.image-ratio-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.image-ratio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* --- НАВІГАЦІЯ (КНОПКИ) --- */
.nav-button {
    position: absolute;
    top: calc(50% - 20px);
    /* Центрування відносно висоти фото, а не всього контейнера */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: var(--color-accent, #9b812c);
    color: var(--color-accent, #9b812c);
}

.prev-button {
    left: 5px;
}

.next-button {
    right: 5px;
}

/* Адаптивність */
@media (min-width: 1200px) {
    .slide {
        width: 16.666%;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .slide {
        width: 25%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .slide {
        width: 33.333%;
    }
}

@media (max-width: 767px) {
    .slide {
        width: 50%;
    }

    .slider-container {
        padding: 0 10px;
    }

    .nav-button {
        width: 36px;
        height: 36px;
    }
}



/* === lightbox === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .lightbox-trigger {
        cursor: zoom-in;
    }
}