/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 09 2025 | 19:05:24 */
/* Style de la galerie */
#filtre-galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

#filtre-galerie button {
    padding: 10px 20px;
    background-color: #DBA367;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

#filtre-galerie button:hover {
    background-color: #D19A60;
}

#filtre-galerie button.actif {
    background-color: white;
    color: #DBA367;
    border: 1px solid #DBA367;
}

/* Grille de la galerie */
div.grille-galerie {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    padding: 10px !important;
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 1024px) {
    div.grille-galerie {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}

/* Image et vidéo dans la grille */
.media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
    text-align: center;
}

.media:hover {
    transform: scale(1.05);
}

.media img, .media video {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin: 0 auto;
    cursor: pointer;
}

.media.video {
    max-width: 100%;
}

.download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #DBA367;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #D19A60;
    color: #fff;
}

/* Pop-up personnalisée */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.popup-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 5px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    text-align: center;
    max-width: 90%;
}

.popup-info {
    font-size: 0.9em;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    max-width: 90%;
}
