:root { /* fallback if variables.css missing */ }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background var(--dur-mid) var(--ease),
              backdrop-filter var(--dur-mid) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}
.site-header__logo {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: var(--letter-wide);
}
.site-header__nav {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--fs-small);
  letter-spacing: var(--letter-meta);
  text-transform: uppercase;
}

/* ============================================================
   PHOTO HERO — constrained to viewport height (v3)
   The whole photograph is ALWAYS fully visible without scroll
   or cropping, in any orientation (portrait or landscape).

   Strategy:
   - The figure is a flex box with a fixed max height (85vh).
   - The image uses object-fit: contain to fit inside it,
     never cropped, always centred, aspect ratio preserved.
   ============================================================ */
.photo-hero {
  padding-top: 90px;             /* clears the fixed header */
  background: var(--bg-primary);
}

.photo-hero__figure {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-md);
  box-sizing: border-box;

  /* Fixed viewport-relative height. The image will 'contain'
     itself inside this box — no cropping, ever. */
  height: 85vh;
  min-height: 400px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;             /* make sure nothing clips */
}

.photo-hero__image {
  /* contain = the ENTIRE image fits inside the figure box,
     scaled down as needed, aspect ratio preserved, never cropped. */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .photo-hero__figure {
    height: 80vh;
    padding: var(--space-sm);
  }
}

.photo-identity {
  text-align: center;
  padding-top: var(--space-lg);
}
.photo-identity__title {
  font-size: var(--fs-story);
  margin: var(--space-sm) 0;
}
.photo-identity__location {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}
.photo-identity__collections a { color: var(--text-primary); }
.photo-identity__collections a:hover { color: var(--accent); }

.photo-story {
  margin-top: var(--space-md);
  font-size: var(--fs-body);
  line-height: var(--lh-reading);
  color: var(--text-primary);
}
.photo-story p { margin-bottom: var(--space-md); }
.photo-story__cta { margin-top: var(--space-lg); }

.photo-context {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.photo-context__block p:last-child {
  margin-top: var(--space-xs);
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .photo-context { grid-template-columns: 1fr; gap: var(--space-md); }
}

.photo-technical ul { margin-top: var(--space-sm); }
.photo-technical li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--divider);
  font-size: var(--fs-small);
}
.photo-technical li span:first-child {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-meta);
}

.photo-print { text-align: center; }
.photo-print h2 {
  font-size: var(--fs-section);
  margin: var(--space-sm) 0 var(--space-md);
}
.photo-print__desc { color: var(--text-secondary); margin-bottom: var(--space-md); }
.photo-print__edition { margin-bottom: var(--space-xs); }
.photo-print__price {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: var(--space-lg);
}

.photo-quote blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-section);
  font-style: italic;
  text-align: center;
  line-height: var(--lh-normal);
  color: var(--text-primary);
}

.site-footer {
  padding: var(--space-xxl) 0 var(--space-lg);
  border-top: 1px solid var(--divider);
  text-align: center;
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: var(--letter-wide);
  margin-bottom: var(--space-sm);
}
.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  font-size: var(--fs-small);
  letter-spacing: var(--letter-meta);
  text-transform: uppercase;
}
.site-footer__copy { margin-top: var(--space-md); }

@media (max-width: 768px) {
  .site-header__nav { display: none; }
  .site-footer__nav { flex-direction: column; gap: var(--space-md); }
}
