/* =======================================================
   GALERIE PHOTO
======================================================= */

.gallery-page{
    background:#f0f2f5;
    padding:40px 0;
}

.gallery-panel{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

/* =======================================================
   ENTETE
======================================================= */

.gallery-panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.gallery-panel-header h3{
    margin:0;
    font-size:2rem;
    color:#222;
}

.gallery-search-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#f3f5f7;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    color:#2b5db5;
}

/* =======================================================
   ONGLETS
======================================================= */

.gallery-tabs{
    display:flex;
    gap:35px;
    margin-bottom:35px;
    border-bottom:1px solid #ddd;
}

.gallery-tabs span,
.gallery-tabs strong{

    padding:15px 5px;
    font-size:16px;
}

.gallery-tabs span{
    color:#666;
}

.gallery-tabs strong{
    color:#2b5db5;
    border-bottom:3px solid #2b5db5;
}

/* =======================================================
   RETOUR
======================================================= */

.gallery-back{

    display:inline-flex;
    align-items:center;
    gap:10px;

    text-decoration:none;

    color:#2b5db5;

    font-weight:600;

    margin-bottom:30px;
}

.gallery-back:hover{

    color:#1b458b;
}

/* =======================================================
   LISTE DES ALBUMS
======================================================= */

.gallery-albums-list{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));

    gap:28px;
}

.gallery-album-box{

    text-decoration:none;

    color:#222;

    transition:.25s;
}

.gallery-album-box:hover{

    transform:translateY(-6px);
}

/* =======================================================
   IMAGE DE COUVERTURE
======================================================= */

.gallery-album-cover{

    width:100%;

    aspect-ratio:1;

    overflow:hidden;

    border-radius:14px;

    background:#f4f4f4;

    box-shadow:0 5px 15px rgba(0,0,0,.12);

    transition:.3s;
}

.gallery-album-cover img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;
}

.gallery-album-box:hover .gallery-album-cover{

    box-shadow:0 12px 25px rgba(0,0,0,.20);
}

.gallery-album-box:hover img{

    transform:scale(1.08);
}

/* =======================================================
   DOSSIER SANS IMAGE
======================================================= */

.gallery-folder-placeholder{

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#2b5db5,#4b82e0);

    color:white;

    font-size:70px;
}

/* =======================================================
   TEXTE ALBUM
======================================================= */

.gallery-album-title{

    margin-top:14px;

    font-size:19px;

    font-weight:700;
}

.gallery-album-count{

    color:#666;

    margin-top:6px;

    font-size:15px;
}

/* =======================================================
   PHOTOS
======================================================= */

.gallery-photos-list{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));

    gap:20px;
}

.gallery-photo-box{

    overflow:hidden;

    border-radius:14px;

    aspect-ratio:1;

    box-shadow:0 6px 18px rgba(0,0,0,.12);

    transition:.25s;
}

.gallery-photo-box:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 28px rgba(0,0,0,.18);
}

.gallery-photo-box img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.35s;
}

.gallery-photo-box:hover img{

    transform:scale(1.08);
}

/* =======================================================
   VIDE
======================================================= */

.gallery-empty{

    padding:70px;

    text-align:center;

    color:#666;
}

.gallery-empty h4{

    margin-bottom:15px;

    color:#222;
}

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

@media(max-width:768px){

    .gallery-panel{

        padding:20px;
    }

    .gallery-panel-header h3{

        font-size:1.5rem;
    }

    .gallery-albums-list{

        grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    }

    .gallery-photos-list{

        grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    }

}