/**************************** PAGES GALERIE **************************/

/* =========================================================
   6) PAGES de GALERIE
========================================================= */

/* =========================================================
   6a) GALERIES AMUPCYCLING — GRID 
========================================================= */

.am-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.am-gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    height: auto;
    padding-bottom: 20px;
}

.am-image-wrapper {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative !important; /* pour le bandeau hover */
}

.am-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
    .am-gallery {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 0 10px !important;
    }
}

/* ============================================================
   6b) BANDEAU SURVOL — "Cliquez pour voir la bête en liberté"
============================================================ */

.am-gallery-hover-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.35s ease-in-out;
    pointer-events: none;
}

/* Apparition au survol */
.am-image-wrapper:hover .am-gallery-hover-hint {
    opacity: 1;
    transform: translateY(0%);
}

/* Mobile : bandeau toujours visible (on n’a pas de hover) */
@media (max-width: 768px) {
    .am-gallery-hover-hint {
        opacity: 1;
        transform: translateY(0%);
        font-size: 14px;
        padding: 8px;
    }
}
