/* The Gallery page: their photos as prints pinned up a little crooked, on the cream wall. */
.gh { padding-bottom: clamp(10px, 2vw, 24px); }
.gh__line { margin: 6px 0 0; font-family: 'Caveat Brush', cursive; font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); rotate: -2deg; }
.gh__line a { color: var(--red); }

.wall {
  columns: 3 300px; column-gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(16px, 3vw, 40px) var(--pad) clamp(56px, 7vw, 110px);
  max-width: 1500px; margin: 0 auto;
}
.shot { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 44px); rotate: var(--r, 0deg); transition: rotate .35s cubic-bezier(.2, .8, .2, 1), translate .35s cubic-bezier(.2, .8, .2, 1); }
.shot > a, .shot > button {
  position: relative; display: block; width: 100%; padding: 10px 10px 0; border: 0; border-radius: 4px;
  background: var(--paper); color: inherit; text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 28px rgba(40, 20, 5, .2);
}
.shot img { display: block; width: 100%; height: auto; min-height: 120px; background: #d9cbb4; }
.shot figcaption { padding: 10px 4px 12px; font-family: 'Caveat Brush', cursive; font-size: 24px; line-height: 1.05; color: var(--ink); }
.shot > a:not(:has(figcaption)), .shot > button:not(:has(figcaption)) { padding-bottom: 28px; }
.shot:hover { rotate: 0deg; translate: 0 -4px; }
.shot--wide { column-span: all; max-width: 900px; margin-left: auto; margin-right: auto; }

/* A tag stuck on a linked photo: Instagram, or a plain link. */
.pin {
  position: absolute; right: -8px; top: -10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: .4em .8em .36em;
  font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--milk); background: var(--red); border: 3px solid var(--paper); border-radius: 999px;
  box-shadow: 0 6px 12px rgba(40, 20, 5, .25); rotate: 6deg;
}
.pin svg { width: 16px; height: 16px; }
.pin--ig { background: linear-gradient(45deg, #F4B63F, #C8221B 55%, #8E2A7E); }

/* The big view */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 16px; background: rgba(20, 12, 8, .92); }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; place-items: center; gap: 12px; min-width: 0; }
.lb__fig img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; border: 8px solid var(--paper); border-radius: 4px; }
.lb__fig figcaption { font-family: 'Caveat Brush', cursive; font-size: 28px; color: var(--cream); }
.lb__x { position: absolute; right: 14px; top: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.lb__nav { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 248, 238, .15); color: var(--cream); font-size: 36px; line-height: 1; cursor: pointer; }
.lb__nav[hidden] { visibility: hidden; display: block; }
html.lb-open { overflow: hidden; }

@media (max-width: 760px) {
  .wall { columns: 2 150px; column-gap: 14px; }
  .shot > a, .shot > button { padding: 6px 6px 0; }
  .shot figcaption { font-size: 19px; padding: 6px 2px 8px; }
  .pin { font-size: 11px; right: -4px; top: -8px; }
  .lb { grid-template-columns: 1fr; padding: 60px 8px 16px; }
  .lb__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }
