/*
Theme Name: Daniel Devine Photography
Theme URI: https://danieldevine.com
Author: Daniel Devine
Author URI: https://danieldevine.com
Description: A minimal dark-mode photography portfolio theme with custom post types for albums and work categories.
Version: 3.8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danieldevine
Tags: photography, portfolio, dark, minimal, custom-logo

Dark editorial photography portfolio theme.
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --bg-deep: #0a0a0a;
  --bg-panel: #121212;
  --bg-card: #141414;
  --text-primary: #f2f2f2;
  --text-secondary: #b8b8b8;
  --text-muted: #666666;
  --border-subtle: rgba(255,255,255,0.1);
  --shadow-heavy: 0 8px 40px rgba(0,0,0,0.5);
  --font-main: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Fluid spacing */
  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 16px);
  --space-md: clamp(16px, 2vw, 32px);
  --space-lg: clamp(24px, 3vw, 48px);
  --space-xl: clamp(40px, 5vw, 80px);
  
  /* Container widths */
  --container-max: 1400px;
  --container-wide: 1800px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Grain baked into body background via blend mode */
  background-color: var(--bg-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px;
  background-blend-mode: soft-light;
}

/* Homepage specific - no scroll */
body.is-homepage {
  height: 100vh;
}

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

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

/* ============================================
   GRAIN & VIGNETTE
   Grain: SVG feTurbulence baked into body bg.
   Vignette: overlay div with its own noise layer 
   that dithers the gradient (eliminates banding).
   Transparent center = no effect on photos/content.
   ============================================ */

.grain-overlay {
  display: none;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Subtle vignette — kept light enough that 8-bit banding 
     is imperceptible on dark backgrounds. Max opacity 0.35. */
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 30%,
    rgba(0,0,0,0.01) 33%,
    rgba(0,0,0,0.02) 36%,
    rgba(0,0,0,0.03) 39%,
    rgba(0,0,0,0.04) 42%,
    rgba(0,0,0,0.06) 45%,
    rgba(0,0,0,0.08) 48%,
    rgba(0,0,0,0.10) 51%,
    rgba(0,0,0,0.12) 54%,
    rgba(0,0,0,0.14) 57%,
    rgba(0,0,0,0.16) 60%,
    rgba(0,0,0,0.18) 63%,
    rgba(0,0,0,0.20) 66%,
    rgba(0,0,0,0.22) 69%,
    rgba(0,0,0,0.24) 72%,
    rgba(0,0,0,0.26) 75%,
    rgba(0,0,0,0.28) 78%,
    rgba(0,0,0,0.29) 81%,
    rgba(0,0,0,0.30) 84%,
    rgba(0,0,0,0.31) 87%,
    rgba(0,0,0,0.32) 90%,
    rgba(0,0,0,0.33) 93%,
    rgba(0,0,0,0.34) 96%,
    rgba(0,0,0,0.35) 100%
  );
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.home-page {
  /* Homepage is full height */
}

/* ============================================
   DESKTOP NAVIGATION (under brand header)
   ============================================ */
