/* ===== Block Slider (Ultra-wide base >3000px) ===== */
.block-slider {
    height: 98vh;
    margin: 0;
    position: relative;
    padding-bottom: 500px;
}

.block-slider .gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 3;
}

.block-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.block-slider .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* ensure overlay/video stack */
    top: 0;
    left: 0;
    z-index: 1;
}

/* slick containers fill the slide height */
.block-slider .top-slider,
.block-slider .slick-list,
.block-slider .slick-track {
    height: 100%;
}

.block-slider .video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 1;
}

.block-slider .hero-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* larger on ultra-wide */
    width: auto;
}

.block-slider .hero-content .big-title {
    color: #fff;
    text-transform: uppercase;
}





.block-slider .gallery-section {
    padding: 0 80px;          /* larger on ultra-wide */
    background: #f3f1ed;
    position: absolute;
    bottom: 0;
}

.block-slider .gallery-section .gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;                /* larger on ultra-wide */
    justify-content: center;
}

.block-slider .gallery-section .gallery-item {
    flex: 1 1 25%;
    max-height: 820px;        /* taller on ultra-wide */
    position: relative;
}

.block-slider .gallery-section .gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* hover overlay + button */
.block-slider .gallery-section .gallery-item::before {
    content: "";
    background: #000;
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: all 0.5s ease;
}
.block-slider .gallery-section .gallery-item:hover::before {
    opacity: 0.5;
    transition: all 0.5s ease;
}
.block-slider .gallery-section .gallery-item .gallery-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(0, -50%);
    opacity: 0;
    transition: all 0.5s ease;
}
.block-slider .gallery-section .gallery-item:hover .gallery-button {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

/* ===== ≤3000px (desktop) ===== */
@media (max-width: 3000px) {
    .block-slider {
        padding-bottom: 250px;
    }
    .block-slider .hero-content {
        gap: 20px;
    }
    .block-slider .hero-content .big-title {
        font-size: 56px;
    }


    .block-slider .gallery-section {
        padding: 0 40px;
    }
    .block-slider .gallery-section .gallery-wrapper {
        gap: 40px;
    }
    .block-slider .gallery-section .gallery-item {
        max-height: 410px;
    }
}
@media (max-width: 1500px) {
     .block-slider {
        padding-bottom: 125px;
    }
}
/* ===== ≤1200px ===== */
@media (max-width: 1200px) {

    .block-slider .hero-content {
        width: 90%;
        top: 55%;
    }
    .block-slider .gallery-section {
        padding: 0 5vw;
    }
    .block-slider .gallery-section .gallery-wrapper {
        gap: 20px;
    }
    .block-slider .gallery-section .gallery-item {
        flex: 1 1 20%;
        max-height: 300px;
    }

}

/* ===== ≤800px ===== */
@media (max-width: 800px) {
    .block-slider{
        height: auto;
        padding-bottom: 0;
    }

    .block-slider .gallery-wrapper{
        height: 98vh;
        flex-direction: column;
    }

    .block-slider .gallery-section {
        padding: 0 5vw;
        margin-top: 0;
        position: relative;
    }
   .block-slider .gallery-section .gallery-wrapper{
        height: auto;
       padding-top: 20px;
    }
    
    .block-slider .gallery-section .gallery-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .block-slider .gallery-section .gallery-item {
        flex: 1 1 100%;
        max-height: 300px;
        overflow: hidden;
    }
    .block-slider .gallery-button {
        text-align: center;
    }
}


