:root {
  --burgundy:  #8C5252;
  --mauve:     #A985A9;
  --footer-bg: #F5EBF5;
  --page-bg:   #FAFAFA;
  --text-dark: #1a1a1a;
  --text-mid:  #555;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --ease:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { background: var(--page-bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }

.g-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page-bg);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.g-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g-logo img { height: 50px; width: auto; }

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background var(--ease), color var(--ease);
}
.back-btn:hover { background: var(--burgundy); color: #fff; }
.back-btn svg   { flex-shrink: 0; }

.g-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('assets/heroImage.jpeg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.g-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,5,5,0.58);
}
.g-hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 28px;
}
.g-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.g-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.g-hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

.cat-nav {
  position: sticky;
  top: 70px;         
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-link {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 14px 18px;
  border-bottom: 2.5px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.cat-nav-link:hover,
.cat-nav-link.active { color: var(--burgundy); border-bottom-color: var(--burgundy); }

.g-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 60px;
}

.cat-section {
  padding: 64px 0 20px;
  scroll-margin-top: 130px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.cat-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--burgundy);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-rule {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, rgba(140,82,82,0.35), transparent);
  border-radius: 2px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}

.photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.11);
  transition: transform var(--ease), box-shadow var(--ease);
}
.photo-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.06); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(140,82,82,0.82) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo-card:hover .photo-overlay { opacity: 1; }

.photo-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}

.photo-card--tall  { grid-row: span 2; }

.photo-card--wide  { grid-column: span 2; }

.g-cta {
  background: var(--mauve);
  padding: 72px 28px;
  text-align: center;
}
.g-cta-inner { max-width: 600px; margin: 0 auto; }
.g-cta-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}
.g-cta-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.g-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--burgundy);
  border-radius: 999px;
  padding: 14px 38px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity var(--ease), transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}
.g-cta-btn:hover  { opacity: 0.9; }
.g-cta-btn:active { transform: scale(0.97); }

.g-footer {
  background: var(--footer-bg);
  padding: 32px 28px;
  border-top: 1px solid #e0d0e0;
}
.g-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.g-footer-logo { height: 40px; width: auto; }
.g-footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: #aaa;
}
.g-footer-back {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--burgundy);
  transition: opacity var(--ease);
}
.g-footer-back:hover { opacity: 0.75; }

#lightbox {
  flex-direction: row;
  gap: 16px;
  padding: 20px;
}
.lb-img-wrap {
  position: relative;
  max-width: 85vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#lb-img {
  max-width: 85vw;
  max-height: 82vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lb-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.lb-btn {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease);
  align-self: center;
}
.lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  font-size: 28px;
  width: 44px;
  height: 44px;
}

@media (max-width: 860px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .photo-card--wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .g-main { padding: 0 16px 48px; }
  .cat-section { scroll-margin-top: 110px; }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .photo-card--tall { grid-row: span 2; }
  .photo-card--wide { grid-column: span 2; }
  .g-footer-inner { flex-direction: column; text-align: center; }
  .lb-btn.lb-prev,
  .lb-btn.lb-next { display: none; }
}
