/* Approved Figma viewer: 74:217 desktop and 74:333 mobile. */
.work-lightbox {
  --viewer-photo-size: min(720px, calc(100dvh - 240px), calc(100vw - 320px));
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  color: var(--ik-color-ink); background: var(--ik-color-paper);
  overflow: auto; overscroll-behavior: contain;
}
.work-lightbox::backdrop { background: var(--ik-color-paper); }
.lightbox-is-open { overflow: hidden; }
.viewer-shell { position: relative; min-height: 100%; padding: 20px 64px 48px; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; height: 44px; color: var(--ik-color-muted); }
.viewer-context { width: 300px; }
.viewer-counter { width: 110px; text-align: center; }
.viewer-button { display: inline-flex; align-items: center; justify-content: center; width: 150px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ik-color-muted); cursor: pointer; }
.viewer-figure { width: var(--viewer-photo-size); margin: 24px auto 0; }
.viewer-photo { position: relative; width: 100%; aspect-ratio: 1; }
.viewer-image { width: 100%; height: 100%; object-fit: contain; }
.viewer-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.viewer-caption { margin-top: 24px; }
.viewer-caption h2 { font: var(--ik-type-caption-large-weight) var(--ik-type-caption-large-size)/var(--ik-type-caption-large-line) var(--ik-type-caption-large-family); }
.viewer-caption p { margin-top: 12px; }
.viewer-navigation { position: absolute; top: calc(88px + var(--viewer-photo-size) / 2 - 22px); left: 64px; right: 64px; display: flex; justify-content: space-between; pointer-events: none; }
.viewer-navigation button { pointer-events: auto; }
@media (hover: hover) { .viewer-button:hover { color: var(--ik-color-accent); text-decoration: underline; text-underline-offset: .25em; } }
@media (max-width: 63.999rem) {
  .work-lightbox { --viewer-photo-size: min(100vw - 48px, 600px, 100dvh - 450px); }
  .viewer-shell { padding: 20px 24px 58px; min-height: max(100%, 600px); }
  .viewer-context { width: 140px; }
  .viewer-counter { width: 62px; }
  .viewer-toolbar .viewer-button { width: 94px; }
  .viewer-figure { margin-top: 90px; }
  .viewer-caption { margin-top: 32px; }
  .viewer-caption h2 { font: var(--ik-type-caption-compact-weight) var(--ik-type-caption-compact-size)/var(--ik-type-caption-compact-line) var(--ik-type-caption-compact-family); }
  .viewer-navigation { top: auto; bottom: 58px; left: 24px; right: 24px; border-top: 1px solid var(--ik-color-rule); padding-top: 23px; }
  .viewer-navigation button { width: 140px; }
}
@media (max-width: 63.999rem) and (max-height: 740px) {
  .work-lightbox { --viewer-photo-size: min(100vw - 48px, max(100dvh, 600px) - 340px); }
  .viewer-shell { padding-bottom: 24px; }
  .viewer-figure { margin-top: 32px; }
  .viewer-caption { margin-top: 20px; }
  .viewer-navigation { bottom: 24px; }
}
@media (max-width: 359px) { .viewer-context { width: 126px; font-size: 9px; } .viewer-toolbar .viewer-button { width: 78px; } }
