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

:root {
  --bg: #000;
  --surface: #111;
  --border: #222;
  --text: #f0f0f0;
  --muted: #888;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.site-nav__social {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.15s;
  text-decoration: none;
}

.site-nav__social:hover { color: var(--text); text-decoration: none; }

.site-nav__social svg {
  width: 18px;
  height: 18px;
}

.site-nav__link--active {
  color: var(--text) !important;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

/* Main */
.site-main { min-height: calc(100vh - 120px); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* About section */
.about-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.about-photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.about-bio {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-bio p { margin-bottom: 0.75rem; }
.about-bio a { color: var(--text); text-decoration: underline; }
.about-bio strong { color: var(--text); }

.social-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.social-links-standalone {
  display: flex;
  justify-content: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.social-link {
  display: flex;
  color: var(--muted);
  transition: color 0.15s;
  text-decoration: none;
}

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

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

.galleries-section {
  padding-top: 2rem;
}

@media (max-width: 600px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .about-photo {
    max-width: 180px;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* Tag filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.tag-filter {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tag-filter:hover { border-color: var(--muted); color: var(--text); }
.tag-filter.active { border-color: var(--text); color: var(--text); }

/* Section grid */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3/2;
  display: block;
}

.section-card:hover { text-decoration: none; }
.section-card:hover img { transform: scale(1.04); }

.section-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.section-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
}

.section-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.section-card__info h2 {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-card__info p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.section-date {
  display: inline-block;
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Gallery two-column layout */
.gallery-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding: 2rem;
  align-items: start;
}

.gallery-sidebar {
  position: sticky;
  top: 2rem;
}

.back-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-meta-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag-chip {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.tag-chip:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }

.gallery-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.gallery-description h1,
.gallery-description h2,
.gallery-description h3 {
  color: var(--text);
  font-weight: 400;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-description p { margin-bottom: 0.75rem; }
.gallery-description ul,
.gallery-description ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.gallery-description li { margin-bottom: 0.25rem; }
.gallery-description a { color: var(--text); text-decoration: underline; }
.gallery-description strong { color: var(--text); }

@media (max-width: 800px) {
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-sidebar {
    position: static;
  }
}

.photo-grid {
  /* Required styles */
  display: grid;
  overflow: hidden;
  /* Optional styles */
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  transition: opacity 0.3s ease;
}

@keyframes gridFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grid-item {
  aspect-ratio: var(--width) / var(--height);
  /* display: flex;
  align-items: center;
  justify-content: center; */
  font-size: 18px;
  font-weight: bold;
  /* animation: gridFadeUp 800ms cubic-bezier(.4, 0, .2, 1) both; */

  & img {
    width: 100%;
  }
}

.masonry {
  /* Required styles */
  display: grid;
  overflow: hidden;
  /* Optional styles */
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}

.frame {
  /* Required styles */
  aspect-ratio: var(--width) / var(--height);

  & img {
    width: 100%;
  }
}

.grid-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.grid-item a:hover img {
  opacity: 0.75;
  transform: scale(1.02);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.grid-item a:hover .photo-overlay {
  transform: translateY(0);
}

/* GLightbox overrides */
.glightbox-clean .gslide-inner-content {
  position: relative;
}

.glightbox-clean .gslide-description {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  pointer-events: none;
}

.glightbox-clean .gdesc-inner {
  background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important;
  padding: 3rem 1.5rem 1.25rem !important;
}

.glightbox-clean .gslide-desc {
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  font-family: var(--font);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lb-caption {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lb-exif {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .glightbox-clean .gdesc-inner {
    padding: 3rem 1rem 1rem !important;
  }

  .glightbox-clean .gslide-desc {
    font-size: 0.82rem !important;
    gap: 0;
    line-height: 1.2;
  }

  .lb-caption {
    font-size: 0.88rem;
    margin-bottom: 0.05rem;
  }

  .lb-exif {
    font-size: 0.75rem;
  }
}

/* Utilities */
.empty-state { padding: 3rem 2rem; color: var(--muted); text-align: center; }

.error-page {
  text-align: center;
  padding: 5rem 2rem;
}

.error-page h1 { font-size: 6rem; font-weight: 200; color: #333; }
.error-page p { color: var(--muted); margin: 1rem 0; }
