/* ---------- Theme (inherits from home.css) ---------- */
:root{
  --maroon: #8c1f2f;
  --gold:   #f2c14e;
  --ink:    #151515;
  --white:  #ffffff;
  --page-max: 1100px;
}

/* ---------- Hero intro band ---------- */
.memories-hero {
  background: linear-gradient(
    to right,
    var(--maroon),
    var(--maroon)
  );
  color: #fff;
  padding: clamp(28px, 6vw, 56px) 0;
  margin-bottom: clamp(16px, 3vw, 28px);
  border-top: 6px solid var(--gold);
  border-bottom: 6px solid var(--gold);
  text-align: center;
}

.memories-hero h2{
  font-family: Anton, Impact, Oswald, sans-serif;
  letter-spacing: 1px;
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 8px;
}

.memories-hero p{
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 820px;
  line-height: 1.6;
}

/* ---------- Gallery Grid ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(8px, 1.8vw, 16px);
  margin-bottom: clamp(28px, 5vw, 60px);
}

/* Each item is a link (opens full image in new tab).
   You can swap this to a lightbox later if you like. */
.gallery .item{
  position: relative;
  display: block;
  border: 3px solid var(--gold);
  background: #000;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery .item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* Make every image fill its card cleanly */
.gallery img{
  width: 100%;
  height: 100%;
  /* Choose ONE of these approaches: */

  /* A) Uniform cards (same aspect for perfect rows): */
  aspect-ratio: 4 / 3;        /* adjust to 1/1 for squares */
  object-fit: cover;
  object-position: center;

  /* If you prefer natural image heights (masonry feel),
     comment out the 3 lines above and see the note below. */
}
/* Center the button beneath the gallery */
.gallery-cta{
  display: grid;
  place-items: center;
  margin-top: 16px;            /* space above button */
  margin-bottom: 24px;         /* little breathing room below */
}

/* Button base (matches your maroon/gold/ink palette) */
.btn{
  display: inline-block;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 0px;
  border: 3px solid var(--ink, #151515);
  transition: transform .12s ease, filter .2s ease;
}

/* Gold variant for strong CTA */
.btn-gold{
  background: var(--gold, #f2c14e);
  border-color: var(--gold, #f2c14e);
  color: var(--ink, #151515);
}
.btn-gold:hover{ transform: translateY(-1px); filter: brightness(.95); }
.btn-gold:focus-visible{ outline: 3px solid rgba(242,193,78,.55); outline-offset: 2px; }

/* (Optional) make it full-width on very small phones */
@media (max-width: 420px){
  .gallery-cta .btn{ width: 100%; text-align: center; }
}


/* Caption-on-hover option (disabled by default) */
/*
.gallery .item::after{
  content: attr(aria-label);
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color:#fff; padding: 10px 12px; font-size: 14px;
  opacity: 0; transition: opacity .2s ease;
}
.gallery .item:hover::after{ opacity: 1; }
*/

/* Footer */
.site-footer{
  padding-block: 24px 40px;
  text-align: center;
  color: #555;
  font-size: 14px;
  border-top: 1px solid #eee;
}

/* ---------- Small screens ---------- */
@media (max-width: 560px){
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
