/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette (Warm Dark Champagne / Gold) */
  --bg-color: #0c0a08;
  --bg-color-alt: #14110e;
  --card-bg: rgba(24, 21, 18, 0.7);
  --card-border: rgba(212, 175, 55, 0.15);
  
  --primary-color: #d4af37; /* Metallic Gold */
  --primary-glow: rgba(212, 175, 55, 0.3);
  --primary-hover: #f3e5ab; /* Warm Cream */
  
  --text-color: #f7f5f0; /* Soft Ivory */
  --text-muted: #a69c8d; /* Warm Muted Gray */
  
  --accent-color: #e5c158;
  --danger-color: #b33939;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadow & Blur */
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
}

/* Light Theme overrides (Optional switch) */
body.light-theme {
  --bg-color: #faf8f5;
  --bg-color-alt: #f1ede6;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(184, 134, 11, 0.2);
  --primary-color: #a87c11;
  --primary-glow: rgba(168, 124, 17, 0.2);
  --primary-hover: #7b5807;
  --text-color: #2c251e;
  --text-muted: #7c7263;
  --box-shadow: 0 10px 30px rgba(184, 134, 11, 0.08);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

button, input {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==========================================================================
   HERO HEADER
   ========================================================================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(rgba(12, 10, 8, 0.4), rgba(12, 10, 8, 0.9)), url('header_mountain.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  padding: 2rem;
  z-index: 1;
}

body.light-theme .hero {
  background-image: linear-gradient(rgba(250, 248, 245, 0.4), rgba(250, 248, 245, 1)), url('header_mountain.jpg');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 20%, var(--bg-color) 90%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 1.2s ease-out;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, #4a3e2b, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  width: 250px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--primary-color), transparent);
}
.hero-divider::before {
  background: linear-gradient(to right, transparent, var(--primary-color));
}

.hero-divider-icon {
  color: var(--primary-color);
  margin: 0 10px;
  font-size: 0.8rem;
}

.hero-details {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-description {
  max-width: 680px;
  margin: 1.5rem auto 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.85;
  font-weight: 300;
  text-align: center;
}

/* ==========================================================================
   AMBIENT MUSIC PLAYER & CONTROLLER
   ========================================================================== */
.music-player-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.music-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.music-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.music-btn {
  background: var(--primary-color);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.music-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

.music-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.music-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.music-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Custom Visualizer Bars */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 25px;
}

.visualizer-bar {
  width: 3px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: height var(--transition-fast) ease;
}

.visualizer.playing .visualizer-bar {
  animation: bounce 0.8s ease infinite alternate;
}

.visualizer.playing .visualizer-bar:nth-child(1) { animation-delay: 0.1s; }
.visualizer.playing .visualizer-bar:nth-child(2) { animation-delay: 0.4s; }
.visualizer.playing .visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer.playing .visualizer-bar:nth-child(4) { animation-delay: 0.5s; }

@keyframes bounce {
  100% { height: 18px; }
}

/* ==========================================================================
   FLOATING BUTTONS (THEME TOGGLE)
   ========================================================================== */
.floating-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.floating-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  color: var(--text-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-fast);
}

.floating-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.floating-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.gallery-stats {
  background: var(--bg-color-alt);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 1rem;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  text-align: center;
}

.stat-item {
  animation: fadeInUp 0.8s ease-out;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

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

/* ==========================================================================
   CONTROLS (TABS & SEARCH)
   ========================================================================== */
.gallery-controls-wrapper {
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 10;
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: background-color var(--transition-normal);
}

body.light-theme .gallery-controls-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.gallery-controls {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

/* Category Tabs */
.tabs-container {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
}

.tabs-container::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.05);
}

/* Search Box */
.search-container {
  position: relative;
  min-width: 280px;
  flex-grow: 0.2;
}

.search-input {
  width: 100%;
  background: var(--bg-color-alt);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  padding: 0.6rem 2.5rem 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  background: var(--bg-color);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.clear-search-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
}

.clear-search-btn:hover {
  color: var(--primary-color);
}

.clear-search-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   PHOTO GRID (MASONRY-LIKE GRID)
   ========================================================================== */
.gallery-section {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  min-height: 400px;
}

/* Masonry Columns */
.gallery-grid {
  column-count: 4;
  column-gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
  }
  .gallery-section {
    padding: 0 1rem;
  }
  .gallery-controls {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* Photo Cards */
.photo-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
  transform: translate3d(0, 0, 0);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

@media (max-width: 768px) {
  .photo-card {
    margin-bottom: 1rem;
  }
}

.photo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
}

.photo-wrapper {
  position: relative;
  overflow: hidden;
  background: #14110e;
  aspect-ratio: auto;
}

body.light-theme .photo-wrapper {
  background: #f1ede6;
}

/* Set standard placeholder heights to minimize layout shift before loaded */
.photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 10, 8, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.zoom-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-normal);
  transform: scale(0.9);
}

