/* Collection-only additions to the existing NFT Leather design. */
.collection-page {
  --header-offset: 200px;
  color: #333333;
}

.collection-page :focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  background: white;
  z-index: 50;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.collection-page .header-inner { gap: 18px; }
.collection-page .site-header.is-compact .header-inner {
  min-height: 84px;
  padding: 8px 0;
}
.collection-page .site-header.is-compact .logo img { width: 195px; }
@media (max-width: 900px) {
  .collection-page .site-header.is-compact .header-inner {
    gap: 8px;
    padding: 10px 0;
  }
  .collection-page .site-header.is-compact .logo img { width: 180px; }
}
.collection-page .main-nav { gap: 12px 20px; }
.collection-page .main-nav a { padding: 8px 0; }
.collection-page section[id],
.collection-page main { scroll-margin-top: var(--header-offset); }

.gallery-section { padding: 64px 0 80px; }
.gallery-intro { max-width: 760px; margin-bottom: 40px; }
.gallery-intro h1,
.gallery-intro h2 { line-height: 1.2; }
.gallery-intro h1,
#collection-title { font-size: clamp(32px, 5vw, 52px); }
.gallery-intro h2 { font-size: clamp(29px, 4vw, 42px); }
.gallery-intro h2 span { color: #c7aa63; }
.gallery-copy { max-width: 620px; margin-bottom: 0; font-size: 20px; color: #555; }
.product-category + .product-category { margin-top: 64px; }
.product-category-title {
  margin-bottom: 28px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
}
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 28px; }
.gallery-card { min-width: 0; margin: 0; }
.gallery-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid #eee9df;
  overflow: hidden;
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
}
.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ded3ba;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #665324;
  font-size: 22px;
  transition: background 180ms ease;
}
.gallery-link:hover img { opacity: .94; }
.gallery-link:hover .gallery-zoom { background: #f7f3eb; }
.gallery-card figcaption {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
}
.details-grid { gap: 32px; }
.lifestyle-grid { gap: 40px; }

/* Lifestyle hero: the home page's warm gradient and serif typography. */
.lifestyle-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f7f3eb;
  overflow: hidden;
}
.lifestyle-hero-media {
  position: relative;
  order: 2;
  aspect-ratio: 4 / 5;
}
.lifestyle-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lifestyle-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f7f3eb 0%, rgba(247, 243, 235, .3) 12%, transparent 25%);
  pointer-events: none;
}
.lifestyle-hero-inner { position: relative; z-index: 1; }
.lifestyle-hero-copy { padding: 48px 0 12px; }
.lifestyle-hero-copy h1 {
  margin: 0;
  color: #333333;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
}
.lifestyle-hero-copy h1 span { color: #c7aa63; }

@media (min-width: 900px) {
  .lifestyle-hero { min-height: 720px; justify-content: center; }
  .lifestyle-hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    aspect-ratio: auto;
  }
  .lifestyle-hero-media img { object-position: center 38%; }
  .lifestyle-hero-media::after {
    background: linear-gradient(90deg, #f7f3eb 0%, rgba(247, 243, 235, .75) 12%, rgba(247, 243, 235, .12) 38%, transparent 65%);
  }
  .lifestyle-hero-copy { max-width: 52%; padding: 100px 0; }
  .lifestyle-hero-copy .section-label { max-width: 90%; }
}

/* Native modal dialog keeps the rest of the page inert. */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(18, 17, 15, .94); }
.lightbox[open] { display: flex; flex-direction: column; gap: 12px; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-bar p { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.lightbox button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: #333333;
  color: white;
  font: 26px/1 var(--font-main);
  cursor: pointer;
}
.lightbox button:hover { background: #665324; }
.lightbox button:disabled { opacity: .35; cursor: default; background: #333333; }
.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lightbox-image { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-prev, .lightbox-next { position: absolute; z-index: 1; top: calc(50% - 22px); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-caption { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.lightbox-caption p { margin: 0; }
.lightbox-counter { color: #dfc98f; font-variant-numeric: tabular-nums; }
#lightbox-help { margin: 0; text-align: center; font-size: 13px; color: #ccc; }
.lightbox-status { margin: 0; text-align: center; }
.lightbox-status:empty { display: none; }

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-section { padding: 88px 0 100px; }
  .lightbox { padding: 24px 32px; }
  .lightbox-image { max-width: calc(100% - 120px); }
}
@media (min-width: 1000px) {
  .collection-grid, .details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-intro { margin-bottom: 52px; }
  .gallery-section { padding: 100px 0 112px; }
  .lifestyle-grid { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collection-page * { transition: none; }
}
