/* ========================================
   Photo Portfolio - Editorial Layouts
   Generous whitespace, no image cropping
   ======================================== */

/* CSS Variables */
:root {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #aaaaaa;
  --border-color: #e8e8e8;

  /* Generous Whitespace */
  --space-xs: 1rem;
  --space-sm: 2rem;
  --space-md: 4rem;
  --space-lg: 8rem;
  --space-xl: 12rem;
  --space-xxl: 16rem;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --max-width: 1600px;
  --header-height: 60px;

  /* Image sizing */
  --img-small: 180px;
  --img-medium: 280px;
  --img-large: 400px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
}

.site-logo {
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: var(--space-sm);
}

.site-nav a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--text-primary);
}

/* Centered Header Variant */
.site-header--centered {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--space-sm) var(--space-md);
  height: auto;
}

.site-header--centered + .main-content {
  padding-top: 0;
}

.site-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
}

.site-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.site-links a:hover {
  color: var(--text-primary);
}

.link-divider {
  color: var(--text-muted);
}

/* Main Content Area */
.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ========================================
   Index Page - Layout Selector
   ======================================== */

.index-hero {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.index-hero h1 {
  font-size: var(--font-size-xl);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.index-hero p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.layout-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.layout-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.layout-card img {
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.layout-card:hover img {
  opacity: 0.9;
}

.layout-card-overlay {
  padding: var(--space-sm);
  background: var(--bg-primary);
}

.layout-card-title {
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: 4px;
}

.layout-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ========================================
   Layout 1: Classic Grid
   Generous spacing, natural aspect ratios
   ======================================== */

.classic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.classic-grid .photo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.classic-grid .photo-item img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.classic-grid .photo-item:hover img {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .classic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 768px) {
  .classic-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md);
  }
}

/* ========================================
   Layout 2: Masonry
   Natural heights preserved
   ======================================== */

.masonry-grid {
  columns: 3;
  column-gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.masonry-grid .photo-item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  cursor: pointer;
}

.masonry-grid .photo-item img {
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.masonry-grid .photo-item:hover img {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .masonry-grid {
    columns: 2;
    column-gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    columns: 1;
    padding: var(--space-md);
  }
}

/* ========================================
   Layout 3: Magazine Editorial
   Asymmetric with breathing room
   ======================================== */

.magazine-layout {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.magazine-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
  align-items: start;
}

.magazine-hero .hero-main {
  cursor: pointer;
}

.magazine-hero .hero-main img {
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.magazine-hero .hero-main:hover img {
  opacity: 0.85;
}

.magazine-hero .hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
}

.magazine-hero .hero-sidebar .photo-item {
  cursor: pointer;
}

.magazine-hero .hero-sidebar .photo-item img {
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.magazine-hero .hero-sidebar .photo-item:hover img {
  opacity: 0.85;
}

.magazine-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
  justify-content: center;
  flex-wrap: wrap;
}

.magazine-row .photo-item {
  flex: 0 0 auto;
  max-width: var(--img-medium);
  cursor: pointer;
}

.magazine-row .photo-item img {
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.magazine-row .photo-item:hover img {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .magazine-hero {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .magazine-hero .hero-sidebar {
    flex-direction: row;
    padding-top: 0;
  }

  .magazine-hero .hero-sidebar .photo-item {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .magazine-layout {
    padding: var(--space-lg) var(--space-sm);
  }

  .magazine-hero .hero-sidebar {
    flex-direction: column;
  }

  .magazine-row {
    flex-direction: column;
    align-items: center;
  }

  .magazine-row .photo-item {
    max-width: 100%;
  }
}

/* ========================================
   Layout 4: Minimal Single Column
   Maximum whitespace between images
   ======================================== */

.minimal-column {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
}

.minimal-column .photo-item {
  margin-bottom: var(--space-xxl);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.minimal-column .photo-item img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.minimal-column .photo-item:hover img {
  opacity: 0.85;
}

.minimal-column .photo-caption {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .minimal-column {
    padding: var(--space-xl) var(--space-sm);
  }

  .minimal-column .photo-item {
    margin-bottom: var(--space-xl);
  }
}

/* ========================================
   Layout 5: Split Screen
   Image and whitespace alternating
   ======================================== */

.split-screen {
  padding-top: var(--space-lg);
}

.split-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  margin-bottom: var(--space-md);
}

.split-item:nth-child(even) {
  direction: rtl;
}

.split-item:nth-child(even) > * {
  direction: ltr;
}

.split-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: pointer;
}

.split-image img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.split-image:hover img {
  opacity: 0.85;
}

.split-space {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.split-space .photo-number {
  font-size: var(--font-size-xxl);
  font-weight: 200;
  color: var(--text-muted);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .split-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-item:nth-child(even) {
    direction: ltr;
  }

  .split-space {
    display: none;
  }

  .split-image {
    padding: var(--space-md);
  }
}

/* ========================================
   Layout 6: Bento Box
   Scattered layout with varied sizes
   ======================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
}

.bento-grid .photo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: var(--space-xs);
}

.bento-grid .photo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

.bento-grid .photo-item:hover img {
  opacity: 0.85;
}

/* Bento positioning - scattered effect */
.bento-grid .photo-item:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 5; }
.bento-grid .photo-item:nth-child(2) { grid-column: 5 / 8; grid-row: 2 / 6; }
.bento-grid .photo-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 4; }
.bento-grid .photo-item:nth-child(4) { grid-column: 2 / 5; grid-row: 7 / 11; }
.bento-grid .photo-item:nth-child(5) { grid-column: 7 / 10; grid-row: 8 / 12; }
.bento-grid .photo-item:nth-child(6) { grid-column: 11 / 13; grid-row: 6 / 9; }
.bento-grid .photo-item:nth-child(7) { grid-column: 1 / 3; grid-row: 13 / 16; }
.bento-grid .photo-item:nth-child(8) { grid-column: 5 / 8; grid-row: 14 / 18; }
.bento-grid .photo-item:nth-child(9) { grid-column: 9 / 12; grid-row: 13 / 17; }
.bento-grid .photo-item:nth-child(10) { grid-column: 2 / 5; grid-row: 19 / 23; }
.bento-grid .photo-item:nth-child(11) { grid-column: 7 / 9; grid-row: 20 / 23; }
.bento-grid .photo-item:nth-child(12) { grid-column: 10 / 13; grid-row: 19 / 22; }

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    padding: var(--space-lg) var(--space-md);
  }

  .bento-grid .photo-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 4; }
  .bento-grid .photo-item:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 4; }
  .bento-grid .photo-item:nth-child(3) { grid-column: 2 / 5; grid-row: 5 / 8; }
  .bento-grid .photo-item:nth-child(4) { grid-column: 1 / 3; grid-row: 9 / 12; }
  .bento-grid .photo-item:nth-child(5) { grid-column: 4 / 7; grid-row: 9 / 12; }
  .bento-grid .photo-item:nth-child(6) { grid-column: 2 / 5; grid-row: 13 / 16; }
  .bento-grid .photo-item:nth-child(7) { grid-column: 1 / 3; grid-row: 17 / 20; }
  .bento-grid .photo-item:nth-child(8) { grid-column: 4 / 7; grid-row: 17 / 20; }
  .bento-grid .photo-item:nth-child(9) { grid-column: 2 / 5; grid-row: 21 / 24; }
  .bento-grid .photo-item:nth-child(10) { grid-column: 1 / 3; grid-row: 25 / 28; }
  .bento-grid .photo-item:nth-child(11) { grid-column: 4 / 7; grid-row: 25 / 28; }
  .bento-grid .photo-item:nth-child(12) { grid-column: 2 / 5; grid-row: 29 / 32; }
}

