/* --------------------------------------------------
   gallery.css
   --------------------------------------------------
   Modale de galeries et navigation des images
*/
/* ================================ */
/* Section : Modale galeries images */
/* ================================ */
.galeries-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.85);
    z-index: 9999;
}

.galeries-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    justify-items: stretch;
    align-items: stretch;
}

.galeries-modal-img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.galeries-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.galeries-close:hover { color: var(--primary); }

/* Flèches de navigation */
.galeries-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    user-select: none;
    cursor: pointer;
    z-index: 4;
    transition: background .2s, transform .15s, opacity .2s;
    opacity: .9;
}
  
.galeries-arrow:hover { background: rgba(0,0,0,.6); transform: translateY(-50%) scale(1.04); }
.galeries-arrow:active { transform: translateY(-50%) scale(0.98); }
  
.galeries-arrow-left  { left: 16px; }
.galeries-arrow-right { right: 16px; }

/* Animation zoom sur les images de la galerie */
.galeries-item img {
    transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s;
}
.galeries-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px #bbb;
}

/* Vignettes carrées, images couvrantes */
.section-galeries .galeries-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px #ccc;
}

.section-galeries .galeries-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
