/*
 * Chamomile photographic journal.
 * The outside frame remains precise. Inside it, photographs are laid out as
 * an editorial sequence of prints at their natural proportions.
 */
.section-gallery-curated .layout-shell > main {
  width: min(100%, 60rem);
}
.section-gallery-curated .gallery-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-gallery-curated .gallery-masthead h1 {
  font-size: clamp(3rem, 6.1vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 .5rem;
  text-align: left;
}
.gallery-subtitle, .gallery-links, .chapter-folio {
  font: 400 .8125rem/1.5rem var(--font-mono);
  color: var(--ink-faint);
}
.gallery-subtitle { margin: 0; }
.gallery-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.gallery-links a {
  color: var(--forest);
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.gallery-links a:hover, .gallery-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.gallery-chapter {
  margin-bottom: clamp(3.5rem, 8vw, 6.75rem);
}
.chapter-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}
.section-gallery-curated .chapter-title h2 {
  font: 400 clamp(1.75rem, 3.1vw, 2.4rem)/1.15 var(--font-display);
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  text-align: left;
}
.chapter-folio { white-space: nowrap; }
.plate-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.75rem, 6vw, 5.5rem) clamp(.75rem, 1.5vw, 1.25rem);
  align-items: start;
}
.section-gallery-curated .plate-grid .work {
  min-width: 0;
  margin: 0;
  scroll-margin-top: 2rem;
}
.plate-grid .work > a {
  display: block;
  width: 100%;
  outline-offset: .4rem;
}
.plate-grid .work img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
}
.plate-grid .work > a:focus-visible,
.plate-grid .work:target > a {
  outline: 1px solid var(--gold);
}
.section-gallery-curated .plate-grid .work figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  font: 400 .75rem/1.5 var(--font-mono);
  color: var(--ink-faint);
  margin-top: .85rem;
  text-align: left;
}
.plate-grid .frame-no {
  flex: 0 0 auto;
  color: var(--gold);
  min-width: 2ch;
  margin: 0;
}
.plate-grid .frame-title { text-align: right; }

/* I. The coast: wide views alternating with two offset vertical prints. */
.plate-lead { grid-column: 1 / -1; }
.plate-spray { grid-column: 2 / 6; }
.plate-lighthouse {
  grid-column: 8 / 12;
  align-self: start;
}
.section-gallery-curated .plate-grid .plate-lighthouse {
  margin-top: clamp(2rem, 7vw, 6.25rem);
}
.plate-shore { grid-column: 4 / 13; }
.tilt-counter > a {
  transform: rotate(-1.35deg);
  transform-origin: center;
}
.tilt-clockwise > a {
  transform: rotate(1.25deg);
  transform-origin: center;
}

/* II. A darker paper for Colorado, contrasting the silver-toned views. */
.chapter-night {
  color: #eae7dc;
  background: #29372f;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.chapter-night .chapter-title {
  border-color: #728072;
  padding-top: 0;
  border-top: 0;
}
.section-gallery-curated .chapter-night .chapter-title h2 { color: #f2eee3; }
.section-gallery-curated .chapter-night .chapter-folio,
.section-gallery-curated .chapter-night .plate-grid .work figcaption { color: #c4cbbd; }
.chapter-night .frame-no { color: #ddbd91; }
.chapter-night .plate-grid .work:target > a,
.chapter-night .plate-grid .work > a:focus-visible { outline-color: #ddbd91; }
.plate-snow { grid-column: 2 / 12; }
.plate-church { grid-column: 1 / 5; }
.plate-motorcycles { grid-column: 6 / 13; align-self: center; }

/* III. A few earlier works, paced by scale rather than matching tiles. */
.plate-dome { grid-column: 1 / 9; }
.plate-fire { grid-column: 3 / 7; }
.plate-cat { grid-column: 9 / 13; }
.section-gallery-curated .plate-grid .plate-cat { margin-top: clamp(2.25rem, 6.5vw, 5rem); }

/* A contact sheet provides a quiet, practical index without autoplay. */
.contact-sheet-section {
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem clamp(.65rem, 2vw, 1.5rem);
}
.sheet-frame {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink-faint);
}
.sheet-image {
  --thumb-padding: .5rem;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: #e6e3d9;
  overflow: hidden;
}
.sheet-image img {
  position: absolute;
  inset: var(--thumb-padding);
  width: calc(100% - 2 * var(--thumb-padding));
  height: calc(100% - 2 * var(--thumb-padding));
  display: block;
  object-fit: contain;
}
.sheet-no {
  font: 400 .75rem/1.5 var(--font-mono);
  text-align: center;
}
.sheet-frame:hover { color: var(--ember); }
.sheet-frame:hover .sheet-no { text-decoration: underline; text-underline-offset: .25rem; }
.sheet-frame:focus-visible { outline-offset: .4rem; }
.section-gallery-curated .archive-links {
  max-width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin: 0;
}
.section-gallery-curated .archive-links h2 {
  font: 400 1.5rem/2rem var(--font-display);
  margin: 0 0 1rem;
  text-align: left;
}
.archive-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  font: .8125rem/1.5 var(--font-mono);
}
.archive-links nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 620px) {
  .section-gallery-curated .gallery-masthead {
    align-items: start;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.75rem;
  }
  .section-gallery-curated .gallery-masthead h1 { font-size: 2.75rem; }
  .gallery-links { gap: 1.5rem; }
  .gallery-chapter { margin-bottom: 3.5rem; }
  .chapter-title { padding-top: 1.25rem; margin-bottom: 1.5rem; }
  .section-gallery-curated .chapter-title h2 { font-size: 1.85rem; }
  .plate-grid {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
  }
  .plate-grid .work { width: 100%; }
  .plate-grid .plate-spray,
  .plate-grid .plate-church { width: 76%; align-self: flex-start; }
  .plate-grid .plate-lighthouse { width: 72%; align-self: flex-end; }
  .section-gallery-curated .plate-grid .plate-lighthouse,
  .section-gallery-curated .plate-grid .plate-cat { margin-top: 0; }
  .plate-grid .plate-shore { width: 94%; align-self: flex-end; }
  .plate-grid .plate-fire { width: 76%; align-self: flex-start; }
  .plate-grid .plate-cat { width: 72%; align-self: flex-end; }
  .tilt-counter > a, .tilt-clockwise > a { transform: none; }
  .chapter-night { padding: 1.25rem; }
  .chapter-night .plate-grid { gap: 2rem; }
  .section-gallery-curated .plate-grid .work figcaption { font-size: .71rem; gap: .5rem; }
  .contact-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  .sheet-image { --thumb-padding: .3rem; }
}
@media (max-width: 350px) {
  .chapter-night { padding-inline: 1rem; }
  .contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
