.block-image {
  margin: 1.5rem 0;
}

/* Alignement */
.block-image.align-left {
  text-align: left;
}

.block-image.align-center {
  text-align: center;
}

.block-image.align-right {
  text-align: right;
}

/* Image */
.block-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform .4s ease, filter .4s ease;
}

.block-image img:hover {
  transform: scale(1.01);
  filter: brightness(1.05);
}

/* Styles optionnels */
.img-rounded img {
  border-radius: 14px;
}

.img-shadow img {
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.img-gray img {
  filter: grayscale(100%);
}

/* Légende */
.block-image figcaption {
  margin-top: .6rem;
  font-size: .8rem;
  letter-spacing: .12em;
  opacity: .7;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================
   MEMORI LIGHTBOX
========================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s cubic-bezier(.4,0,.2,1);
}

.lightbox.active {
  pointer-events: auto;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,15,.95);
  backdrop-filter: blur(6px);
}

.lightbox-img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 90vw;
  max-height: 90vh;
  transform: translate(-50%, -50%) scale(.95);
  opacity: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}

.lightbox.active .lightbox-img {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}



/*legende*/
figure.block-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.block-image figcaption {
  width: 100%;
  flex: none;              /* empêche le shrink */
  margin-top: 0.75rem;
  text-align: center;
}
figure.block-image.align-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
}
