/* ---------- GALLERY STYLES (aligned with home.css) ---------- */
/* This file is meant to load AFTER /assets/css/home.css */

/* ---------- Layout wrappers ---------- */
/* Keep everything on the same width system as highlights/reviews */
.gallery-wrap,
.gallery-grid,
.page-callout {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Gallery title bar wrapper */
.page-callout {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Full-width Gallery bar (same feel as homepage h2 bars) */
.page-callout--blue {
  display: block;
  width: 100%;
  background-color: #2C3E50;
  color: #ffffff;
  padding: 15px 20px;       /* you wanted a little extra vertical space */
  border-radius: 6px;
  font-size: 1.8rem;        /* same as homepage h2 */
  font-weight: normal;      /* same tone as homepage h2 */
  text-align: center;
  box-sizing: border-box;
  margin: 0;
}

/* ---------- Two-column gallery layout ---------- */
.gallery-grid {
  display: flex;
  gap: 20px;                 /* same spacing feel as homepage highlights */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 40px;
}

/* Each column */
.gallery-grid > * {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
}

/* Stack columns on smaller screens */
@media (max-width: 900px) {
  .gallery-grid > * {
    flex: 1 1 100%;
  }
}

/* ---------- Category blocks ---------- */
/* Add space between categories (breathing room like homepage sections) */
.category {
  margin-bottom: 40px;
}

/* Category title bars: match homepage h2 style exactly */
.category__title {
  margin: 0;
  background-color: #FF6600;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1.8rem;
  font-weight: normal;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

/* Photos area uses homepage highlight gray */
.category__photos {
  background-color: #ebe5e1;  /* same as .highlight-box on homepage */
  padding: 20px;
  margin-top: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* ---------- Photo thumbnails ---------- */
.photo {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

/* Match homepage photo rounding */
.photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;       /* same as .highlight-photo */
  object-fit: cover;
}

/* Subtle hover feedback (matches CTA hover style) */
.photo img:hover {
  opacity: 0.92;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: grid;
}

.lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__img {
  position: relative;
  z-index: 2;
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Lightbox controls using your dark header tone */
.lightbox__close,
.lightbox__nav {
  border-radius: 999px;
  border: none;
  background-color: rgba(44, 62, 80, 0.75); /* #2C3E50 family */
  color: #ffffff;
  cursor: pointer;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

/* Prev/Next buttons */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  font-size: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }

/* Hover feedback consistent with site */
.lightbox__close:hover,
.lightbox__nav:hover {
  opacity: 0.85;
}

/* Hide nav buttons on very small screens */
@media (max-width: 700px) {
  .lightbox__nav { display: none; }
}