@media (max-width: 768px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md);
  }

  .bento-grid .photo-item {
    max-width: 80%;
    margin: 0 auto;
  }

  .bento-grid .photo-item:nth-child(even) {
    margin-left: auto;
    margin-right: 10%;
  }

  .bento-grid .photo-item:nth-child(odd) {
    margin-left: 10%;
    margin-right: auto;
  }
}

/* ========================================
   Layout 7: Horizontal Scroll
   Cinematic with natural heights
   ======================================== */

.horizontal-scroll-container {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-scroll {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  padding: var(--space-md) var(--space-xl);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll .photo-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.horizontal-scroll .photo-item img {
  height: 60vh;
  width: auto;
  max-width: none;
  transition: opacity var(--transition-base);
}

.horizontal-scroll .photo-item:hover img {
  opacity: 0.85;
}

.scroll-hint {
  text-align: center;
  padding: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .horizontal-scroll {
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
  }

  .horizontal-scroll .photo-item img {
    height: 45vh;
  }
}

/* ========================================
   Layout 8: Staggered Offset
   Single viewport, scattered thumbnails - no overlap
   ======================================== */

.staggered-layout {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.staggered-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.staggered-item .photo-wrapper {
  cursor: pointer;
}

.staggered-item .photo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.staggered-item .photo-wrapper:hover img {
  opacity: 0.7;
}

/* Grid positioning - 4 rows x 6 columns, scattered within cells */
.staggered-item:nth-child(1) { grid-column: 1; grid-row: 1; justify-content: flex-start; align-items: flex-start; }
.staggered-item:nth-child(2) { grid-column: 3; grid-row: 1; justify-content: center; align-items: flex-end; }
.staggered-item:nth-child(3) { grid-column: 5; grid-row: 1; justify-content: flex-end; align-items: center; }

.staggered-item:nth-child(4) { grid-column: 2; grid-row: 2; justify-content: flex-start; align-items: center; }
.staggered-item:nth-child(5) { grid-column: 4; grid-row: 2; justify-content: center; align-items: flex-start; }
.staggered-item:nth-child(6) { grid-column: 6; grid-row: 2; justify-content: flex-end; align-items: flex-end; }

.staggered-item:nth-child(7) { grid-column: 1; grid-row: 3; justify-content: center; align-items: flex-end; }
.staggered-item:nth-child(8) { grid-column: 3; grid-row: 3; justify-content: flex-end; align-items: center; }
.staggered-item:nth-child(9) { grid-column: 5; grid-row: 3; justify-content: flex-start; align-items: flex-start; }

.staggered-item:nth-child(10) { grid-column: 2; grid-row: 4; justify-content: center; align-items: flex-start; }
.staggered-item:nth-child(11) { grid-column: 4; grid-row: 4; justify-content: flex-start; align-items: center; }
.staggered-item:nth-child(12) { grid-column: 6; grid-row: 4; justify-content: center; align-items: flex-end; }

/* Varied image sizes */
.staggered-item:nth-child(1) img { max-height: 120px; }
.staggered-item:nth-child(2) img { max-height: 150px; }
.staggered-item:nth-child(3) img { max-height: 110px; }
.staggered-item:nth-child(4) img { max-height: 140px; }
.staggered-item:nth-child(5) img { max-height: 160px; }
.staggered-item:nth-child(6) img { max-height: 100px; }
.staggered-item:nth-child(7) img { max-height: 130px; }
.staggered-item:nth-child(8) img { max-height: 145px; }
.staggered-item:nth-child(9) img { max-height: 115px; }
.staggered-item:nth-child(10) img { max-height: 135px; }
.staggered-item:nth-child(11) img { max-height: 125px; }
.staggered-item:nth-child(12) img { max-height: 140px; }

@media (max-width: 1024px) {
  .staggered-layout {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: var(--space-md);
  }

  .staggered-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .staggered-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .staggered-item:nth-child(3) { grid-column: 3; grid-row: 1; }
  .staggered-item:nth-child(4) { grid-column: 4; grid-row: 1; }
  .staggered-item:nth-child(5) { grid-column: 1; grid-row: 2; }
  .staggered-item:nth-child(6) { grid-column: 2; grid-row: 2; }
  .staggered-item:nth-child(7) { grid-column: 3; grid-row: 2; }
  .staggered-item:nth-child(8) { grid-column: 4; grid-row: 2; }
  .staggered-item:nth-child(9) { grid-column: 1; grid-row: 3; }
  .staggered-item:nth-child(10) { grid-column: 2; grid-row: 3; }
  .staggered-item:nth-child(11) { grid-column: 3; grid-row: 3; }
  .staggered-item:nth-child(12) { grid-column: 4; grid-row: 3; }

  .staggered-item:nth-child(n) img {
    max-height: 100px;
  }
}

@media (max-width: 768px) {
  .staggered-layout {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    padding: var(--space-sm);
  }

  .staggered-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .staggered-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .staggered-item:nth-child(3) { grid-column: 3; grid-row: 1; }
  .staggered-item:nth-child(4) { grid-column: 1; grid-row: 2; }
  .staggered-item:nth-child(5) { grid-column: 2; grid-row: 2; }
  .staggered-item:nth-child(6) { grid-column: 3; grid-row: 2; }
  .staggered-item:nth-child(7) { grid-column: 1; grid-row: 3; }
  .staggered-item:nth-child(8) { grid-column: 2; grid-row: 3; }
  .staggered-item:nth-child(9) { grid-column: 3; grid-row: 3; }
  .staggered-item:nth-child(10) { grid-column: 1; grid-row: 4; }
  .staggered-item:nth-child(11) { grid-column: 2; grid-row: 4; }
  .staggered-item:nth-child(12) { grid-column: 3; grid-row: 4; }

  .staggered-item:nth-child(n) img {
    max-height: 70px;
  }
}

/* ========================================
   Layout 9: Full Bleed Hero
   Large image with thumbnail navigation
   ======================================== */

.hero-layout {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.hero-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: pointer;
}

.hero-main-image img {
  max-width: 90%;
  max-height: 70vh;
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.hero-main-image:hover img {
  opacity: 0.9;
}

.hero-layout .hero-caption {
  position: absolute;
  bottom: 140px;
  left: var(--space-lg);
  color: var(--text-primary);
}

.hero-layout .hero-caption h2 {
  font-size: var(--font-size-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-thumbnail-strip {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  justify-content: center;
}

.hero-thumbnail-strip .thumb {
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.hero-thumbnail-strip .thumb.active,
.hero-thumbnail-strip .thumb:hover {
  opacity: 1;
}

.hero-thumbnail-strip .thumb img {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .hero-main-image {
    padding: var(--space-md);
  }

  .hero-main-image img {
    max-height: 50vh;
  }

  .hero-layout .hero-caption {
    left: var(--space-md);
    bottom: 120px;
  }

  .hero-thumbnail-strip {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  .hero-thumbnail-strip .thumb img {
    height: 40px;
  }
}

/* ========================================
   Layout 10: Film Contact Sheet
   Dense grid with natural sizing
   ======================================== */

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg);
  max-width: var(--max-width);
  margin: var(--space-lg) auto;
}

.contact-sheet .photo-item {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  background: var(--bg-secondary);
}

.contact-sheet .photo-item img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  filter: grayscale(30%);
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.contact-sheet .photo-item:hover img {
  filter: grayscale(0%);
  opacity: 0.9;
}

.contact-sheet .photo-item::after {
  content: attr(data-frame);
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .contact-sheet {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-sheet {
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .contact-sheet .photo-item img {
    max-height: 120px;
  }
}

/* ========================================
   Layout 11: Constellation
   Central hero with orbiting thumbnails
   Completely separate desktop/mobile styles
   ======================================== */

/* === BASE STYLES (shared) === */
.constellation-layout {
  width: 100%;
  background: var(--bg-primary);
}

.constellation-item {
  cursor: pointer;
}

.constellation-item img {
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.constellation-item:hover img {
  opacity: 0.8;
}

.constellation-item.thumb {
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.constellation-item.thumb:hover,
.constellation-item.thumb.active {
  opacity: 1;
}

/* Custom cursors - rotating shapes and colors for each thumbnail */

/* 4-pointed star - coral */
.constellation-thumbs .constellation-item:nth-child(1):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23e85d4c' d='M12 0 L14 10 L24 12 L14 14 L12 24 L10 14 L0 12 L10 10 Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* 8-pointed star - black */
.constellation-thumbs .constellation-item:nth-child(2):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a1a' d='M12 0L13.5 9L12 7L10.5 9L12 0ZM24 12L15 13.5L17 12L15 10.5L24 12ZM12 24L10.5 15L12 17L13.5 15L12 24ZM0 12L9 10.5L7 12L9 13.5L0 12ZM20.5 3.5L14 9L15.5 8.5L15 10L20.5 3.5ZM20.5 20.5L15 14L15.5 15.5L14 15L20.5 20.5ZM3.5 20.5L10 15L8.5 15.5L9 14L3.5 20.5ZM3.5 3.5L9 10L8.5 8.5L10 9L3.5 3.5Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Flower - purple */
.constellation-thumbs .constellation-item:nth-child(3):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='18.5' cy='9' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='18.5' cy='16' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='12' cy='19' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='5.5' cy='16' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='5.5' cy='9' r='4' fill='%238b5cf6'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23fef3c7'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Spiral - gold */
.constellation-thumbs .constellation-item:nth-child(4):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23eab308' stroke-width='2' stroke-linecap='round' d='M12 12 C12 10 14 8 16 8 C19 8 21 11 21 14 C21 18 17 22 12 22 C6 22 2 17 2 11 C2 5 7 1 14 1'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Asterisk/starburst - teal */
.constellation-thumbs .constellation-item:nth-child(5):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%230d9488' d='M11 0h2v10h-2zM11 14h2v10h-2zM0 11v2h10v-2zM14 11v2h10v-2zM3.5 3.5l1.4 1.4 7 7-1.4 1.4-7-7zM12.1 12.1l1.4 1.4 7 7-1.4 1.4-7-7zM19.1 4.9l-1.4 1.4-7 7 1.4 1.4 7-7zM10.5 13.5l-1.4 1.4-7 7 1.4 1.4 7-7z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Wavy blob star - rose */
.constellation-thumbs .constellation-item:nth-child(6):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23f43f5e' d='M12 1C13 4 11 6 14 7C17 6 18 4 19 6C20 9 17 10 18 12C19 15 22 14 21 17C19 19 17 17 15 19C14 21 16 23 13 23C10 23 12 20 10 19C7 20 6 23 4 21C3 18 6 17 5 14C3 13 1 15 1 12C1 9 4 10 4 7C4 4 2 4 4 2C7 1 7 4 10 4C12 3 10 1 12 1Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Circle dots - blue */
.constellation-thumbs .constellation-item:nth-child(7):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4' r='3' fill='%233b82f6'/%3E%3Ccircle cx='19' cy='8' r='3' fill='%233b82f6'/%3E%3Ccircle cx='19' cy='16' r='3' fill='%233b82f6'/%3E%3Ccircle cx='12' cy='20' r='3' fill='%233b82f6'/%3E%3Ccircle cx='5' cy='16' r='3' fill='%233b82f6'/%3E%3Ccircle cx='5' cy='8' r='3' fill='%233b82f6'/%3E%3C/svg%3E") 12 12, pointer;
}

/* 4-pointed star - green */
.constellation-thumbs .constellation-item:nth-child(8):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2322c55e' d='M12 0 L14 10 L24 12 L14 14 L12 24 L10 14 L0 12 L10 10 Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Daisy/sunburst - coral */
.constellation-thumbs .constellation-item:nth-child(9):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23e85d4c'%3E%3Cellipse cx='12' cy='4' rx='2' ry='4'/%3E%3Cellipse cx='12' cy='20' rx='2' ry='4'/%3E%3Cellipse cx='4' cy='12' rx='4' ry='2'/%3E%3Cellipse cx='20' cy='12' rx='4' ry='2'/%3E%3Cellipse cx='6.3' cy='6.3' rx='2' ry='4' transform='rotate(-45 6.3 6.3)'/%3E%3Cellipse cx='17.7' cy='17.7' rx='2' ry='4' transform='rotate(-45 17.7 17.7)'/%3E%3Cellipse cx='6.3' cy='17.7' rx='2' ry='4' transform='rotate(45 6.3 17.7)'/%3E%3Cellipse cx='17.7' cy='6.3' rx='2' ry='4' transform='rotate(45 17.7 6.3)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='3' fill='%23fef3c7'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Pinwheel/swirl - purple */
.constellation-thumbs .constellation-item:nth-child(10):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%238b5cf6' d='M12 12 C12 12 12 2 18 2 C18 8 12 12 12 12 C12 12 22 12 22 18 C16 18 12 12 12 12 C12 12 12 22 6 22 C6 16 12 12 12 12 C12 12 2 12 2 6 C8 6 12 12 12 12Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Squiggly star - gold */
.constellation-thumbs .constellation-item:nth-child(11):hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23eab308' d='M12 2C13 5 14 6 17 6C14 7 13 8 12 11C11 8 10 7 7 6C10 6 11 5 12 2ZM6 12C7 14 8 15 10 15C8 16 7 17 6 19C5 17 4 16 2 15C4 15 5 14 6 12ZM18 12C19 14 20 15 22 15C20 16 19 17 18 19C17 17 16 16 14 15C16 15 17 14 18 12Z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* No header variant */
.main-content--no-header {
  padding-top: 0;
}

/* === CONSTELLATION LAYOUT (desktop 1024px+ OR any landscape) === */
@media (min-width: 1024px), (orientation: landscape) {
  .constellation-layout {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }

  /* Embedded branding */
  .constellation-branding {
    position: absolute;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
  }

  .constellation-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
  }

  .constellation-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
  }

  .constellation-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
  }

  .constellation-links a:hover {
    color: var(--text-primary);
  }

  .constellation-links span {
    color: var(--text-muted);
  }

  .constellation-item.hero {
    position: absolute;
  }

  /* Thumbnails wrapper spans full viewport for absolute positioning */
  .constellation-thumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  .constellation-thumbs .constellation-item {
    pointer-events: auto;
  }

  .constellation-item.thumb:hover img {
    transform: scale(1.02);
  }

  /* Hero - center right with caption below, right-aligned */
  .constellation-item.hero {
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    z-index: 2;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Scale with viewport, reserve space for caption */
    max-height: clamp(200px, 55vmin, 75vh);
  }

  .constellation-item.hero img {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    /* Scale proportionally with viewport */
    max-height: clamp(150px, 50vmin, 70vh);
    max-width: clamp(150px, 35vmin, 40vw);
    object-fit: contain;
    transition: opacity 0.15s ease;
  }

  .constellation-item.hero .hero-caption {
    display: block;
    position: relative;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    letter-spacing: 0.03em;
  }

  /* Thumbnails wrapper - contains absolutely positioned thumbs */
  .constellation-thumbs .constellation-item {
    position: absolute;
  }

  /* Thumbnails - scattered positions with vmin-based scaling */
  .constellation-thumbs .constellation-item:nth-child(1) { top: 5%; left: 3%; }
  .constellation-thumbs .constellation-item:nth-child(1) img { max-height: clamp(35px, 9vmin, 90px); }

  .constellation-thumbs .constellation-item:nth-child(2) { top: 8%; left: 20%; }
  .constellation-thumbs .constellation-item:nth-child(2) img { max-height: clamp(40px, 10vmin, 100px); }

  .constellation-thumbs .constellation-item:nth-child(3) { top: 3%; right: 28%; }
  .constellation-thumbs .constellation-item:nth-child(3) img { max-height: clamp(30px, 8vmin, 80px); }

  .constellation-thumbs .constellation-item:nth-child(4) { top: 10%; right: 5%; }
  .constellation-thumbs .constellation-item:nth-child(4) img { max-height: clamp(35px, 9.5vmin, 95px); }

  .constellation-thumbs .constellation-item:nth-child(5) { top: 38%; left: 3%; }
  .constellation-thumbs .constellation-item:nth-child(5) img { max-height: clamp(45px, 11vmin, 110px); }

  .constellation-thumbs .constellation-item:nth-child(6) { top: 55%; left: 15%; }
  .constellation-thumbs .constellation-item:nth-child(6) img { max-height: clamp(35px, 8.5vmin, 85px); }

  .constellation-thumbs .constellation-item:nth-child(7) { top: 35%; right: 3%; }
  .constellation-thumbs .constellation-item:nth-child(7) img { max-height: clamp(35px, 9.5vmin, 95px); }

  .constellation-thumbs .constellation-item:nth-child(8) { bottom: 18%; left: 5%; }
  .constellation-thumbs .constellation-item:nth-child(8) img { max-height: clamp(35px, 9vmin, 90px); }

  .constellation-thumbs .constellation-item:nth-child(9) { bottom: 5%; left: 22%; }
  .constellation-thumbs .constellation-item:nth-child(9) img { max-height: clamp(40px, 10vmin, 100px); }

  .constellation-thumbs .constellation-item:nth-child(10) { bottom: 12%; right: 22%; }
  .constellation-thumbs .constellation-item:nth-child(10) img { max-height: clamp(35px, 8.5vmin, 85px); }

  .constellation-thumbs .constellation-item:nth-child(11) { bottom: 5%; right: 5%; }
  .constellation-thumbs .constellation-item:nth-child(11) img { max-height: clamp(40px, 10.5vmin, 105px); }
}

/* Landscape phones/small tablets - tighter constraints for short viewports */
@media (orientation: landscape) and (max-height: 500px) {
  .constellation-item.hero {
    max-height: 65vh;
  }

  .constellation-item.hero img {
    max-height: clamp(120px, 45vmin, 55vh);
  }
}

/* === PORTRAIT STYLES (under 1024px, portrait only) === */
/* Stacked hero + thumbnail strip for phones and tablets in portrait */
@media (max-width: 1023px) and (orientation: portrait) {
  .constellation-layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "branding"
      "hero"
      "thumbstrip";
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    padding: var(--space-sm) 0 0 0; /* Top padding only, no bottom */
    gap: var(--space-sm);
  }

  /* Embedded branding - mobile */
  .constellation-branding {
    grid-area: branding;
    width: 100%;
    text-align: center;
    padding: 0 var(--space-sm);
  }

  .constellation-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
  }

  .constellation-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
  }

  .constellation-links a {
    color: var(--text-secondary);
  }

  .constellation-links span {
    color: var(--text-muted);
  }

  /* Hero section - centered in available space */
  .constellation-item.hero {
    grid-area: hero;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
    cursor: default;
    min-height: 0; /* Allow grid item to shrink */
  }

  .constellation-item.hero img {
    display: block;
    /* Reserve space: branding ~70px, caption ~40px, thumbs 72px, gaps 32px, padding 32px */
    max-height: calc(100dvh - 250px);
    max-width: 92vw;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.15s ease;
  }

  .constellation-item.hero .hero-caption {
    display: block;
    position: relative;
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    letter-spacing: 0.03em;
    text-align: center;
  }

  /* Thumbnail strip container - fixed at bottom */
  .constellation-thumbs {
    grid-area: thumbstrip;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-primary);
  }

  .constellation-thumbs::-webkit-scrollbar {
    display: none;
  }

  /* Individual thumbnails in strip */
  .constellation-thumbs .constellation-item {
    flex: 0 0 auto;
    position: relative;
  }

  .constellation-thumbs .constellation-item img {
    height: 72px;
    width: auto;
    max-height: none;
    display: block;
  }

  /* Active thumbnail indicator */
  .constellation-thumbs .constellation-item.active {
    opacity: 1;
  }

  .constellation-thumbs .constellation-item:not(.active) {
    opacity: 0.5;
  }
}

/* ========================================
   Layout 12: Polaroid Scatter
   Labeled thumbnails with organic placement
   ======================================== */

.polaroid-layout {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--bg-primary);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: var(--space-lg);
}

.polaroid-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.polaroid-item img {
  max-height: 120px;
  width: auto;
  transition: opacity var(--transition-base);
}

.polaroid-item:hover img {
  opacity: 0.7;
}

.polaroid-label {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-family: var(--font-primary);
}

/* Scattered grid positioning */
.polaroid-item:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; }
.polaroid-item:nth-child(2) { grid-column: 3; grid-row: 1; align-self: end; justify-self: center; }
.polaroid-item:nth-child(3) { grid-column: 4; grid-row: 1; align-self: start; justify-self: end; }
.polaroid-item:nth-child(4) { grid-column: 5; grid-row: 1; align-self: center; justify-self: end; }

