/* ------------------------------------------------------------------
   Client galleries. A cover that feels like the first page of an album,
   then the photographs, edge to edge, with as little chrome as possible.
   ------------------------------------------------------------------ */

body.app-gallery {
  background: #fff;
}
.muted {
  color: var(--ink-3);
}
.stack {
  display: grid;
  gap: 14px;
}
.form-error,
.unlock-error {
  margin: 0;
  min-height: 1em;
  font-size: 13px;
  color: var(--danger);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  --h: 54px;
  font-size: 12.5px;
}
.btn-outline,
.btn-outline-light {
  --h: 48px;
  padding: 0 30px;
  border-radius: 0;
  letter-spacing: 0.24em;
  font-size: 11px;
}
.btn-outline {
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-outline-light {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

html.lb-open,
html.lb-open body {
  overflow: hidden;
}

/* ------------------------------------------------------------ cover */

/* Every layout is exactly one screen tall, like the first page of an
   album. Eight layouts: four set over the photograph (full, editorial,
   card, border), two set the photo beside or around the type (split,
   arch), and two give it a mat (frame, stripe). */

.cover {
  --pad: clamp(18px, 3.4vw, 52px);
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: grid;
  overflow: hidden;
  background: var(--paper);
}
.cover-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-3);
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.4s var(--ease),
    transform 3.2s var(--ease);
}
.cover-img.loaded {
  opacity: 1;
  transform: none;
}
.cover-text {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 18px;
  padding: 48px 24px;
  min-width: 0;
}
.cover-text > * {
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
}
.ready .cover-text > * {
  opacity: 1;
  transform: none;
}
.ready .cover-text > :nth-child(2) {
  transition-delay: 0.12s;
}
.ready .cover-text > :nth-child(3) {
  transition-delay: 0.24s;
}
.ready .cover-text > :nth-child(4) {
  transition-delay: 0.38s;
}
.cover-studio {
  font-size: clamp(36px, 3.6vw, 52px);
}
.cover-title {
  font-size: clamp(46px, 8.4vw, 124px);
  max-width: 14ch;
  text-wrap: balance;
}
.cover-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.cover-cta {
  margin-top: 14px !important;
}

/* Layouts that sit on the photograph */
.cover-full .cover-media,
.cover-editorial .cover-media,
.cover-card .cover-media,
.cover-stripe .cover-media,
.cover-border .cover-media {
  position: absolute;
  inset: 0;
}
.cover-full .cover-media::after,
.cover-editorial .cover-media::after,
.cover-border .cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cover-full .cover-text,
.cover-editorial .cover-text,
.cover-border .cover-text {
  color: #fff;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.18);
}
.cover.no-image .cover-media {
  background: #1d1b19;
}

/* full: the photograph is the page */
.cover-full .cover-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.06) 35%, rgba(0, 0, 0, 0.5) 100%);
}
.cover-full .cover-text {
  align-content: end;
  padding-bottom: clamp(88px, 14svh, 150px);
}

/* editorial: a magazine opener, set low and left */
.cover-editorial .cover-media::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 80%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 45%);
}
.cover-editorial .cover-text {
  justify-items: start;
  align-content: end;
  text-align: left;
  gap: 16px;
  padding: 0 var(--pad) clamp(64px, 12svh, 128px);
}
.cover-editorial .cover-title {
  font-size: clamp(52px, 10vw, 156px);
  max-width: 11ch;
  line-height: 0.92;
}
.cover-editorial .cover-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cover-editorial .cover-meta::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

/* card: a printed card resting on the photograph */
.cover-card .cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}
.cover-card .cover-text {
  place-self: center;
  width: min(560px, calc(100% - 2 * var(--pad)));
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px);
  gap: 14px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}
.cover-card .cover-title {
  font-size: clamp(40px, 5.2vw, 76px);
}

/* stripe: a band of paper across the photograph */
/* The band sits in the lower third, so faces near the top stay clear. */
.cover-stripe .cover-text {
  align-self: end;
  margin-bottom: 14svh;
  width: 100%;
  padding: clamp(30px, 5svh, 52px) 24px;
  gap: 12px;
  background: var(--paper);
}
.cover-stripe .cover-title {
  font-size: clamp(40px, 6vw, 92px);
  max-width: 20ch;
}