.photo-card:hover .zoom-indicator {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.1);
}

.zoom-indicator svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Empty State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  width: 100%;
}

.no-results svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* ==========================================================================
   LIGHTBOX MODAL (PREMIUM FULLSCREEN EXTRAS)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 8, 7, 0.95);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: none;
  opacity: 0;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity var(--transition-normal) ease;
  user-select: none;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

/* Top bar controls */
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  color: #fff;
  z-index: 1010;
}

.lightbox-counter {
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-btn:hover {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.05);
}

.lightbox-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lightbox-btn.active {
  background: var(--primary-color);
  color: #000;
}

/* Main Display Area */
.lightbox-main {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-main {
    padding: 1rem;
  }
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--transition-normal) ease, transform var(--transition-normal) ease;
}

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

/* Chevron Navigation */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1005;
}

.nav-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

@media (max-width: 768px) {
  .nav-arrow {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.7);
  }
  .nav-prev { left: 10px; }
  .nav-next { right: 10px; }
  .nav-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Thumbnails Carousel at Bottom */
.lightbox-footer {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-url-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.thumb-carousel-container {
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

.thumb-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 0;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  width: 100%;
  justify-content: flex-start;
}

.thumb-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-thumb {
  width: 60px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  opacity: 0.4;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.carousel-thumb:hover {
  opacity: 0.8;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-color-alt);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.footer-text {
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--primary-hover);
}

.back-to-top svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ==========================================================================
   TOAST NOTIFICATION (For URL Copy Feedback)
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 18, 16, 0.95);
  border: 1px solid var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 2000;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Disable fixed backgrounds on mobile to prevent painting lag and scroll stutter */
  .hero {
    background-attachment: scroll;
    height: auto;
    min-height: auto;
    padding: 4rem 1.5rem 2.5rem 1.5rem;
  }
  
  /* Responsive typography */
  .hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: 2px;
  }
  .hero-description {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 1rem;
  }
  
  /* Music player spacing */
  .music-player-container {
    margin-top: 1.5rem;
  }
  .music-card {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  
  /* Stats adjustments */
  .gallery-stats {
    padding: 1.5rem 1rem;
  }
  .stats-container {
    gap: 2rem;
  }
  .stat-number {
    font-size: 2rem;
  }

  /* Gallery header controls sticky tweak */
  .gallery-controls-wrapper {
    padding: 0.75rem 0;
  }
  .gallery-controls {
    padding: 0 0.5rem;
    gap: 0.75rem;
  }
  .tabs-container {
    gap: 0.35rem;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .tab-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.68rem;
  }
  
  /* Lightbox UI tweaks */
  .lightbox-header {
    padding: 1rem;
  }
  .lightbox-btn {
    width: 36px;
    height: 36px;
  }
  .lightbox-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Hide navigation arrows and URL text on touch devices */
  .nav-arrow {
    display: none;
  }
  .lightbox-url-info {
    display: none;
  }
  
  .lightbox-main {
    padding: 0.5rem;
  }
  .lightbox-image-container {
    max-height: 70vh;
  }
  .lightbox-image {
    max-height: 70vh;
  }
  
  .lightbox-footer {
    padding: 1rem;
    gap: 0.5rem;
  }
  .lightbox-caption {
    font-size: 0.95rem;
  }
  
  /* Scale carousel thumbnails */
  .thumb-carousel-container {
    max-height: 50px;
  }
  .carousel-thumb {
    width: 48px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  /* Hide thumbnail strip on small screens to maximize space for vertical images */
  .thumb-carousel-container {
    display: none;
  }
  
  .lightbox-image-container {
    max-height: 75vh;
  }
  .lightbox-image {
    max-height: 75vh;
  }
}