.polaroid-item:nth-child(5) { grid-column: 2; grid-row: 2; align-self: center; justify-self: start; }
.polaroid-item:nth-child(6) { grid-column: 3; grid-row: 2; align-self: end; justify-self: center; }
.polaroid-item:nth-child(7) { grid-column: 5; grid-row: 2; align-self: end; justify-self: center; }

.polaroid-item:nth-child(8) { grid-column: 2; grid-row: 3; align-self: start; justify-self: center; }
.polaroid-item:nth-child(9) { grid-column: 4; grid-row: 3; align-self: center; justify-self: start; }

.polaroid-item:nth-child(10) { grid-column: 1; grid-row: 4; align-self: end; justify-self: start; }
.polaroid-item:nth-child(11) { grid-column: 2; grid-row: 4; align-self: center; justify-self: end; }
.polaroid-item:nth-child(12) { grid-column: 4; grid-row: 4; align-self: end; justify-self: center; }

/* Varied sizes */
.polaroid-item:nth-child(2) img { max-height: 140px; }
.polaroid-item:nth-child(4) img { max-height: 100px; }
.polaroid-item:nth-child(6) img { max-height: 130px; }
.polaroid-item:nth-child(8) img { max-height: 110px; }
.polaroid-item:nth-child(10) img { max-height: 95px; }