/* border: a fine double rule inside the edge of the photograph */
.cover-border .cover-media::after {
  background: rgba(0, 0, 0, 0.3);
}
.cover-border::before,
.cover-border::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.cover-border::before {
  inset: var(--pad);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.cover-border::after {
  inset: calc(var(--pad) + 7px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cover-border .cover-text {
  gap: 20px;
}
.cover-border .cover-title {
  font-style: italic;
  font-size: clamp(46px, 7.6vw, 112px);
}
.cover-border .cover-studio::before,
.cover-border .cover-studio::after {
  content: "—";
  margin: 0 12px;
  opacity: 0.7;
}

/* Layouts on paper: dark type */
.cover-split .cover-meta,
.cover-frame .cover-meta,
.cover-arch .cover-meta,
.cover-card .cover-meta,
.cover-stripe .cover-meta {
  color: var(--ink-2);
}
.cover-split .cover-studio,
.cover-frame .cover-studio,
.cover-arch .cover-studio,
.cover-card .cover-studio,
.cover-stripe .cover-studio {
  color: var(--ink-3);
}

/* split: photograph left, title set on paper */
.cover-split {
  grid-template-columns: 1.2fr 1fr;
}
.cover-split .cover-text {
  padding: 64px clamp(28px, 5vw, 80px);
}
.cover-split .cover-title {
  font-size: clamp(44px, 5.6vw, 96px);
}

/* frame: a print on a mat */
.cover-frame {
  grid-template-rows: minmax(0, 1fr) auto;
  padding: var(--pad) var(--pad) 0;
}
.cover-frame .cover-text {
  padding: clamp(22px, 4svh, 40px) 24px clamp(26px, 5svh, 48px);
  gap: 10px;
}
.cover-frame .cover-title {
  font-size: clamp(36px, 4.6vw, 72px);
  max-width: 22ch;
}
.cover-frame .cover-cta {
  margin-top: 4px !important;
}

/* arch: the photograph framed in an arch, beside the title */
.cover-arch {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--pad);
  gap: var(--pad);
}
.cover-arch .cover-media {
  order: 2;
  justify-self: center;
  height: min(78svh, 820px);
  aspect-ratio: 3 / 4.2;
  max-width: 100%;
  border-radius: 9999px 9999px 4px 4px;
}
.cover-arch .cover-text {
  justify-items: start;
  text-align: left;
  padding: 0 0 0 clamp(0px, 4vw, 64px);
}
.cover-arch .cover-title {
  font-size: clamp(44px, 6vw, 104px);
  max-width: 10ch;
}

@media (max-width: 760px) {
  .cover-split,
  .cover-arch {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .cover-split .cover-text {
    padding: 28px 24px 40px;
    gap: 12px;
  }
  .cover-split .cover-title,
  .cover-arch .cover-title {
    font-size: clamp(38px, 11vw, 56px);
  }
  .cover-arch {
    gap: 22px;
    padding-top: calc(var(--pad) + 8px);
  }
  .cover-arch .cover-media {
    order: 0;
    height: 100%;
    width: auto;
  }
  .cover-arch .cover-text {
    justify-items: center;
    text-align: center;
    padding: 0 0 22px;
    gap: 12px;
  }
  .cover-editorial .cover-title {
    font-size: clamp(48px, 15vw, 80px);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
}
.cover-split .scroll-cue,
.cover-frame .scroll-cue,
.cover-arch .scroll-cue,
.cover-stripe .scroll-cue {
  display: none;
}
.cover-border .scroll-cue {
  bottom: calc(var(--pad) + 18px);
}
.scroll-cue i {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------------------------------------------------------- unlock */

.unlock {
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
  margin-top: 18px !important;
  text-shadow: none;
}
.unlock-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.unlock-label .icon {
  width: 15px;
  height: 15px;
}
.unlock-row {
  display: flex;
  gap: 8px;
}
.unlock .input {
  height: 48px;
  border-radius: 0;
  text-align: center;
  letter-spacing: 0.08em;
}
.unlock .btn {
  --h: 48px;
  border-radius: 0;
  letter-spacing: 0.2em;
}
.unlock.on-dark .input {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.unlock.on-dark .input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.unlock.on-dark .input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.unlock.on-dark .unlock-error {
  color: #ffd2c8;
}
.is-locked .cover-full .cover-text,
.is-locked .cover-editorial .cover-text {
  align-content: center;
  padding-bottom: 48px;
}

/* ------------------------------------------------------------- note */

.gnote {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 24px 8px;
  text-align: center;
}
.gnote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-line;
}

/* -------------------------------------------------------------- nav */

.gnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow 0.3s var(--ease);
}
.gnav.stuck {
  box-shadow: 0 1px 0 var(--line);
}
.gnav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 clamp(14px, 2.4vw, 32px);
}
.gnav-title {
  display: grid;
  min-width: 0;
  line-height: 1.15;
  text-decoration: none;
}
.gnav-title strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gnav-title span {
  font-size: 23px;
  color: var(--ink-3);
}
.gtabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
}
.gtabs::-webkit-scrollbar {
  display: none;
}
.gtab {
  position: relative;
  padding: 26px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.gtab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.gtab:hover {
  color: var(--ink);
}
.gtab.on {
  color: var(--ink);
}
.gtab.on::after {
  transform: none;
}
.gactions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.gactions .icon-btn.on {
  background: var(--paper-2);
}
.icon.filled {
  fill: currentColor;
}

/* Phones: two calm rows. The title and actions on top, then the
   section tabs on their own line, separated by a hairline. */
@media (max-width: 860px) {
  .gnav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    min-height: 0;
    padding: 0 16px;
  }
  .gnav-title {
    padding: 15px 0 13px;
  }
  .gnav-title strong {
    font-size: 20px;
  }
  /* The studio's name is already on the cover and in the footer, so on
     a phone the bar keeps to the gallery's own title. */
  .gnav-title span {
    display: none;
  }
  .gactions {
    gap: 0;
    margin-right: -8px;
  }
  .gactions .icon-btn {
    width: 36px;
    height: 36px;
  }
  .gactions .icon {
    width: 19px;
    height: 19px;
  }
  .gtabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 26px;
    margin: 0 -16px;
    padding: 0 22px;
    border-top: 1px solid var(--line);
    /* Fade the edges so it's clear the tabs scroll sideways. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
  .gtabs:empty {
    display: none;
  }
  .gtab {
    padding: 14px 0 15px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
  }
  .gtab::after {
    bottom: 9px;
  }
}

/* ------------------------------------------------------------- grid */

.gmain {
  padding: 0 clamp(4px, 1vw, 16px) 40px;
  min-height: 60svh;
}
.ghead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 72px) 20px clamp(28px, 4vw, 48px);
  text-align: center;
}
.ghead:empty {
  padding: clamp(12px, 2vw, 24px) 0 0;
}
.ghead-text h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
}
.ghead-text p {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.masonry {
  --gap: clamp(4px, 0.9vw, 12px);
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}
.mcol {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: var(--gap);
}
.masonry.in .gtile {
  animation: tile-in 0.9s var(--ease) both;
}
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.gtile {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / var(--r);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gtile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.7s var(--ease),
    transform 1.4s var(--ease);
}
.gtile img.loaded {
  opacity: 1;
}
.gtile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.32));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .gtile:hover img {
    transform: scale(1.025);
  }
  .gtile:hover::after,
  .gtile:hover .gtile-actions {
    opacity: 1;
  }
  .gtile:hover .gtile-actions {
    transform: none;
  }
}
.gtile:focus-visible {
  outline-offset: -3px;
  outline-color: #fff;
}
.gtile-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.gtile-actions > * {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.gtile-actions > *:hover {
  background: rgba(255, 255, 255, 0.18);
}
.gtile-actions > *:active {
  transform: scale(0.9);
}
.gtile-actions .icon {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}
.gtile.fav .tile-heart .icon {
  fill: currentColor;
}
/* A favourited photo keeps its heart visible, even on touch screens. */
.gtile.fav .gtile-actions {
  opacity: 1;
  transform: none;
}
.gtile.fav .gtile-actions .tile-dl {
  display: none;
}
@media (hover: hover) {
  .gtile.fav:hover .gtile-actions .tile-dl {
    display: grid;
  }
}
.gtile-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.gtile-play .icon {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: currentColor;
}
.gtile-file {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
  word-break: break-all;
}

/* ----------------------------------------------------------- footer */

.gfoot {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 80px 24px calc(64px + env(safe-area-inset-bottom));
  text-align: center;
}
.gfoot .wordmark {
  margin: 0 0 8px;
  font-size: 60px;
}
.gfoot p.muted {
  margin: 0 0 14px;
  font-size: 12px;
}

/* --------------------------------------------------------- download */

.dl-body {
  display: grid;
  gap: 10px;
}
.dl-label {
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.choice-list {
  display: grid;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}
.choice:last-child {
  border-bottom: 0;
}
.choice:hover {
  background: var(--paper);
}
.choice-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow 0.25s var(--ease);
}
.choice.on .choice-dot {
  box-shadow: inset 0 0 0 5.5px var(--ink);
}
.choice-label {
  font-size: 14.5px;
  font-weight: 500;
}
.choice-meta {
  font-size: 12.5px;
  color: var(--ink-3);
}
.seg-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg-choice button {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-radius: var(--r);
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.seg-choice button.on {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.seg-choice strong {
  font-size: 14px;
  font-weight: 500;
}
.seg-choice span {
  font-size: 12px;
  color: var(--ink-3);
}
.dl-body > .btn {
  --h: 52px;
  margin-top: 14px;
}
.parts {
  display: grid;
  gap: 8px;
}
.parts:empty {
  display: none;
}
.parts-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.part {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease);
}
.part:hover {
  background: var(--paper);
}
.part .muted {
  font-size: 12.5px;
  font-weight: 400;
}
.part.done {
  opacity: 0.55;
}

/* --------------------------------------------------------- lightbox */

.lb {
  --fade: 1;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(14, 13, 12, calc(0.975 * var(--fade)));
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lb.open {
  opacity: 1;
}
.lb.closing {
  opacity: 0;
  transition-duration: 0.42s;
}
.lb-stage {
  position: absolute;
  inset: 0;
}
.lb-media {
  position: absolute;
  object-fit: contain;
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease);
  will-change: transform;
}
video.lb-media {
  background: #000;
}
.lb-media.enter-right {
  opacity: 0;
  transform: translateX(70px);
  transition: none;
}
.lb-media.enter-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: none;
}
.lb-media.leave-left,
.lb-media.leave-right,
.lb-media.leave {
  opacity: 0;
  pointer-events: none;
}
.lb-media.leave-left {
  transform: translateX(-70px);
}
.lb-media.leave-right {
  transform: translateX(70px);
}
.lb.closing .lb-media {
  transition-duration: 0.42s;
}
.lb-file {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.lb-file .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.lb-file strong {
  font-weight: 500;
  word-break: break-all;
}
.lb-file span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-bottom: 10px;
}

.lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(10px, 2vw, 22px) 0 clamp(18px, 2.4vw, 28px);
  padding-top: env(safe-area-inset-top);
  transition: opacity 0.5s var(--ease);
}
.lb-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}
.lb-actions {
  display: flex;
  gap: 2px;
}
.lb .icon-btn {
  color: #fff;
}
.lb .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lb .icon-btn.on .icon {
  fill: currentColor;
}
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 120px;
  color: rgba(255, 255, 255, 0.75);
  transform: translateY(-50%);
  transition:
    color 0.2s var(--ease),
    opacity 0.5s var(--ease);
}
.lb-nav:hover {
  color: #fff;
}
.lb-nav .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1;
}
.lb-prev {
  left: 6px;
}
.lb-next {
  right: 6px;
}
.lb.single .lb-nav {
  display: none;
}
.lb.idle .lb-top,
.lb.idle .lb-nav {
  opacity: 0;
}
.lb.idle {
  cursor: none;
}
.lb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  opacity: 0;
}
.lb.playing .lb-progress {
  opacity: 1;
}
.lb-progress i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: left;
  animation: progress 4.2s linear;
}
.lb:not(.playing) .lb-progress i {
  animation: none;
}
@keyframes progress {
  from {
    transform: scaleX(0);
  }
}
@media (max-width: 700px), (pointer: coarse) {
  .lb-nav {
    display: none;
  }
  .lb.idle .lb-top {
    opacity: 1;
  }
}

