/* Local approved-homepage preview only. Closed gallery geometry is unchanged. */
.ena-gallery-zoom { cursor: zoom-in; }
.ena-gallery-zoom:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.ena-lightbox { position: fixed; inset: 0; box-sizing: border-box; margin: auto; padding: 12px; width: 100vw; height: 100dvh; max-width: 100%; max-height: 100%; border: 0; background: #080a0def; color: #fff; }
.ena-lightbox::backdrop { background: #000d; }
.ena-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) auto; gap: 8px; }
.ena-lightbox header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 16px/1.4 sans-serif; }
.ena-lightbox button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #ffffff80; border-radius: 50%; background: #101419dd; color: #fff; font: 28px/1 sans-serif; cursor: pointer; }
.ena-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ena-lightbox button:hover { background: #343a40; }
.ena-lightbox button[hidden] { display: none; }
.ena-lightbox-view { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-height: 0; touch-action: pan-y pinch-zoom; }
.ena-lightbox-image { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; user-select: none; }
.ena-lightbox-caption { text-align: center; margin: 0; padding: 4px 0; font: 14px/1.5 sans-serif; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ena-lightbox { padding: 8px; }
  .ena-lightbox-view { grid-template-columns: minmax(0, 1fr); position: relative; }
  .ena-lightbox-view button { position: absolute; z-index: 1; top: calc(50% - 22px); }
  .ena-lightbox-prev { left: 0; }
  .ena-lightbox-next { right: 0; }
}
