/* gallery.css - styles unique to this page. Shared nav, footer, reset and colours are in base.css. */

/* ============================================
   HERO (no buttons)
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fdfdfd;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-content .eyebrow {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: normal;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.05rem;
  font-weight: 100;
  line-height: 26px;
}

@media (max-width: 768px) {
  .hero {
    height: 48vh; min-height: 340px;
  }

  .hero-eyebrow {
    font-size: 0.75rem; margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: 1.6rem; margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.8rem; line-height: 20px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--brown-mid); color: #ffffff; border-color: var(--brown-mid);
}

.btn-primary:hover {
  background-color: var(--brown-hover); border-color: var(--brown-hover);
}

.btn-outline-light {
  background: transparent; color: #ffffff; border-color: #f7f7f7;
}

.btn-outline-light:hover {
  color: var(--brown); background: #f8fafc; border-color: #f8fafc; transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent; color: var(--brown); border-color: var(--brown);
}

.btn-outline-dark:hover {
  color: #ffffff; background: var(--brown); transform: translateY(-2px);
}

.cta-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 0 16px;
}

.section-intro h3 {
  color: var(--brown);
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--brown);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ============================================
   INTRODUCTION SPLIT SECTION
   ============================================ */

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.split-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 8px;
}

.split-content p {
  margin-bottom: 18px;
  text-align: justify;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 560px) {
  .split-section {
    padding: 24px 16px; gap: 24px;
  }
}

/* ============================================
   GALLERY FILTER BUTTONS
   ============================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 16px;
}

.filter-btn {
  background: #ffffff;
  border: 2px solid var(--cream-border);
  color: var(--brown);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--brown-mid);
}

.filter-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #ffffff;
}

/* ============================================
   MAIN GALLERY GRID
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item-body {
  padding: 14px 16px 16px;
}

.gallery-item-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.gallery-item-caption {
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.5;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-empty {
  text-align: center;
  color: var(--brown-mid);
  font-size: 0.95rem;
  padding: 30px 16px;
  display: none;
}

.gallery-empty.show {
  display: block;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 4, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption {
  color: #f4f1ea;
  font-size: 0.92rem;
  margin-top: 14px;
}

.lightbox-category {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 900px) {
  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-close {
    top: -40px; right: 6px;
  }
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: var(--brown);
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  margin: 10px 20px 40px;
  border-radius: 14px;
}

.cta-band h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.7;
  color: #f4f1ea;
}

@media (max-width: 768px) {
  .cta-band {
    padding: 36px 16px;
  }

  .cta-band h3 {
    font-size: 1.4rem;
  }
}