/* -------------------------------------------------------- transfers */

.transfer {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: clamp(24px, 6vw, 80px) 16px 32px;
  overflow: hidden;
  background: var(--paper);
}
.t-backdrop {
  position: absolute;
  inset: -40px;
  z-index: 0;
}
.t-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.1);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.4s var(--ease);
}
.t-backdrop img.loaded {
  opacity: 0.55;
}
.t-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.35), rgba(250, 249, 246, 0.85));
}
.t-backdrop.plain {
  background: radial-gradient(90% 70% at 50% 0%, #fff, var(--paper) 70%);
}
.t-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 52px) clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--shadow);
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}
.t-card .wordmark {
  margin: 0;
  color: var(--ink-2);
  font-size: 42px;
}
.t-card h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  text-wrap: balance;
}
.t-message {
  margin: 4px 0 0;
  max-width: 44ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-line;
}
.t-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.t-files {
  list-style: none;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  max-height: min(46svh, 420px);
  overflow-y: auto;
  text-align: left;
  border-top: 1px solid var(--line);
}
.t-files li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.t-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--paper-2);
  overflow: hidden;
  color: var(--ink-2);
}
.t-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-name {
  display: grid;
  min-width: 0;
}
.t-name strong {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-name span {
  font-size: 12px;
  color: var(--ink-3);
}
.t-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.transfer .unlock {
  margin-top: 10px !important;
}

/* ----------------------------------------------------------- notice */

.notice {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: var(--paper);
}
.notice .wordmark {
  margin: 0;
  color: var(--ink-2);
  font-size: 46px;
}
.notice h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
}
.notice p:last-child {
  margin: 0;
  max-width: 420px;
  color: var(--ink-2);
}