@media (max-width: 1024px) {
  .polaroid-layout {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: var(--space-md);
  }

  .polaroid-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .polaroid-item img {
    max-height: 90px !important;
  }
}

@media (max-width: 768px) {
  .polaroid-layout {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .polaroid-item {
    align-self: center !important;
    justify-self: center !important;
  }

  .polaroid-item img {
    max-height: 70px !important;
  }

  .polaroid-label {
    font-size: 9px;
  }
}

/* ========================================
   Layout 13: Edge Cluster
   Images at edges, empty dramatic center
   ======================================== */

.edge-cluster-layout {
  width: 100%;
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.edge-top,
.edge-bottom {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  overflow-x: auto;
}

.edge-top {
  align-items: flex-start;
  justify-content: space-between;
}

.edge-bottom {
  align-items: flex-end;
  justify-content: space-between;
}

.edge-item {
  flex: 0 0 auto;
  cursor: pointer;
}

.edge-item img {
  height: auto;
  width: auto;
  max-height: 130px;
  transition: opacity var(--transition-base);
}

.edge-item:hover img {
  opacity: 0.7;
}

/* Varied thumbnail sizes */
.edge-top .edge-item:nth-child(1) img { max-height: 110px; }
.edge-top .edge-item:nth-child(2) img { max-height: 140px; }
.edge-top .edge-item:nth-child(3) img { max-height: 100px; }
.edge-top .edge-item:nth-child(4) img { max-height: 150px; }
.edge-top .edge-item:nth-child(5) img { max-height: 120px; }
.edge-top .edge-item:nth-child(6) img { max-height: 95px; }

.edge-bottom .edge-item:nth-child(1) img { max-height: 130px; }
.edge-bottom .edge-item:nth-child(2) img { max-height: 105px; }
.edge-bottom .edge-item:nth-child(3) img { max-height: 145px; }
.edge-bottom .edge-item:nth-child(4) img { max-height: 115px; }
.edge-bottom .edge-item:nth-child(5) img { max-height: 135px; }
.edge-bottom .edge-item:nth-child(6) img { max-height: 100px; }

.edge-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.edge-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.edge-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .edge-item img {
    max-height: 100px !important;
  }

  .edge-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .edge-top,
  .edge-bottom {
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .edge-item img {
    max-height: 70px !important;
  }

  .edge-title {
    font-size: 1rem;
  }

  .edge-subtitle {
    font-size: 11px;
  }
}

/* ========================================
   Layout 14: Editorial Spread
   Magazine-style with text and images
   ======================================== */

.editorial-layout {
  width: 100%;
  height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: var(--bg-primary);
  overflow: hidden;
}

.editorial-text {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.editorial-number {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.editorial-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.editorial-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

.editorial-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: var(--space-md);
}

.editorial-images {
  position: relative;
  padding: var(--space-md);
}

.editorial-item {
  position: absolute;
  cursor: pointer;
}

.editorial-item img {
  width: auto;
  height: auto;
  transition: opacity var(--transition-base);
}

.editorial-item:hover img {
  opacity: 0.8;
}

/* Asymmetric image placement */
.editorial-item.item-1 {
  top: 5%;
  right: 15%;
}
.editorial-item.item-1 img { max-height: 200px; }

.editorial-item.item-2 {
  top: 8%;
  left: 5%;
}
.editorial-item.item-2 img { max-height: 130px; }

.editorial-item.item-3 {
  top: 35%;
  left: 20%;
}
.editorial-item.item-3 img { max-height: 160px; }

.editorial-item.item-4 {
  top: 25%;
  right: 5%;
}
.editorial-item.item-4 img { max-height: 100px; }

.editorial-item.item-5 {
  bottom: 25%;
  left: 5%;
}
.editorial-item.item-5 img { max-height: 140px; }

.editorial-item.item-6 {
  bottom: 30%;
  left: 40%;
}
.editorial-item.item-6 img { max-height: 120px; }

.editorial-item.item-7 {
  bottom: 5%;
  right: 25%;
}
.editorial-item.item-7 img { max-height: 150px; }

.editorial-item.item-8 {
  bottom: 8%;
  right: 3%;
}
.editorial-item.item-8 img { max-height: 110px; }

@media (max-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: calc(100vh - var(--header-height));
  }

  .editorial-text {
    padding: var(--space-lg) var(--space-md);
    justify-content: flex-start;
  }

  .editorial-images {
    position: relative;
    min-height: 60vh;
  }

  .editorial-item img {
    max-height: 120px !important;
  }
}

@media (max-width: 768px) {
  .editorial-text {
    padding: var(--space-md);
  }

  .editorial-title {
    font-size: 1.75rem;
  }

  .editorial-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    align-content: start;
    min-height: auto;
    padding: var(--space-md);
  }

  .editorial-item {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .editorial-item img {
    max-height: 80px !important;
  }
}

/* ========================================
   Lightbox
   ======================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.lightbox.active .lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption {
  color: var(--text-primary);
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  z-index: 1001;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: var(--space-xs);
  }

  .lightbox-next {
    right: var(--space-xs);
  }
}

/* ========================================
   Page Titles
   ======================================== */

.page-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.page-header h1 {
  font-size: var(--font-size-lg);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
