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

/* 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: 5rem;
  height: 6rem;
  overflow: hidden;
}
.gallery-cat-btn.active .gallery-cat-icon {
  border: 1px solid var(--color-red);
}

.gallery-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 0.3rem;
}

/* GALLERY CONTENT */

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

.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;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

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

/* Zoom icon overlay on hover */
.gallery-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
  pointer-events: none;
}

.gallery-zoom-icon::after {
  content: "";
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white-rgba8)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23022d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
    center / 55% no-repeat;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
  background: var(--black-rgba2);
}

.gallery-item:hover .gallery-zoom-icon::after {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
  RESPONSIVE BREAKPOINTS
============================================================ */
@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-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

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

  .gallery-section-title {
    margin-bottom: 1rem;
  }
}

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

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