.main-nav {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.nav-link {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  position: relative;
  white-space: nowrap;
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transition: width 0.3s ease;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active,
.current-menu-item .nav-link,
.current_page_item .nav-link {
  opacity: 1;
}

.nav-link.active::after,
.current-menu-item .nav-link::after,
.current_page_item .nav-link::after {
  width: 100%;
}

/* ============================================
   MOBILE HEADER BAR
   ============================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 0 16px;
  align-items: center;
  justify-content: flex-end;
}

.mobile-brand {
  font-family: var(--font-main);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ffffff;
  opacity: 0.9;
  text-transform: uppercase;
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.mobile-menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu-overlay li {
  margin: 8px 0;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 32px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  opacity: 1;
}

.mobile-nav-link.active {
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   BRAND HEADER
   ============================================ */
.brand-header {
  padding: var(--space-lg) 0 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.brand-container {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}

.brand-name {
  font-family: var(--font-main);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: clamp(8px, 1.5vw, 14px);
  color: #ffffff;
  opacity: 0.9;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.brand-name a {
  color: inherit;
  text-decoration: none;
}

/* Manual reflection - cross-browser */
.reflection-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 30px;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}

.reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: var(--font-main);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: clamp(8px, 1.5vw, 14px);
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  transform: scaleY(-1);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.reflection-1 {
  opacity: 0.15;
  filter: blur(0.3px);
}

.reflection-2 {
  opacity: 0.08;
  filter: blur(1px);
}

.reflection-3 {
  opacity: 0.04;
  filter: blur(2px);
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */
.content-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  flex: 1;
}

/* Wider container for grids on large screens */
.content-container.wide {
  max-width: var(--container-wide);
}

.page-title {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: clamp(4px, 0.6vw, 7px);
  text-transform: uppercase;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-md);
}

/* ============================================
   HOME PAGE & CAROUSEL
   ============================================ */
.home-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hide footer on homepage */
body.is-homepage .site-footer {
  display: none;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Match body background exactly: flat color + grain */
  background-color: var(--bg-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px;
  background-blend-mode: soft-light;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
  padding: 0;
  padding-top: 20px;
  overflow: hidden;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  max-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fade edges */
.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 80px;
  max-width: 200px;
  z-index: 10;
  pointer-events: none;
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, 
    rgba(10,10,10,1) 0%, 
    rgba(10,10,10,0.8) 30%,
    rgba(10,10,10,0.4) 60%,
    rgba(10,10,10,0) 100%
  );
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, 
    rgba(10,10,10,1) 0%, 
    rgba(10,10,10,0.8) 30%,
    rgba(10,10,10,0.4) 60%,
    rgba(10,10,10,0) 100%
  );
}

/* Carousel Track (legacy, kept for reference) */
.carousel-track {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  user-select: none;
  position: relative;
  left: 0;
}

.carousel-slide .placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.carousel-slide:nth-child(2) .placeholder-img { background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%); }
.carousel-slide:nth-child(3) .placeholder-img { background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%); }
.carousel-slide:nth-child(4) .placeholder-img { background: linear-gradient(135deg, #2a2a3a 0%, #1e1e2e 100%); }
.carousel-slide:nth-child(5) .placeholder-img { background: linear-gradient(135deg, #1c1c1c 0%, #2c2c2c 100%); }
.carousel-slide:nth-child(6) .placeholder-img { background: linear-gradient(135deg, #202030 0%, #151525 100%); }

/* Scroll hint — hidden by default, JS reveals on first visit */
.scroll-hint {
  margin-top: 32px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-hint.visible {
  opacity: 0.3;
}

.scroll-hint.hidden {
  opacity: 0;
}

.scroll-hint span {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.carousel-container:hover + .scroll-hint,
.carousel-track:active + .scroll-hint {
  opacity: 0.1;
}

/* ============================================
   ALBUM & WORK GRIDS
   ============================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  padding-bottom: var(--space-xl);
}

.album-tile {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.album-tile:hover {
  transform: translateY(-4px);
}

.album-tile:hover .album-image-container img {
  transform: scale(1.05);
}

.album-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  background: var(--bg-panel);
}

.album-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(24px, 4vw, 48px) clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.album-tile:hover .album-overlay {
  opacity: 1;
  transform: translateY(0);
}

.album-title {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: clamp(1px, 0.2vw, 2px);
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding-bottom: var(--space-xl);
}

.work-tile {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.work-tile:hover {
  transform: translateY(-4px);
}

.work-tile:hover .work-image-container img {
  transform: scale(1.03);
}

.work-image-container {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  background: var(--bg-panel);
}

.work-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-tile:hover .work-overlay {
  opacity: 1;
}

.work-title {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: clamp(2px, 0.3vw, 4px);
  color: #ffffff;
  text-transform: uppercase;
}

/* ============================================
   BLOG
   ============================================ */
.blog-content {
  padding-bottom: var(--space-xl);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, #0f0f0f 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.featured-content {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tag {
  font-family: var(--font-main);
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 2px;
  color: #888;
  margin-bottom: clamp(12px, 1.5vw, 20px);
  text-transform: uppercase;
}

.featured-title {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 clamp(8px, 1vw, 14px) 0;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover {
  opacity: 0.8;
}

.post-date {
  font-family: var(--font-main);
  font-size: clamp(11px, 1vw, 13px);
  color: var(--text-muted);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.featured-excerpt {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 clamp(20px, 2.5vw, 28px) 0;
}

.read-more-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 2px;
  padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 28px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.read-more-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.featured-image {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--bg-panel);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.post-card {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(135deg, var(--bg-panel) 0%, #0d0d0d 100%);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-thumbnail {
  width: clamp(100px, 12vw, 140px);
  height: clamp(70px, 8vw, 98px);
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* Allow text truncation */
}

.category-tag-small {
  font-family: var(--font-main);
  font-size: clamp(8px, 0.8vw, 10px);
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: clamp(6px, 0.8vw, 10px);
  text-transform: uppercase;
}

.post-title {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--text-primary);
  margin: 0 0 clamp(6px, 0.8vw, 10px) 0;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-date-small {
  font-family: var(--font-main);
  font-size: clamp(10px, 0.9vw, 12px);
  color: #555;
}

/* Single Post */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

.single-post-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.single-post-title {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.single-post-meta {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--text-muted);
  letter-spacing: 1px;
}

.single-post-featured {
  margin-bottom: var(--space-lg);
  border-radius: 6px;
  overflow: hidden;
}

.single-post-featured img {
  width: 100%;
}

.single-post-body {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: var(--text-secondary);
}

.single-post-body p {
  margin-bottom: var(--space-md);
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
  font-weight: 400;
}

.single-post-body blockquote {
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(300px, 500px);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  padding-bottom: var(--space-xl);
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.portrait-container {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  background: var(--bg-panel);
  aspect-ratio: 4/5;
}

.portrait-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-container {
  padding-top: var(--space-sm);
}

.bio-headline {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
}

.bio-paragraph {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-sm) 0;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  margin: var(--space-md) 0;
}

.stats-row {
  display: flex;
  gap: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-main);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cta-text {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 15px);
  color: #888;
  margin: 0 0 var(--space-md) 0;
}

.cta-button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 2px;
  padding: clamp(12px, 1.4vw, 16px) clamp(28px, 3vw, 36px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
  padding-bottom: var(--space-xl);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  background: linear-gradient(135deg, #131313 0%, #0d0d0d 100%);
  border-radius: 6px;
  padding: clamp(32px, 4vw, 64px);
  box-shadow: var(--shadow-heavy);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-headline {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
}

.contact-text {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  color: #999;
  margin: 0 0 var(--space-sm) 0;
}

.social-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-main);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 1px;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 8px 0; /* Larger touch target */
}

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

.social-divider {
  color: rgba(255,255,255,0.2);
  font-size: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-main);
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 2px;
  color: var(--text-muted);
}

.form-input,
.wpcf7-text,
.wpcf7-email {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: clamp(14px, 1.6vw, 18px) clamp(14px, 1.6vw, 18px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.wpcf7-text:focus,
.wpcf7-email:focus {
  border-color: rgba(255,255,255,0.25);
}

.form-input::placeholder,
.wpcf7-text::placeholder,
.wpcf7-email::placeholder {
  color: #444;
}

.form-textarea,
.wpcf7-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: clamp(14px, 1.6vw, 18px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  min-height: clamp(120px, 15vw, 160px);
  transition: border-color 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-textarea:focus,
.wpcf7-textarea:focus {
  border-color: rgba(255,255,255,0.25);
}

.form-textarea::placeholder,
.wpcf7-textarea::placeholder {
  color: #444;
}

.send-button,
.wpcf7-submit {
  align-self: flex-start;
  background: var(--text-primary);
  border: none;
  color: var(--bg-deep);
  font-family: var(--font-main);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 500;
  letter-spacing: 2px;
  padding: clamp(14px, 1.6vw, 18px) clamp(36px, 4vw, 48px);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.send-button:hover,
.wpcf7-submit:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-main);
  font-size: 13px;
  letter-spacing: 0.5px;
  min-height: 20px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* Contact Form 7 Adjustments */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  font-family: var(--font-main);
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

/* ============================================
   SINGLE ALBUM / WORK GALLERY
   ============================================ */
.gallery-header {
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.gallery-title {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.gallery-description {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  padding-bottom: var(--space-xl);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Immediate animate-in (page load) */
.animate-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Staggered delays for page entry elements */
.animate-stagger-1 { animation-delay: 0.1s; opacity: 0; }
.animate-stagger-2 { animation-delay: 0.25s; opacity: 0; }
.animate-stagger-3 { animation-delay: 0.4s; opacity: 0; }

.animate-delay {
  animation-delay: 0.2s;
  opacity: 0;
}

/* Scroll-reveal: hidden until IntersectionObserver triggers */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside reveal containers (grids) */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger grid children */
.reveal-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-children.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-children.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-children.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-children.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-children.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-children.is-visible > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-children.is-visible > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-children.is-visible > *:nth-child(10) { transition-delay: 0.72s; }
.reveal-children.is-visible > *:nth-child(n+11) { transition-delay: 0.8s; }

/* ============================================
   LIGHTBOX TRIGGER
   ============================================ */
.lightbox-trigger {
  cursor: zoom-in;
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image {
  margin: var(--space-md) 0;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, transparent 100%);
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-social-link:hover {
  opacity: 0.8;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (2560x1440+)
   ============================================ */
@media (min-width: 1800px) {
  :root {
    --container-max: 1600px;
    --container-wide: 2200px;
  }
  
  .album-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ultra-wide screens */
@media (min-width: 2400px) {
  :root {
    --container-max: 1800px;
    --container-wide: 2600px;
  }
  
  .album-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RESPONSIVE - TABLET LANDSCAPE
   ============================================ */
@media (max-width: 1200px) {
  .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   RESPONSIVE - TABLET PORTRAIT
   ============================================ */
@media (max-width: 1024px) {
  .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: minmax(200px, 300px) minmax(250px, 1fr);
    gap: 32px;
  }
  
  .portrait-container {
    max-width: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    aspect-ratio: 16/9;
    order: -1;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (iPhone 15 / 393px)
   ============================================ */
@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 50px;
  }
  
  .home-page {
    padding-top: 50px;
  }
  
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }
  
  /* Show mobile menu overlay (but hidden until active) */
  .mobile-menu-overlay {
    display: flex;
  }
  
  /* Hide desktop nav on mobile */
  .main-nav {
    display: none;
  }
  
  /* Reduce brand header spacing */
  .brand-header {
    padding-top: 16px;
  }

  /* No grain on mobile — iOS amplifies any blend mode aggressively.
     Use a subtle radial gradient for depth instead. */
  body {
    background-image:
      radial-gradient(ellipse at center top, #111114 0%, #0a0a0a 50%, #060608 100%);
    background-blend-mode: normal;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  /* Re-enable grain overlay on mobile using pre-baked RGBA PNG.
     Transparency is in the alpha channel — no blend modes needed,
     so iOS can't amplify it.
     z-index: 1 keeps it above body background but below content. */
  .grain-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: url('assets/grain-mobile.png');
    background-repeat: repeat;
    background-size: 256px;
    opacity: 0.35;
  }

  /* Ensure content renders above grain overlay */
  .page-wrapper,
  .home-page,
  .site-footer {
    position: relative;
    z-index: 2;
  }

  /* Hide vignette on mobile - too heavy on small screens */
  .vignette {
    display: none;
  }
  
  .brand-container {
    margin-bottom: 24px;
  }
  
  /* Reduce page title spacing */
  .page-title {
    margin-bottom: 20px;
    margin-top: 8px;
  }
  
  /* About page - side by side on mobile */
  .about-content {
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
  }
  
  .portrait-container {
    max-width: 120px;
    margin: 0;
    aspect-ratio: 3/4;
  }
  
  .bio-container {
    padding-top: 0;
  }
  
  .bio-headline {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .bio-paragraph {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  
  .divider {
    margin: 12px 0;
  }
  
  .stats-row {
    gap: 16px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 9px;
  }
  
  .cta-text {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .cta-button {
    font-size: 10px;
    padding: 12px 24px;
  }
  
  /* Hero content mobile */
  .hero-content {
    padding-top: 10px;
  }
  
  /* Carousel mobile adjustments */
  .carousel-container {
    flex: 1;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  
  .carousel-slide {
    width: clamp(280px, 85vw, 380px);
    height: clamp(200px, 60vw, 280px);
  }
  
  .carousel-fade {
    width: 8%;
    min-width: 25px;
    max-width: 40px;
  }
  
  .scroll-hint {
    margin-top: 12px;
  }
  
  .scroll-hint span {
    font-size: 9px;
    letter-spacing: 2px;
  }
  
  .content-container {
    padding: 0 16px;
  }
  
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }
  
  .contact-headline {
    font-size: 20px;
  }
  
  .brand-name,
  .reflection {
    font-size: 18px;
    letter-spacing: 5px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .single-post-content {
    padding-left: 0;
    padding-right: 0;
  }
  
  .post-card {
    flex-direction: column;
    gap: 16px;
  }
  
  .post-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (375px and below)
   ============================================ */
@media (max-width: 400px) {
  .album-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .album-image-container {
    aspect-ratio: 3/2;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  .knockout-text {
    font-size: 20px;
    letter-spacing: 2px;
    padding: 16px 20px;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .album-tile:hover,
  .work-tile:hover,
  .post-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .album-tile:active,
  .work-tile:active,
  .post-card:active,
  .gallery-item:active {
    transform: scale(0.98);
  }
  
  /* Keep overlays always visible on touch devices (no hover) */
  .album-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  
  .work-overlay {
    opacity: 1;
  }
  
  .nav-link,
  .social-link,
  .cta-button,
  .read-more-btn,
  .send-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================
   HOMEPAGE CAROUSEL
   ============================================ */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.carousel-scroll {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  contain: layout style;
}

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

.carousel-scroll.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: clamp(400px, 60vw, 800px);
  height: clamp(300px, 45vw, 600px);
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.4),
    0 16px 48px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  contain: layout paint;
}

/* LQIP: Low Quality Image Placeholder - simplified, no blur filter */
.carousel-lqip {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity 0.5s ease-out;
}

/* Hide LQIP when main image is loaded */
.carousel-slide:has(.carousel-img.is-loaded) .carousel-lqip {
  opacity: 0;
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Progressive loading: fade in when loaded */
.carousel-img {
  opacity: 0;
  transition: opacity 0.5s ease-out;
  position: relative;
  z-index: 2;
}

.carousel-img.is-loaded {
  opacity: 1;
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
  .carousel-lqip {
    animation: lqip-fade 0.8s ease-out 0.5s forwards;
  }
  @keyframes lqip-fade {
    to { opacity: 0; }
  }
  .carousel-img {
    animation: img-fade 0.5s ease-out 0.3s forwards;
  }
  @keyframes img-fade {
    to { opacity: 1; }
  }
}

.carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 60px;
  max-width: 150px;
  z-index: 10;
  pointer-events: none;
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: 0.3;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-hint span {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(10,10,10,0.6);
  padding: 8px 16px;
  border-radius: 20px;
}

.scroll-hint.hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .carousel-fade {
    width: 5%;
    min-width: 15px;
    max-width: 30px;
  }
}

/* ============================================
   GALLERY DISPLAY (Albums & Work)
   ============================================ */
.gallery-display {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout: Masonry */
.layout-masonry {
  column-count: 3;
  column-gap: 16px;
}

.layout-masonry .gallery-display-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
}

/* Layout: Grid */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Layout: Columns (2 per row) */
.layout-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Layout: Full width */
.layout-full {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.layout-full .gallery-display-item {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Gallery items */
.gallery-display-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
}

.gallery-display-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-display-item:hover img {
  transform: scale(1.02);
}

/* Aspect ratios */
.aspect-square .gallery-display-item { aspect-ratio: 1/1; }
.aspect-landscape .gallery-display-item { aspect-ratio: 4/3; }
.aspect-wide .gallery-display-item { aspect-ratio: 16/9; }
.aspect-portrait .gallery-display-item { aspect-ratio: 3/4; }
.aspect-tall .gallery-display-item { aspect-ratio: 9/16; }

/* Fit modes */
.fit-contain .gallery-display-item img {
  object-fit: contain;
  background: #0a0a0a;
}

/* Masonry doesn't use aspect ratio */
.layout-masonry.aspect-square .gallery-display-item,
.layout-masonry.aspect-landscape .gallery-display-item,
.layout-masonry.aspect-wide .gallery-display-item,
.layout-masonry.aspect-portrait .gallery-display-item,
.layout-masonry.aspect-tall .gallery-display-item {
  aspect-ratio: unset;
}

.layout-masonry .gallery-display-item img {
  position: relative;
  height: auto;
}

/* Gallery responsive */
@media (max-width: 900px) {
  .layout-masonry { column-count: 2; }
  .layout-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .layout-masonry { column-count: 1; }
  .layout-grid { grid-template-columns: 1fr; }
  .layout-columns { grid-template-columns: 1fr; }
}

/* ============================================
   PROJECT DETAILS (Work Posts)
   ============================================ */
.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-value {
  font-size: 15px;
  color: var(--text-primary);
}

.project-brief {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.project-brief p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-testimonial {
  max-width: 700px;
  margin: 64px auto;
  text-align: center;
  padding: 48px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.project-testimonial blockquote {
  margin: 0;
}

.project-testimonial p {
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.project-testimonial cite {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
}

@media (max-width: 768px) {
  .project-details {
    gap: 20px;
  }
  
  .project-detail {
    flex: 1 1 45%;
  }
  
  .project-testimonial {
    padding: 32px 24px;
  }
  
  .project-testimonial p {
    font-size: 18px;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-headline {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--text-primary);
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.contact-text {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.social-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.social-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.8;
  flex-shrink: 0;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-text {
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.send-button {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.send-button:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
}

@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px;
  }
}

/* ============================================
   PASSWORD PROTECTED POSTS
   ============================================ */
.post-password-form {
  max-width: 400px;
  margin: 100px auto;
  padding: 48px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-align: center;
}

.post-password-form p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.post-password-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-password-form input[type="password"] {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.post-password-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
}

.post-password-form input[type="submit"] {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.post-password-form input[type="submit"]:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
}

/* ============================================
   GALLERY PREV/NEXT NAVIGATION
   ============================================ */
.gallery-nav-footer {
  margin-top: 48px;
  padding-bottom: 120px;
}

.gallery-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}

.gallery-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
  max-width: 35%;
}

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

.gallery-nav-link.all {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.gallery-nav-link.all:hover {
  color: var(--text-primary);
}

.gallery-nav-link.next {
  text-align: right;
  justify-content: flex-end;
}

.nav-arrow {
  font-size: 16px;
  flex-shrink: 0;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .gallery-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .gallery-nav-link {
    max-width: 100%;
  }
  .gallery-nav-link.all {
    order: -1;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination,
nav.navigation {
  margin-top: 32px;
  padding-bottom: 80px;
}

.pagination .nav-links,
.navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers,
.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-main);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.navigation .page-numbers:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}

.pagination .page-numbers.current,
.navigation .page-numbers.current {
  color: var(--bg-deep);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

/* ============================================
   EXIF METADATA DISPLAY (in lightbox)
   ============================================ */
.exif-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}

.exif-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.exif-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  flex-shrink: 0;
}

.exif-sep {
  color: rgba(255,255,255,0.25);
  font-size: 10px;
}

@media (max-width: 600px) {
  .exif-info {
    font-size: 10px;
    gap: 4px 10px;
    padding: 8px 14px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .carousel-scroll {
    scroll-behavior: auto;
  }
  
  .gallery-display-item:hover img {
    transform: none;
  }
}
