/* =====================================================================
   GALLERY – filter buttons + photo grid
   File: css/sections/gallery.css
   .fb = filter buttons, .gg = photo grid, .gi = ek photo (hover par text).
   ===================================================================== */

/* ---------------------------------------------------------------------
   MAIN STYLE (desktop)
   --------------------------------------------------------------------- */
.fb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
}
.fb button {
  width: 200px;
  height: 80px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: .4s;
  color: #000;
}
.fb button:hover,
.fb .on {
  border-color: var(--r);
  color: var(--r);
}
.gg {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.gi {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px #0002;
}
.gi img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform .7s;
}
.gi:hover img {
  transform: scale(1.1);
}
.gi .o {
  position: absolute;
  inset: 0;
  background: #000b;
  opacity: 0;
  transition: .5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.gi:hover .o {
  opacity: 1;
}
.gi h3 {
  color: #fff;
  font-size: 1.25rem;
}
.gi p {
  opacity: .8;
}
.gi.hide {
  display: none;
}

/* ---------------------------------------------------------------------
   RESPONSIVE – Tablet (max 1023px) aur Mobile (max 767px)
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .gg { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .fb button { width: 170px; height: 64px; }
}
@media (max-width: 767px) {
  .gg { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gi img { height: 160px; }
  .fb { gap: 10px; padding: 24px 12px; }
  .fb button { width: calc(50% - 5px); height: 52px; font-size: .9rem; }
  .gi .o h3 { font-size: 1rem; }
}
@media (max-width: 479px) {
  .gg { grid-template-columns: 1fr; }
  .gi img { height: 220px; }
}
