:root {
  --bg: #0d0e11;
  --card-bg: #14161b;
  --surface: #1b1e25;
  --text: #f0f2f5;
  --text-muted: #8b92a1;
  --accent: #d4a373;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1400px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(13, 14, 17, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.04em;
}
.logo span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 1.25rem; flex-wrap: wrap; }
nav li { position: relative; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.5rem 0.25rem;
  transition: var(--transition);
  display: inline-block;
}
nav a:hover, nav a.active { color: var(--text); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 210px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-height: 70vh;
  overflow-y: auto;
}
nav li:hover .dropdown-menu { display: block; }
.dropdown-menu li { display: block; width: 100%; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header .breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1rem;
  font-weight: 300;
}

.filter-bar {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.filter-btn.active {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 500;
}

.gallery-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.photo-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}
.img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface);
  overflow: hidden;
}
.img-wrapper.vertical { aspect-ratio: 4 / 5; }
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-card:hover img { transform: scale(1.03); }
.photo-meta {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.photo-meta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
}
.photo-gear {
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(212, 163, 115, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 11, 0.96);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
}
.lightbox-caption h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
}
.lightbox-caption p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}
.lightbox-close:hover { color: #fff; }

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