/*
 * Phase 2H — main Photo Library prototype only.
 *
 * Inherited without alteration:
 * - global header, navigation, footer, fonts, focus treatment and buttons from styles.css
 * - semantic photo-library markup and accessibility behavior from official-photo-library.css
 *
 * Owned here:
 * - /media/photos/ content width, hero, collection navigator and media utility
 * - representative collection imagery and hub-only responsive behavior
 *
 * This file is linked only by /media/photos/.
 */

.photo-library-prototype-page {
  --plh-canvas: var(--paper, #f7f2e8);
  --plh-ink: var(--ink, #111412);
  --plh-text: var(--text, #2f352f);
  --plh-muted: var(--muted, #6b7068);
  --plh-line: var(--line, #ddd5c7);
  --plh-green: var(--green-dark, #0b3026);
  --plh-gold: var(--gold, #e8b84d);
  --plh-width: 1280px;
  --plh-grid-gap: clamp(24px, 2.2vw, 30px);
  --plh-row-gap: clamp(40px, 3.4vw, 48px);
  --plh-image-radius: 6px;
  --plh-meta-size: .68rem;
  background: var(--plh-canvas);
  color: var(--plh-text);
}

.photo-library-prototype-page main {
  overflow: clip;
}

.photo-library-prototype-page .opl-breadcrumb,
.photo-library-prototype-page .opl-hero,
.photo-library-prototype-page .phase2d-hub-groups,
.photo-library-prototype-page .phase2d-cta {
  width: min(calc(100% - 96px), var(--plh-width));
  margin-inline: auto;
}

.photo-library-prototype-page .opl-breadcrumb {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: 22px 0 14px;
  color: var(--plh-muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.photo-library-prototype-page .opl-breadcrumb a {
  color: inherit;
  text-decoration-color: transparent;
}

.photo-library-prototype-page .opl-breadcrumb a:hover,
.photo-library-prototype-page .opl-breadcrumb a:focus-visible {
  color: var(--plh-green);
  text-decoration-color: currentColor;
}

/* Brand-integrated identity hero: one compact first-viewport entrance. */
.photo-library-prototype-page .phase2b-photo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: clamp(40px, 5vw, 72px);
  min-height: 500px;
  align-items: center;
  margin: 0 auto clamp(62px, 6vw, 78px);
  padding: 0 0 25px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--plh-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--plh-text);
}

.photo-library-prototype-page .phase2b-photo-hero .opl-hero-copy {
  min-width: 0;
  align-self: center;
  padding: 0;
}

.photo-library-prototype-page .phase2b-photo-hero .eyebrow {
  margin: 0 0 14px;
  color: var(--plh-green);
  font-size: .68rem;
  letter-spacing: .12em;
}

.photo-library-prototype-page .phase2b-photo-hero h1 {
  max-width: 10ch;
  margin: 0 0 18px;
  color: var(--plh-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 4.45vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  overflow-wrap: normal;
}

.photo-library-prototype-page .phase2b-photo-hero .opl-lede {
  max-width: 560px;
  margin: 0;
  color: var(--plh-text);
  font-size: 1rem;
  line-height: 1.62;
}

.photo-library-prototype-page .phase2b-photo-hero .opl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.photo-library-prototype-page .phase2b-photo-hero .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.05rem;
  border: 1px solid var(--plh-green);
  border-radius: var(--radius, 8px);
  box-shadow: none;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.photo-library-prototype-page .phase2b-photo-hero .button.primary {
  border-color: var(--plh-gold);
  background: var(--plh-gold);
  color: var(--plh-ink);
}

.photo-library-prototype-page .phase2b-photo-hero .button.secondary {
  background: transparent;
  color: var(--plh-green);
}

.photo-library-prototype-page .phase2b-photo-hero dl {
  display: flex;
  gap: 0;
  margin: 28px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--plh-line);
}

.photo-library-prototype-page .phase2b-photo-hero dl div {
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--plh-line);
  background: transparent;
}

.photo-library-prototype-page .phase2b-photo-hero dl div:first-child { padding-left: 0; }
.photo-library-prototype-page .phase2b-photo-hero dl div:last-child { border-right: 0; }

.photo-library-prototype-page .phase2b-photo-hero dt,
.photo-library-prototype-page .phase2b-photo-hero dd {
  margin: 0;
  color: var(--plh-muted);
  font-family: inherit;
  font-size: var(--plh-meta-size);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.35;
  text-transform: none;
}

.photo-library-prototype-page .phase2b-photo-hero dt {
  color: var(--plh-green);
  font-size: .82rem;
  font-weight: 900;
}

.photo-library-prototype-page .phase2b-photo-hero .opl-hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--plh-image-radius);
  background: var(--plh-green);
}

.photo-library-prototype-page .phase2b-photo-hero .opl-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  border: 0;
  border-radius: 0;
}

.photo-library-prototype-page .phase2b-photo-hero .opl-hero-image figcaption {
  display: none;
}

/* One image-first navigation system for seven collection owners. */
.photo-library-prototype-page .phase2d-hub-groups {
  display: block;
  margin-bottom: clamp(64px, 7vw, 88px);
}

.photo-library-prototype-page .phase2d-hub-groups > .opl-section-heading {
  max-width: 720px;
  margin: 0 0 14px;
}

.photo-library-prototype-page .phase2d-hub-groups > .opl-section-heading .eyebrow,
.photo-library-prototype-page .phase2d-hub-groups > .opl-section-heading p:last-child {
  display: none;
}

.photo-library-prototype-page .phase2d-hub-groups > .opl-section-heading h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--plh-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.photo-library-prototype-page .phase2d-hub-group {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.photo-library-prototype-page .phase2d-hub-group + .phase2d-hub-group {
  margin-top: var(--plh-row-gap);
}

.photo-library-prototype-page .phase2d-hub-group:nth-of-type(2) + .phase2d-hub-group {
  margin-top: 38px;
}

.photo-library-prototype-page .phase2d-hub-group:nth-of-type(3) + .phase2d-hub-group {
  margin-top: 42px;
}

.photo-library-prototype-page .phase2d-hub-group > div:first-child {
  display: none;
}

.photo-library-prototype-page .phase2d-hub-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--plh-grid-gap);
}

.photo-library-prototype-page .phase2d-hub-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--plh-text);
  isolation: auto;
  text-decoration: none;
}

