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

body {
  background-color: #ffffff;
  font-family: 'Garamond', Times, serif;
}

.top-bar {
  height: 4px;
  background-color: #1a1a1a;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
}

.nav a {
  text-decoration: none;
  color: #909090;
  font-size: 16px;
  position: relative;    /* add this */
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #DE7356;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav a:hover::after {
  opacity: 1;
}
/* ==========================================================
   NAV HOVER EFFECT
   On hover, the link text darkens and grows very slightly,
   giving a subtle "lifting toward you" feel.
   ========================================================== */
.nav a {
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
  color: #131313;
  transform: scale(1.02);
}

/* ===== The 3-column grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.gallery-box {
  background-color: #d9d9d9;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-box:hover {
  opacity: 0.8;
}

/* ===== The lightbox popup ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 85%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 16px;
  margin-top: 16px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}
