/* Destination hub pages: /photography/<country>/ and /photography/<country>/<place>/
   plus the "Browse by place" section on /photography/. Generated by
   scripts/gen_photo_hubs.py; this file is hand-written. */

.hub-page {
  --hub-gap: clamp(12px, 1.6vw, 20px);
  padding: 0 var(--gutter, 20px) clamp(56px, 8vw, 104px);
  max-width: 1240px;
  margin: 0 auto;
}

.hub-crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  padding: clamp(18px, 2.4vw, 28px) 0 0;
}
.hub-crumbs a { color: var(--muted); text-decoration: none; }
.hub-crumbs a:hover, .hub-crumbs a:focus-visible { color: var(--purple); text-decoration: underline; }
.hub-crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.6; }

.hub-head { max-width: 46rem; padding: clamp(18px, 3vw, 34px) 0 clamp(20px, 3vw, 36px); }
.hub-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hub-intro { font-size: 1.08rem; line-height: 1.6; margin: 0 0 12px; text-wrap: pretty; }
.hub-fact { margin: 0; color: var(--muted); font-size: 0.95rem; font-style: italic; }

.hub-photos { padding: 0 0 clamp(24px, 3vw, 40px); }
.hub-photos h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: clamp(20px, 3vw, 36px) 0 16px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--hub-gap);
}
.hub-item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--purple-xlight);
  outline-offset: 3px;
}
.hub-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
  transition: transform 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (hover: hover) {
  .hub-img:hover img { transform: scale(1.025); }
}
.hub-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.4;
}
.hub-title { color: var(--ink); text-wrap: pretty; }
.hub-actions { display: flex; gap: 10px; flex-shrink: 0; font-weight: 600; }
.hub-actions a { color: var(--purple); text-decoration: none; }
.hub-actions a:hover, .hub-actions a:focus-visible { text-decoration: underline; }

.hub-shops {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.95rem;
  line-height: 1.55;
}
.hub-shops p { margin: 0; }

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--hub-gap);
  padding-bottom: clamp(24px, 3vw, 40px);
}
.hub-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--purple-xlight);
  text-decoration: none;
  color: #fff;
  aspect-ratio: 4 / 3;
}
.hub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (hover: hover) {
  .hub-card:hover img { transform: scale(1.04); }
}
.hub-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, oklch(12% 0.04 310 / 0.82), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-card-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
.hub-card-count { font-size: 0.82rem; opacity: 0.85; }

/* On /photography/ the section sits between the dark stage and the shops. */
.hub-browse { padding: clamp(40px, 6vw, 80px) var(--gutter, 20px) 0; max-width: 1240px; margin: 0 auto; }
.hub-browse-head { max-width: 46rem; margin-bottom: clamp(18px, 2.6vw, 30px); }
.hub-browse-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.hub-browse-head p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hub-img img, .hub-card img { transition: none; }
}
