/* ============================================================
   Seção — Nossa estrutura (galeria real da clínica)
   ============================================================ */
.estrutura { background: var(--bg); }
.estrutura__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.estrutura__head .section__eyebrow { justify-content: center; }
.estrutura__head .section__eyebrow::before { display: none; }

/* masonry por colunas — encaixa retrato e paisagem naturalmente */
.es-grid { columns: 3 320px; column-gap: 1rem; }
.es-item {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(14, 90, 98, .14);
  cursor: pointer;
}
.es-item img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.es-item:hover img { transform: scale(1.05); }
.es-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem .95rem .7rem;
  color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(6, 40, 42, .85), rgba(6, 40, 42, 0));
  opacity: .92; transition: opacity .3s var(--ease);
}
.es-item:hover figcaption { opacity: 1; }

@media (max-width: 900px) { .es-grid { columns: 2 260px; } }
@media (max-width: 520px) { .es-grid { columns: 1; } }

/* ------------------------------------------------ lightbox (clique amplia) */
.es-lb {
  position: fixed; inset: 0; z-index: 2000;
  display: none; place-items: center;
  background: rgba(6, 40, 42, .92);
  padding: 4vmin;
  animation: es-fade .25s var(--ease);
}
.es-lb.is-open { display: grid; }
.es-lb img { max-width: 94vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.es-lb__cap { position: absolute; bottom: 3vmin; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: .95rem; }
.es-lb__x {
  position: absolute; top: 3vmin; right: 4vmin;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background .2s var(--ease);
}
.es-lb__x:hover { background: rgba(255, 255, 255, .28); }
@keyframes es-fade { from { opacity: 0; } to { opacity: 1; } }
