﻿ /* ===============================
   GALLERY PAGE ONLY
   =============================== */

/* Page offset under fixed navbar */

/* ===============================
   GALLERY SECTION
   =============================== */

.gallery-section {
  padding: 60px;
}

.gallery-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 700;
}

/* ===============================
   LAYOUT
   =============================== */

.gallery-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* ===============================
   FILTER
   =============================== */

.gallery-filter label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-filter select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ===============================
   GRID
   =============================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===============================
   GALLERY ITEM
   =============================== */

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e0e0e0;
}

/* Image */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   HOVER EFFECT (SAFE)
   =============================== */

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 992px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 30px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
