/* Backdrop dark */
.modal-backdrop.show {
    opacity: 0.95;
}

/* Slider wrapper */
.modal-slider-wrapper {
    width: 100%;
    max-width: 900px;
    margin: auto;
    position: relative;
}

/* Fix horizontal layout */
.modal-slider .slick-track {
    display: flex !important;
}

.modal-slider .slick-slide {
    float: none !important;
    height: auto;
}

/* Image */
.modal-slider img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    touch-action: pinch-zoom;
}


/* ===== CLOSE BUTTON (Top Right of modal) ===== */
.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    padding: 15px;
}

.modal-header .close {
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
    color: #fff;
}

/* ===== ARROWS (outside image but inside modal) ===== */
.modal-slider .slick-prev,
.modal-slider .slick-next {
    width: 45px;
    height: 45px;
    z-index: 15;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

/* Place arrows outside the image */
.modal-slider .slick-prev {
    left: -75px;
    /* far outside image */
}

.modal-slider .slick-next {
    right: -75px;
    /* far outside image */
}

/* White arrows */
.modal-slider .slick-prev:before,
.modal-slider .slick-next:before {
    color: #fff !important;
    font-size: 40px;
}

/* prevent overflow hiding arrows */
.modal-body {
    overflow: visible;
}

/* ===== RESPONSIVE: Make it look identical on mobile ===== */
@media (max-width: 768px) {
    .modal-slider-wrapper {
        max-width: 100%;
    }

    .modal-slider img {
        max-height: 65vh;
    }

    /* Keep arrows outside but closer */
    .modal-slider .slick-prev {
        left: -30px;
    }

    .modal-slider .slick-next {
        right: -30px;
    }

    .modal-header .close {
        font-size: 30px;
    }
}