/* Lightbox da galeria de fotos (assets/js/lightbox.js) */
html.lightbox-aberto, html.lightbox-aberto body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 10, 0.92); padding: 56px 64px; touch-action: none; }
.lightbox[hidden] { display: none; }
.lightbox-palco { position: relative; margin: 0; max-width: min(1600px, 100%); max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-img { display: block; max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; border-radius: 4px; background: #222; transition: opacity .15s ease; }
.lightbox-carregando .lightbox-img { opacity: .35; }
.lightbox-credito { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 2px 8px; font-size: 11px; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, 0.6); border-top-left-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox-contador { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; color: #ddd; font-size: 13px; }
.lightbox-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-btn:focus-visible { outline: 3px solid var(--cor-laranja, #ff8a00); outline-offset: 2px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-fechar { top: 8px; right: 8px; font-size: 30px; }
.lightbox-ant { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-prox { right: 8px; top: 50%; transform: translateY(-50%); }
.galeria-foto-link { cursor: zoom-in; }
@media (max-width: 640px) {
  .lightbox { padding: 48px 8px; }
  .lightbox-ant, .lightbox-prox { top: auto; bottom: 8px; transform: none; }
  .lightbox-img { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
}
