/* ===========================================
   Hiensch ACF Gallery Carousel
   Override Elementor defaults with !important
   =========================================== */

.hiensch-gallery-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 30px 0 0 0 !important;
    box-sizing: border-box !important;
}

.hiensch-gallery-track-container {
    overflow: hidden !important;
    border-radius: 0 !important;
}

.hiensch-gallery-track {
    display: flex !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    gap: 16px !important;
    will-change: transform !important;
    align-items: stretch !important;
}

.hiensch-gallery-slide {
    flex: 0 0 calc((100% - 32px) / 3) !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
}

.hiensch-gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: 250px !important;
    min-height: 250px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}

.hiensch-gallery-slide:hover img {
    transform: scale(1.05) !important;
}

/* Arrows — Elementor/Swiper style (clean chevrons, no background) */
.hiensch-gallery-wrap button.hiensch-gallery-arrow,
button.hiensch-gallery-arrow,
.hiensch-gallery-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease !important;
    color: #69727d !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    fill: none !important;
    outline: none !important;
    opacity: 0.7 !important;
}

.hiensch-gallery-wrap button.hiensch-gallery-arrow:hover,
button.hiensch-gallery-arrow:hover,
.hiensch-gallery-arrow:hover {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #69727d !important;
    opacity: 1 !important;
}

.hiensch-gallery-wrap button.hiensch-gallery-arrow:focus,
button.hiensch-gallery-arrow:focus,
.hiensch-gallery-arrow:focus {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    color: #69727d !important;
}

.hiensch-gallery-arrow svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #69727d !important;
    stroke-width: 2.5 !important;
    color: #69727d !important;
    fill: none !important;
}

.hiensch-gallery-prev {
    left: -40px !important;
}

.hiensch-gallery-next {
    right: -40px !important;
}

/* ===========================================
   Lightbox
   =========================================== */

.hiensch-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.hiensch-lightbox.hiensch-lightbox-active {
    display: flex !important;
}

.hiensch-lightbox-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.50) !important;
    backdrop-filter: blur(2px) !important;
}

.hiensch-lightbox-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
}

.hiensch-lightbox-img {
    max-width: 80vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    animation: hiensch-lb-fadein 0.3s ease !important;
}

@keyframes hiensch-lb-fadein {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hiensch-lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 30px !important;
    z-index: 3 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 40px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 5px 10px !important;
    transition: opacity 0.2s !important;
}

.hiensch-lightbox-close:hover {
    opacity: 0.7 !important;
    background: none !important;
    background-color: transparent !important;
    color: #fff !important;
}

.hiensch-lightbox-arrow {
    background: rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    margin: 0 20px !important;
    flex-shrink: 0 !important;
    transition: background 0.2s !important;
    padding: 0 !important;
}

.hiensch-lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.hiensch-lightbox-arrow svg {
    stroke: #fff !important;
    color: #fff !important;
    fill: none !important;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    .hiensch-gallery-slide {
        flex: 0 0 calc((100% - 16px) / 2) !important;
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        border-radius: 20px !important;
    }

    .hiensch-gallery-slide img {
        max-height: 180px !important;
        min-height: 180px !important;
    }

    .hiensch-gallery-wrap {
        padding: 0 !important;
    }

    .hiensch-gallery-prev {
        left: -30px !important;
    }

    .hiensch-gallery-next {
        right: -30px !important;
    }

    .hiensch-lightbox-arrow {
        width: 40px !important;
        height: 40px !important;
        margin: 0 8px !important;
    }
}

@media (max-width: 480px) {
    .hiensch-gallery-slide {
        flex: 0 0 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        border-radius: 20px !important;
    }

    .hiensch-gallery-slide img {
        max-height: 200px !important;
        min-height: 200px !important;
    }

    .hiensch-gallery-wrap {
        padding: 0 !important;
    }

    .hiensch-gallery-prev {
        left: -28px !important;
    }

    .hiensch-gallery-next {
        right: -28px !important;
    }

    .hiensch-gallery-track {
        gap: 12px !important;
    }
}