h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-table img {
    width: 100%;
    max-width: 200px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-table img:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    max-width: 100%; /* Limite la largeur du visualiseur */
    max-height: 100%;
    overflow: auto;
}

.viewer-image {
    max-width: 80%;
    height: auto;
    max-height: 100%;
    transition: transform 0.2s;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.prev, .next {
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    padding: 10px 30px;
}

.prev:hover, .next:hover {
    color: #ddd;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}

.no-scroll {
    overflow: hidden;
}

.gallery-table {
    width: 100%;
    border-collapse: collapse; /* Pour éviter les espaces entre les cellules */
}

.gallery-table td {
    padding-bottom: 10px;
    text-align: center; 
}

.title {
    font-weight: bold;
    font-size: 1.6rem;
    text-align: center;
}

/* Effet responsive */
@media (max-width: 768px) {
    .property-gallery {
        margin: 10px 0;
        padding: 0;
        box-shadow: none;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .viewer-image {
        max-width: 90%;
        height: auto;
    }
    .prev, .next {
        font-size: 40px;
        padding: 0px 15px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
    }
}