.photo-library-prototype-page .phase2d-hub-card::before {
  content: "";
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 14px;
  border-radius: var(--plh-image-radius);
  background-color: #d9d4c9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 160ms ease;
}

.photo-library-prototype-page .phase2d-hub-card::after { display: none; }
.photo-library-prototype-page .phase2d-hub-card:hover::before { filter: brightness(.96); }

.photo-library-prototype-page .phase2d-hub-card small { display: none; }

.photo-library-prototype-page .phase2d-hub-card strong {
  margin: 0;
  color: var(--plh-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.photo-library-prototype-page .phase2d-hub-card span {
  max-width: 50ch;
  margin-top: 7px;
  color: var(--plh-text);
  font-size: .84rem;
  line-height: 1.5;
}

.photo-library-prototype-page .phase2d-hub-card b {
  order: 2;
  margin-top: 9px;
  color: var(--plh-green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.photo-library-prototype-page .phase2d-hub-card b::after {
  content: "  →";
}

.photo-library-prototype-page .phase2d-hub-card--primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(360px, .76fr) minmax(0, 1.24fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: clamp(36px, 3.2vw, 46px);
  align-items: start;
}

.photo-library-prototype-page .phase2d-hub-card--primary::before {
  grid-column: 1;
  grid-row: 1 / 6;
  aspect-ratio: 4 / 5;
  margin: 0;
  background-color: var(--plh-green);
  background-position: 50% 42%;
  background-size: cover;
}

.photo-library-prototype-page .phase2d-hub-card--primary strong {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  width: min(100%, 480px);
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
}

.photo-library-prototype-page .phase2d-hub-card--primary span {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  width: min(100%, 480px);
}

.photo-library-prototype-page .phase2d-hub-card--primary b {
  grid-column: 2;
  grid-row: 4;
  justify-self: center;
  width: min(100%, 480px);
}

/* Approved existing representative assets. */
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(2) .phase2d-hub-card::before {
  background-image: url('/assets/photos/official-library/high-res/josh-liljenquist-minneapolis-skyline-portrait-stone-arch-bridge--jli-2026-0492.jpg');
}
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(3) .phase2d-hub-card:first-child::before {
  background-image: url('https://media.joshliljenquist.com/site-assets/assets/photos/official-library/high-res/josh-liljenquist-twin-cities-live-on-air-interview.jpg');
  background-position: 50% 43%;
}
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(3) .phase2d-hub-card:last-child::before {
  background-image: url('/assets/photos/collaborations/responsive/josh-liljenquist-jj-mccarthy-target-warm-supplies--jli-2026-0370-1280.webp');
  background-position: 50% 45%;
}
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:first-child::before {
  background-image: url('/assets/photos/community-impact/high-res/josh-liljenquist-helps-hotel-worker-chris--jli-2026-0004.jpg');
  background-position: 50% 48%;
}
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:nth-child(2)::before {
  background-image: url('/assets/photos/team/responsive/josh-liljenquist-with-ben-steine-and-james-cowan-jr--jli-2026-0132-1280.webp');
  background-position: 50% 38%;
}
.photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:nth-child(3)::before {
  background-image: url('/assets/photos/family/high-res/josh-liljenquist-josh-and-ingrid-close-couple-portrait--jli-2026-0319.jpg');
  background-position: 50% 38%;
}

.photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-collections {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 1.8vw, 24px);
}

.photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card::before {
  aspect-ratio: 3 / 2;
}

/* Remove the redundant mixed-entry navigator without changing its source data. */
.photo-library-prototype-page .phase2d-curated {
  display: none !important;
}

/* Compact media utility; current global footer remains untouched. */
.photo-library-prototype-page .phase2d-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  min-height: 160px;
  align-items: center;
  margin-bottom: clamp(52px, 6vw, 76px);
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--plh-line);
  border-bottom: 1px solid var(--plh-line);
  border-radius: 0;
  background: transparent;
  color: var(--plh-text);
}

.photo-library-prototype-page .phase2d-cta .eyebrow {
  margin: 0 0 7px;
  color: var(--plh-green);
  font-size: .65rem;
  letter-spacing: .1em;
}

.photo-library-prototype-page .phase2d-cta h2 {
  margin: 0;
  color: var(--plh-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.photo-library-prototype-page .phase2d-cta p:last-child {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--plh-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.photo-library-prototype-page .phase2d-cta .opl-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
}

.photo-library-prototype-page .phase2d-cta .button {
  min-height: 44px;
  padding: .68rem 1rem;
  border: 1px solid var(--plh-line);
  border-radius: var(--radius, 8px);
  background: transparent;
  box-shadow: none;
  color: var(--plh-green);
  font-size: .75rem;
  text-decoration: none;
}

.photo-library-prototype-page .phase2d-cta .button.primary {
  border-color: var(--plh-gold);
  background: var(--plh-gold);
  color: var(--plh-ink);
}

@media (max-width: 1100px) {
  .photo-library-prototype-page .opl-breadcrumb,
  .photo-library-prototype-page .opl-hero,
  .photo-library-prototype-page .phase2d-hub-groups,
  .photo-library-prototype-page .phase2d-cta {
    width: min(calc(100% - 64px), var(--plh-width));
  }
  .photo-library-prototype-page .phase2b-photo-hero {
    grid-template-columns: minmax(0, 1fr) minmax(370px, .9fr);
    gap: 40px;
    min-height: 460px;
  }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image { height: 460px; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image img { object-position: 50% 8%; }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--plh-grid-gap);
  }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:last-child {
    grid-column: 1 / -1;
  }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:last-child::before {
    aspect-ratio: 3 / 1;
  }
}

@media (max-width: 820px) {
  .photo-library-prototype-page .opl-breadcrumb,
  .photo-library-prototype-page .opl-hero,
  .photo-library-prototype-page .phase2d-hub-groups,
  .photo-library-prototype-page .phase2d-cta {
    width: min(calc(100% - 48px), var(--plh-width));
  }
  .photo-library-prototype-page .phase2b-photo-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    gap: 30px;
  }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image { height: 420px; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image img { object-position: 50% 6%; }
  .photo-library-prototype-page .phase2b-photo-hero dl { flex-wrap: wrap; row-gap: 7px; }
  .photo-library-prototype-page .phase2b-photo-hero dl div { padding-inline: 8px; }
}

@media (max-width: 680px) {
  .photo-library-prototype-page .opl-breadcrumb,
  .photo-library-prototype-page .opl-hero,
  .photo-library-prototype-page .phase2d-hub-groups,
  .photo-library-prototype-page .phase2d-cta {
    width: min(calc(100% - 40px), var(--plh-width));
  }
  .photo-library-prototype-page .opl-breadcrumb { padding: 15px 0 10px; font-size: .57rem; }
  .photo-library-prototype-page .phase2b-photo-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    margin-bottom: 52px;
    padding: 22px 0 30px;
  }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-copy { order: 0; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image { order: 1; height: auto; aspect-ratio: 4 / 5; }
  .photo-library-prototype-page .phase2b-photo-hero h1 { max-width: 9ch; font-size: clamp(2.4rem, 10.5vw, 2.8rem); }
  .photo-library-prototype-page .phase2b-photo-hero .opl-lede { font-size: .9rem; line-height: 1.52; }
  .photo-library-prototype-page .phase2b-photo-hero dl { display: none; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image { aspect-ratio: 1 / 1; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image figcaption { display: none; }
  .photo-library-prototype-page .phase2b-photo-hero .opl-hero-image img { object-position: 50% 2%; }
  .photo-library-prototype-page .phase2d-hub-groups > .opl-section-heading h2 { font-size: 2.25rem; }
  .photo-library-prototype-page .phase2d-hub-card--primary {
    display: flex;
    text-align: left;
  }
  .photo-library-prototype-page .phase2d-hub-card--primary strong {
    align-self: flex-start;
    width: 100%;
  }
  .photo-library-prototype-page .phase2d-hub-card--primary span,
  .photo-library-prototype-page .phase2d-hub-card--primary b { width: 100%; }
  .photo-library-prototype-page .phase2d-hub-card--primary::before {
    aspect-ratio: 4 / 5;
    margin-bottom: 14px;
    background-position: 50% 40%;
    background-size: cover;
  }
  .photo-library-prototype-page .phase2d-cta {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 26px 0;
  }
}

@media (min-width: 390px) and (max-width: 520px) {
  .photo-library-prototype-page .phase2d-hub-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .photo-library-prototype-page .phase2d-hub-group:first-of-type .phase2d-hub-collections {
    grid-template-columns: 1fr;
  }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:last-child::before {
    aspect-ratio: 2 / 1;
  }
  .photo-library-prototype-page .phase2d-hub-card strong { font-size: 1.12rem; }
  .photo-library-prototype-page .phase2d-hub-card:not(.phase2d-hub-card--primary) strong {
    min-height: 2.42em;
  }
  .photo-library-prototype-page .phase2d-hub-card span { display: none; }
  .photo-library-prototype-page .phase2d-hub-card b { font-size: .63rem; }
}

@media (max-width: 389px) {
  .photo-library-prototype-page .phase2d-hub-collections { grid-template-columns: 1fr; }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-collections { grid-template-columns: 1fr; }
  .photo-library-prototype-page .phase2d-hub-card span { display: none; }
  .photo-library-prototype-page .phase2d-hub-card strong { font-size: 1.45rem; }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:last-child {
    grid-column: auto;
  }
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card::before,
  .photo-library-prototype-page .phase2d-hub-group:nth-of-type(4) .phase2d-hub-card:last-child::before {
    aspect-ratio: 16 / 9;
  }
  .photo-library-prototype-page .phase2b-photo-hero dl div { width: 100%; padding: 0; border-right: 0; }
  .photo-library-prototype-page .phase2d-cta .opl-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-library-prototype-page .phase2d-hub-card::before { transition: none; }
}
