/* =========================================================================
   lt-studio.css — the few rules every look needs and none should restyle
   from scratch. Loaded BEFORE the look's own theme.css, so a look wins.
   A look tunes the lightbox with:
     --lt-lightbox-bg  --lt-lightbox-fg  --lt-lightbox-font
   ========================================================================= */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], footer[id] { scroll-margin-top: var(--lt-scroll-offset, 72px); }
img { max-width: 100%; }
iframe[data-lt-form] { display: block; width: 100%; border: 0; min-height: 720px; height: min(880px, 92vh); background: var(--lt-form-bg, transparent); }
[data-lt-lightbox] > :not(template) { cursor: zoom-in; }
html.lt-lightbox-open, html.lt-menu-open { overflow: hidden; }

.lt-lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none;
    grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
    padding: clamp(12px, 3vw, 40px);
    background: var(--lt-lightbox-bg, rgba(8, 8, 8, .96)); color: var(--lt-lightbox-fg, #f2f0ea);
    font: 500 12px/1.4 var(--lt-lightbox-font, inherit); letter-spacing: .06em; text-transform: uppercase;
    cursor: zoom-out;
}
.lt-lightbox.is-open { display: grid; }
.lt-lightbox__fig { margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lt-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); object-fit: contain; cursor: default; }
.lt-lightbox__fig figcaption { text-align: center; opacity: .75; }
.lt-lightbox button {
    appearance: none; background: none; border: 1px solid currentColor; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
    min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; opacity: .8;
}
.lt-lightbox button:hover, .lt-lightbox button:focus-visible { opacity: 1; }
.lt-lightbox__close { position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); z-index: 1; }
@media (max-width: 640px) {
    .lt-lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
    .lt-lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
    .lt-lightbox__prev { grid-row: 2; justify-self: start; }
    .lt-lightbox__next { grid-row: 2; justify-self: end; }
}
