/* V18: a gallery of locations, with room for multiple Afterwork editions. */
.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  align-items: end;
  gap: 70px;
  padding: clamp(140px, 12vw, 190px) var(--gutter) 68px;
}
.gallery-intro h1 { font-size: clamp(58px, 6.3vw, 88px); }
.gallery-intro p { max-width: 390px; font-size: 15px; line-height: 1.65; color: var(--muted); padding-bottom: 5px; }
.location-index { padding-top: 64px; padding-bottom: 90px; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.location-card { display: block; min-width: 0; }
.location-card:nth-child(2) { margin-top: 85px; }
.location-card-media { overflow: hidden; background: var(--navy-2); }
.location-card-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 51% center; transition: transform .65s var(--ease); }
.location-card[href*="duernstein"] .location-card-media img { object-position: center 72%; }
.location-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.location-card-caption h2 { font-size: clamp(30px, 3vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
.location-card-caption h2 em { font-size: 1.12em; line-height: 1.05; }
.location-card-arrow { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid rgba(11,23,32,.35); border-radius: 50%; transition: background .25s, color .25s; }
.location-card-arrow .icon { width: 23px; height: 23px; }
.location-card-count { display: block; margin-top: 19px; font-size: 10px; letter-spacing: .1em; color: #48545b; }
.location-card:hover .location-card-media img { transform: scale(1.018); }
.location-card:hover .location-card-arrow, .location-card:focus-visible .location-card-arrow { background: var(--navy); color: var(--cream); }
.location-hero { min-height: 510px; height: 62svh; }
.location-hero h1 { font-size: clamp(60px, 7.4vw, 92px); }
.location-hero-note { margin-top: 25px; max-width: 460px; font-size: 14px; line-height: 1.65; color: var(--cream); }
.location-album .album-section { padding-top: 38px; }
.location-toolbar { margin-bottom: 34px; }
.location-toolbar > a { gap: 12px; color: var(--ink); flex-direction: row; }
.location-toolbar > a .icon { width: 17px; height: 17px; }
.location-toolbar > a:first-child { flex-direction: row; }
.location-toolbar .location-switch { border-bottom-color: transparent; }
.location-toolbar .location-switch:hover { border-bottom-color: currentColor; }
.location-album .album-grid { gap: clamp(16px, 2.5vw, 36px); }
.location-album .album-grid .photo-link:nth-child(even) { margin-top: 44px; }
@media (max-width: 900px) {
  .gallery-intro { gap: 35px; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); padding-top: 140px; padding-bottom: 55px; }
  .gallery-intro h1 { font-size: 58px; }
  .gallery-intro p { font-size: 14px; }
  .location-card:nth-child(2) { margin-top: 65px; }
  .location-card-caption { gap: 14px; }
  .location-card-caption h2 { font-size: 30px; }
  .location-card-arrow { width: 40px; height: 40px; }
  .location-hero h1 { font-size: clamp(54px, 9vw, 76px); }
}
@media (max-width: 640px) {
  .gallery-intro { grid-template-columns: 1fr; gap: 28px; padding: 128px 22px 46px; }
  .gallery-intro h1 { font-size: clamp(40px, 11.5vw, 62px); }
  .gallery-intro p { font-size: 15px; max-width: 350px; padding: 0; }
  .location-index { padding-top: 33px; padding-bottom: 55px; }
  .location-grid { grid-template-columns: 1fr; gap: 48px; }
  .location-card:nth-child(2) { margin-top: 0; }
  .location-card-media img { aspect-ratio: 4 / 5; }
  .location-card-caption { margin-top: 21px; }
  .location-card-caption h2 { font-size: 33px; }
  .location-card-count { margin-top: 13px; font-size: 10px; }
  .location-hero { height: 65svh; min-height: 500px; padding-bottom: 38px; }
  .location-hero h1 { font-size: clamp(43px, 11.5vw, 64px); }
  .location-hero-note { max-width: 300px; margin-top: 23px; font-size: 14px; }
  .location-toolbar { flex-wrap: wrap; gap: 10px 18px; margin-bottom: 26px; }
  .location-toolbar > a { font-size: 9px; gap: 8px; }
  .location-album .album-section { padding-top: 24px; }
  .location-album .album-grid .photo-link:nth-child(n) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .location-card-media img, .location-card-arrow { transition: none; }
  .location-card:hover .location-card-media img { transform: none; }
}
