/* MockingbirdPictures — Public Styles */

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

:root {
  --bg: #111;
  --text: #fff;
  --text-muted: rgba(255,255,255,0.55);
  --tab-active: #fff;
  --tab-inactive: rgba(255,255,255,0.45);
  --accent: #c8a96e;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Homepage — fullscreen hero slideshow ─────────────────────── */

.hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Two crossfade layers stacked on top of each other */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.slide.visible { opacity: 1; }

/* Subtle gradient vignette so white nav text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 25%),
    linear-gradient(to top,    rgba(0,0,0,0.20) 0%, transparent 20%);
  pointer-events: none;
  z-index: 1;
}

/* ── Site nav (homepage) ──────────────────────────────────────── */

.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  z-index: 10;
}

.site-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-nav-links a:hover { opacity: 1; }

.site-nav-brand {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

/* Slideshow dots / progress indicator */
.slide-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Loading state */
.hero-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hero-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* No slideshow configured */
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  letter-spacing: 0.06em;
  z-index: 5;
}

/* ── Gallery page ─────────────────────────────────────────────── */

.gallery-page {
  background: var(--bg);
  min-height: 100vh;
}

/* Gallery nav (similar to homepage but on dark bg, no overlay needed) */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gallery-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.gallery-nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

.gallery-nav-links a:hover { color: #fff; }

.gallery-nav-brand {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* ── Category filter tabs ─────────────────────────────────────── */

.filter-section {
  padding: 1.5rem 2.5rem 0;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filter-tab {
  background: none;
  border: none;
  color: var(--tab-inactive);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tab:hover { color: rgba(255,255,255,0.8); }

.filter-tab.active {
  color: var(--tab-active);
  border-bottom-color: var(--tab-active);
}

.category-description {
  padding: 0.75rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  min-height: 2rem;
}

/* ── Masonry grid ─────────────────────────────────────────────── */

.gallery-grid-wrap {
  padding: 1.5rem 2.5rem 4rem;
}

.gallery-grid {
  columns: 3;
  column-gap: 8px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  background: #1e1e1e;
}

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

/* Hover overlay with description */
.gallery-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* Empty states */
.gallery-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Loading skeleton */
.gallery-skeleton {
  columns: 3;
  column-gap: 8px;
}

.skeleton-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 3px;
  background: #1e1e1e;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── GLightbox overrides ───────────────────────────────────────── */

.glightbox-clean .gdesc-inner {
  background: rgba(0,0,0,0.85);
  padding: 1rem 1.25rem;
}

.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gdesc-inner .gslide-title {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 960px) {
  .gallery-grid,
  .gallery-skeleton { columns: 2; }
}

@media (max-width: 640px) {
  .site-nav,
  .gallery-nav { padding: 1.25rem 1.25rem; }

  .gallery-grid-wrap { padding: 1rem 1.25rem 3rem; }
  .filter-section { padding: 1rem 1.25rem 0; }

  .gallery-grid,
  .gallery-skeleton { columns: 1; }

  .site-nav-links { gap: 1.25rem; }
}

@media (max-width: 420px) {
  .site-nav-links a,
  .gallery-nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .site-nav-brand,
  .gallery-nav-brand { font-size: 11px; }
}
