/* ============================================================
   GALLERY.CSS – Gallery page styles
   ============================================================ */


/* ── GALLERY INTRO ─────────────────────────────────────────── */
.gallery-intro {
  padding: 6rem 0 3rem;
}

.gallery-intro-title {
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 4.6rem;
  color: var(--color-black);
  margin: 0 0 1.2rem;
}

.gallery-intro-text {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.4rem;
  color: var(--color-black);
  max-width: 100%;
}


/* ── CATEGORY NAV ──────────────────────────────────────────── */
.gallery-cat-nav {
  border-bottom: 0.1rem solid var(--black-rgba5);
  padding-top: 3rem;
}

.gallery-cat-nav .container {
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-cat-nav .container::-webkit-scrollbar {
  display: none;
}

.gallery-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  flex: 1 0 auto;
  padding: 0 1.6rem 1rem;
  background: none;
  border: none;
  border-bottom: 0.2rem solid transparent;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-black);
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: -0.1rem; 
  position: relative;
}

.gallery-cat-btn:hover {
  color: var(--color-red);
}

.gallery-cat-btn.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* Category icon thumbnail */
.gallery-cat-icon {
  width: 4.8rem;
  height: 6rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-cream);
}

.gallery-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-cat-btn:hover .gallery-cat-icon img {
  transform: scale(1.08);
}


/* ── GALLERY CONTENT ───────────────────────────────────────── */
.gallery-content {
  padding: 3rem 0 6rem;
}

/* Individual category section */
.gallery-section {
  padding-top: 3rem;
}

.gallery-section.hidden {
  display: none;
}

/* Section heading with tan underline */
.gallery-section-title {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--color-black);
  margin: 0 0 2.4rem;

}

/* 4-column image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

/* Each gallery item */
.gallery-item {
  display: block;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}


/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .gallery-cat-btn {
    padding: 0 1.2rem 1rem;
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .gallery-cat-btn {
    font-size: 1.4rem;
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-intro {
    padding: 4rem 0 2rem;
  }

  .gallery-intro-title {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

  .gallery-cat-btn {
    font-size: 1.3rem;
    padding: 0 0.8rem 1rem;
  }

  .gallery-cat-icon {
    width: 4rem;
    height: 5rem;
  }

  .gallery-content {
    padding: 2rem 0 4rem;
  }
}

@media (max-width: 480px) {
  .gallery-intro-title {
    font-size: 2.4rem;
    line-height: 3.2rem;
  }

  .gallery-intro-text {
    font-size: 1.5rem;
    line-height: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-item img {
    height: 14rem;
  }

  .gallery-cat-btn {
    font-size: 1.2rem;
    padding: 0 0.6rem 0.8rem;
  }

  .gallery-cat-icon {
    width: 3.6rem;
    height: 4.5rem;
  }
}
