/* =============================================
   ALBUMS GALLERY - STYLES
   ============================================= */

/* Grille principale */
.ag-albums-grid {
    display: grid;
    grid-template-columns: repeat(var(--ag-colonnes, 3), 1fr);
    gap: var(--ag-gap, 20px);
    padding: 20px 0;
}

/* Item album */
.ag-album-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ag-album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Lien album */
.ag-album-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image de couverture */
.ag-album-cover {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Ratio 4:3 */
    overflow: hidden;
}

.ag-album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ag-album-item:hover .ag-album-cover img {
    transform: scale(1.05);
}

/* Titre de l'album */
.ag-album-title {
    padding: 15px 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

/* Images cachées pour Fancybox */
.ag-hidden-image {
    display: none !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablette */
@media screen and (max-width: 1024px) {
    .ag-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ag-album-title {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .ag-albums-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ag-album-title {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* =============================================
   FANCYBOX PERSONNALISATION
   ============================================= */

.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.9);
}

.fancybox__caption {
    font-size: 16px;
    text-align: center;
    padding: 15px;
}

/* =============================================
   ICONE GALERIE (overlay optionnel)
   ============================================= */

.ag-album-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.ag-album-item:hover .ag-album-cover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Icône de galerie au survol */
.ag-album-cover::before {
    content: '\f03e'; /* Icône image Font Awesome */
    font-family: 'Font Awesome 5 Free', 'dashicons', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    color: #ffffff;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.ag-album-item:hover .ag-album-cover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
}
