.property-gallery {
    position: relative;
}

.gallery-main {
    margin-bottom: 10px;
    cursor: pointer;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: #0073aa;
}


.property-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    color: #aac002;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.lightbox-image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #aac002;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 10px 0;
    margin-top: 10px;
    justify-content: center;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    cursor: pointer;
    border: 2px solid transparent;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb.active {
    border-color: white;
}

@media screen and (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        padding: 10px;
    }
    
    .lightbox-thumbnails {
        flex-wrap: nowrap;
    }
}