.gallery { --paper: #20272b; --ink: #fcf6e9; --muted: #c9d1ce; --focus: #f7c66c; --edge: #667070; --wrap: 74rem; }
.gallery-mast { border-bottom: 1px solid #4f5857; }
.gallery-mast .wrap { display: flex; align-items: center; min-block-size: 66px; }
.gallery-mast img { inline-size: 106px; }
.gallery-intro { display: grid; grid-template-columns: 1.75fr 1fr; align-items: end; gap: .8rem 2.9rem; padding-block: clamp(1.7rem, 4vw, 3.4rem) clamp(1.35rem, 3.1vw, 2.5rem); }
.gallery-intro h1 { font-size: clamp(2.6rem, 5.7vw, 5.3rem); line-height: .88; letter-spacing: -.073em; }
.gallery-intro p { max-inline-size: 32ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.gallery-choices { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.9rem, 2.15vw, 1.9rem) clamp(.75rem, 2vw, 1.6rem); padding: 0; margin: 0; }
.gallery-choices li { grid-column: span 2; }
.gallery-choices li:nth-child(4) { grid-column: 2 / span 2; }
.gallery-choices a { display: block; text-decoration: none; }
.gallery-choices picture { display: block; overflow: hidden; border: 1px solid var(--edge); background: #343c3f; }
.gallery-choices img { aspect-ratio: 8 / 5; inline-size: 100%; block-size: auto; object-fit: cover; object-position: center top; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding-block: .65rem .55rem; min-block-size: 56px; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: clamp(1rem, 2vw, 1.46rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.choice small { margin-top: .18rem; color: var(--muted); font-size: .88rem; line-height: 1.22; }
.choice .arrow { color: #f6c78b; transition: transform 180ms var(--lift); }
.gallery-choices a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.gallery-choices a:hover .arrow { transform: translateX(-4px); }
.gallery-foot { margin-block-start: 1.2rem; border-top: 1px solid #4f5857; }
.gallery-foot .wrap { color: var(--muted); padding-block: .95rem; font-size: .875rem; }
@media (max-width: 48rem) {
  .gallery-intro { grid-template-columns: 1fr; }
  .gallery-intro p { max-inline-size: 44ch; }
}
@media (max-width: 39rem) {
  .gallery-mast .wrap { min-block-size: 58px; }
  .gallery-mast img { inline-size: 97px; }
  .gallery-intro { gap: .6rem; }
  .gallery-intro h1 { font-size: clamp(2.4rem, 10.6vw, 4rem); }

  .gallery-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-choices li, .gallery-choices li:nth-child(4) { grid-column: auto; }
  .gallery-choices img { aspect-ratio: .84; object-position: center 28%; }
  .choice { min-block-size: 52px; align-items: flex-start; }
  .choice strong { font-size: 1.1rem; }
  .choice small { font-size: .78rem; }
}
