:root {
  --blue-primary: #2f5d8c;
  --blue-soft: #6b8fb3;
  --gold-accent: #c9a24d;
  --bg-cream: #f8f6f2;
  --text-dark: #444444;
  --white: #ffffff;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
}

.page-hero {
  background: linear-gradient(rgba(47, 93, 140, 0.85), rgba(47, 93, 140, 0.85)),
    #2f5d8c;
  color: var(--white);
  padding: 4rem 3rem;

  text-align: center;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto;
  }
}

/* Actual Grid of Pictures */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 3rem;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4/3; /* ensures all images have the same height-to-width ratio */
  object-fit: cover; /* fills the frame without stretching */
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 4px 8px 8px hsl(0deg 0% 0% / 0.38);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive: single column for smaller screens */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .page-hero h1 {
    font-size: 1.5rem; /* down from 2.8rem */
    line-height: 1.2;
  }

  .page-hero {
    padding: 2rem 1rem;
  }

  .page-hero p {
    font-size: 1rem; /* down from 1.1rem */
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain; /* preserves aspect ratio */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  color: white;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}
