/* ===== ENCRALYS Official Photos (UI) ===== */

.encr-photos-wrap{
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(17,17,17,.55);
}

.encr-photos-wrap h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.encr-photos-section{
  margin-top: 14px;
}

.encr-photos-title{
  margin-top: 0;
}

.encr-photos-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.encr-photos-item{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #0b0b0b;
  cursor: zoom-in;
}

.encr-photos-item img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.encr-photos-empty{
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  opacity: .85;
}

/* Bouton "Charger plus" */
.encr-load-more{
  margin: 14px auto 0;
  display: block;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
}

.encr-load-more:active{
  transform: translateY(1px);
}

/* ===== Lightbox ===== */

.encr-lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.encr-lightbox[aria-hidden="false"]{
  display: block;
}

.encr-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.encr-lightbox__dialog{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.encr-lightbox__img{
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.encr-lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(17,17,17,.7);
  color: #fff;
  font-size: 28px;
  line-height: 38px;
  cursor: pointer;
}

/* Empêche le scroll derrière la lightbox */
html.encr-lightbox-open,
html.encr-lightbox-open body{
  overflow: hidden;
}