.admin-pill {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.admin-pill .icon {
  width: 16px;
  height: 16px;
}

/* The unlock form sits mid-photo, so shade the whole frame evenly. */
.is-locked .cover-full .cover-media::after,
.is-locked .cover-editorial .cover-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42));
}

/* ------------------------------------------------------------- home */

.home .home-form {
  margin-top: 12px !important;
}
.home .unlock .input {
  text-align: left;
  letter-spacing: 0;
}
.home-back {
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.home-back:hover {
  color: var(--ink);
}
.home > p:not(.eyebrow) {
  margin: 0;
  max-width: 420px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ music */

.cover-music {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px !important;
  padding: 6px 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.cover-music:hover {
  opacity: 1;
}
.cover-music .icon {
  width: 15px;
  height: 15px;
}

/* The bar's music button: a note when off, a small equaliser when playing. */
.music-btn .eq {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}
.music-btn .eq i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: eq 1s var(--ease-in-out) infinite alternate;
}
.music-btn .eq i:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: -0.3s;
}
.music-btn .eq i:nth-child(3) {
  animation-duration: 0.85s;
  animation-delay: -0.6s;
}
.music-btn.on .icon {
  display: none;
}
.music-btn.on .eq {
  display: flex;
}
@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-btn .eq i {
    animation: none;
    transform: scaleY(0.7);
  }
}

