/* SWIPER STYLES */
.swiper-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    cursor: pointer;
}

.swiper-slide img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border-radius: 12px;
    opacity: 0 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in-out;
}

.swiper-slide:hover .overlay {
    opacity: 1 !important;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 25px 20px 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

.close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

/* MODAL HEADER */
.modal-header {
    padding: 0px 20px 0px 0px;
    align-items: start;
}

#modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.price-range {
    font-size: 15px;
    color: #888;
    margin-bottom: 18px;
}

/* IMAGE SECTIONS */
.image-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 10px 0px 10px 0px;
}

.before,
.after {
    flex: 1 1 45%;
    text-align: left;
}

.before h3,
.after h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

#before-images,
#after-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    justify-content: center;
}

#before-images img,
#after-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive: Full width if only one section is visible */
.before:only-child,
.after:only-child {
    width: 100%;
    flex: none;
}

.divider {
    width: 1px;
    background: #dee2e6;
}

/* Mobile layout */
@media (max-width: 500px) {
    .modal-content {
        padding: 20px 15px;
    }

    .image-container {
        flex-direction: column;
        gap: 20px;
    }

    #before-images,
    #after-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    #modal-title {
        font-size: 18px;
    }

    .price-range {
        font-size: 14px;
    }

    .modal-header {
        flex-direction: column;
        row-gap: 10px;
    }
}

.lg-close {
    z-index: 9999 !important;
    top: 10px !important;
    right: 10px !important;
    position: fixed !important;
    display: block !important;
    color: white !important;
    font-size: 24px !important;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
