/* gallery.css */

/* ------------------------------------- */
/* 1. Page Header Overrides             */
/* ------------------------------------- */

/* Remove mountain background/overlay */
header.hero {
  background-color: #2C3E50;   /* dark slate background for header */
  min-height: auto !important;
}
header.hero::before {
  display: none !important;
}

/* ------------------------------------- */
/* 2. Global Resets & Base Styles       */
/* ------------------------------------- */

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #2C3E50;   /* dark page background */
  color: #fff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar is styled in style.css; we’re just ensuring it remains on top */
.navbar {
  position: relative;
  z-index: 100;
}

/* ------------------------------------- */
/* 3. Gallery Container (Masonry Layout) */
/* ------------------------------------- */

.gallery {
  column-count: 3;        /* or 4, or whatever fits */
  column-gap: 0.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background: none;       /* you can even drop the gallery bg */
}
/* Responsive column counts */
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

/* ------------------------------------- */
/* 4. Gallery Items (Figures)           */
/* ------------------------------------- */

.gallery figure {
  break-inside: avoid;         /* prevent splitting across columns */
  margin: 0 0 0.5rem;
  position: relative;          /* for caption positioning */
  overflow: hidden;
  border-radius: 4px;
  background: transparent;           /* card background */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* ------------------------------------- */
/* 5. Images                            */
/* ------------------------------------- */

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;      /* cover instead of contain */
}
.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ------------------------------------- */
/* 6. Captions (Hidden Until Hover)     */
/* ------------------------------------- */

.gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;

  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

/* Reveal caption on hover of its figure */
.gallery figure:hover figcaption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Subtitle styling inside caption */
.gallery .caption-sub {
  display: block;
  font-size: 0.8rem;
  color: #ddd;
}

/* ------------------------------------- */
/* 7. Footer                             */
/* ------------------------------------- */

footer {
  text-align: center;
  padding: 2rem 0;
  color: #aaa;
  font-size: 0.8rem;
}