/* ---------------------------------------------------------- contact */

.contact-btn .icon {
  width: 16px;
  height: 16px;
}
.gfoot .contact-btn {
  margin: 4px 0 2px;
}
.notice .contact-btn {
  margin-top: 8px;
}
.home .contact-btn {
  margin-top: 22px;
}
.home .home-back {
  margin-top: 10px;
}
.unlock-help {
  justify-self: center;
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.unlock-help:hover {
  opacity: 1;
}
.t-foot {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.t-foot p {
  margin: 0;
}
.notice > p:not(.eyebrow) {
  margin: 0;
  max-width: 420px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- tour */

/* Lock scrolling on both html and body, as the photo viewer does: locking
   html alone turns body into the scroller and unsticks the bar. */
html.touring,
html.touring body {
  overflow: hidden;
}
.tour {
  position: fixed;
  inset: 0;
  z-index: 90;
  animation: fade-in 0.35s var(--ease);
}
.tour.out {
  animation: fade-out 0.3s var(--ease) forwards;
}
/* The spotlight: a clear window cut out of a dark veil. */
.tour-hole {
  position: absolute;
  box-shadow: 0 0 0 200vmax rgba(14, 13, 12, 0.72);
  outline: 1.5px solid rgba(255, 255, 255, 0.9);
  outline-offset: 0;
  transition:
    left 0.45s var(--ease),
    top 0.45s var(--ease),
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    border-radius 0.45s var(--ease);
  pointer-events: none;
}
.tour-card {
  position: absolute;
  padding: 20px 20px 16px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition:
    left 0.45s var(--ease),
    top 0.45s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.tour-card.in {
  opacity: 1;
  transform: none;
}
.tour-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--arrow, 50%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--card);
  transform: rotate(45deg);
}
.tour-count {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tour-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
}
.tour-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.tour-nav {
  display: flex;
  gap: 4px;
}
.tour-skip {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-skip:hover {
  color: var(--ink);
}
.gfoot-links {
  display: flex;
  gap: 4px;
}

/* The section you've just moved into, named briefly mid-screen. */
.lb-section {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(14, 13, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  pointer-events: none;
}
.lb-section.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.home-pricing {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-pricing:hover {
  color: var(--ink);
}
