/* =============================================================================
   GALLERY.CSS — MadeByKoch Theme
   Gallery Filter & Grid Styles
   ============================================================================= */

/* =============================================================================
   GALLERY FILTER BUTTONS
   ============================================================================= */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.gfilter {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6A6A6A;
  background: #161616;
  border: 1px solid #2A2A2A;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}

.gfilter:hover {
  background: #D42B2B;
  color: #0C0C0C;
  border-color: #D42B2B;
}

.gfilter.active,
.gfilter[aria-selected="true"] {
  background: #D42B2B;
  color: #0C0C0C;
  border-color: #D42B2B;
}

/* =============================================================================
   GALLERY GRID
   ============================================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2A2A2A;
}

/* =============================================================================
   GALLERY ITEM
   ============================================================================= */

.gitem {
  position: relative;
  background: #161616;
  overflow: hidden;
  cursor: pointer;
}

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

.gitem:hover img {
  transform: scale(1.04);
}

/* Hidden items when filtered */
.gitem[hidden],
.gitem.filtered-out {
  display: none;
}

/* =============================================================================
   GALLERY OVERLAY
   ============================================================================= */

.goverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(12, 12, 12, 0.92) 100%
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  transition: opacity 0.3s ease;
}

.gitem:hover .goverlay {
  opacity: 1;
}

/* =============================================================================
   GALLERY OVERLAY TEXT
   ============================================================================= */

.gclient {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF5252;
  margin-bottom: 4px;
}

.gtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #EDEAE4;
  line-height: 1.3;
  margin-bottom: 8px;
}

.gtag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A9A9A;
}

/* =============================================================================
   RESPONSIVE — 768px
   ============================================================================= */

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

/* =============================================================================
   RESPONSIVE — 480px
   ============================================================================= */

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

  .gallery-filters {
    gap: 6px;
  }

  .gfilter {
    font-size: 11px;
    padding: 8px 14px;
  }
}
