/* Global Resets & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f0f;
  color: #f3f3f3;
  line-height: 1.6;
}

/* Header Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand {
  text-decoration: none;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.site-header .brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: #888;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

.nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
  border: 1px solid transparent;
}

.nav a:hover, .nav a:focus-visible, .nav a.active {
  color: #fff;
  background: rgba(201, 164, 92, .17);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

.menu-toggle:focus-visible, .nav a:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}


/* Gallery Header Section */
.gallery-header {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-header .back-link {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.gallery-header .back-link:hover {
  color: #fff;
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, .12);
}

.gallery-header .back-link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.gallery-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4af37; /* Elegant gold accent */
  margin-bottom: 10px;
}

.gallery-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #fff;
}

.gallery-header p {
  color: #aaa;
  font-size: 1.05rem;
}

/* Modern Photo Grid Layout */
.gallery {
  padding: 20px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-grid {
  columns: 320px;
  column-gap: 20px;
}

.photo-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #1a1a1a;
  break-inside: avoid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-item:hover img {
  transform: scale(1.06);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Shown when JS sets aria-hidden="false" on open */
.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 15px;
  transition: color 0.2s;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #d4af37;
}

.lightbox-count {
  position: absolute;
  bottom: 25px;
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .lightbox-count {
    bottom: 20px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.85rem;
}

.footer .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .site-header { padding: 15px 20px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(17, 17, 17, .97);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav.open { display: flex; animation: nav-reveal .22s ease both; }
  .nav a { padding: 14px 16px; border-radius: 4px; }
  .gallery { padding: 10px 15px 60px; }
  .gallery-header h1 { font-size: 2rem; }
  .photo-grid { columns: 1; }
}

@keyframes nav-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav.open { animation: none; }
  .nav a { transition: none; }
}