/* ==========================================================================
   GAZA DEMOCRATIC FRONT - Gallery page (masonry grid + full-screen viewer)
   ========================================================================== */
.gdf-gal__intro { max-width: 70ch; margin: 0 auto var(--s5); text-align: center; }
.gdf-gal__intro h2 { margin-top: 0; }

.gdf-gal__tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 28px; }
.gdf-gal__tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: #f1eee7; color: #1f1d1a; font: 700 .875rem/1 var(--gdf-font); cursor: pointer; transition: background-color .15s, color .15s;
}
.gdf-gal__tabs button span { font-weight: 500; opacity: .6; }
.gdf-gal__tabs button[aria-selected="true"] { background: #000; color: #fff; }
.gdf-gal__tabs button[aria-selected="true"] span { color: var(--gdf-gold); opacity: 1; }

/* Masonry with CSS columns: every photo keeps its own shape */
.gdf-gal__grid { columns: 4 260px; column-gap: 12px; }
.gdf-gal__grid.is-videos { columns: 3 300px; }
.gdf-gal__tile {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: #ece8de; cursor: zoom-in; break-inside: avoid;
}
.gdf-gal__tile img {
  display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.gdf-gal__tile.is-in img { opacity: 1; transform: none; }
.gdf-gal__tile:hover img { transform: scale(1.04); }
.gdf-gal__tile:focus-visible { outline: 3px solid var(--gdf-gold); outline-offset: 3px; }
.gdf-gal__grid.is-videos .gdf-gal__tile { cursor: pointer; }
.gdf-gal__play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s, background-color .2s;
}
.gdf-gal__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.gdf-gal__tile:hover .gdf-gal__play { transform: scale(1.08); background: var(--gdf-red); }
.gdf-gal__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 .75rem/1.2 var(--gdf-font); }

.gdf-gal__more {
  display: block; margin: 20px auto 0; padding: 13px 28px; border: 1.5px solid #000; border-radius: 999px; background: none;
  font: 700 .875rem var(--gdf-font); cursor: pointer;
}
.gdf-gal__more:hover { background: #000; color: #fff; }

/* Full-screen viewer */
.gdf-lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0, 0, 0, .94); }
.gdf-lb[hidden] { display: none; }
.gdf-lb__stage { margin: 0; max-width: min(92vw, 1600px); max-height: 86vh; display: grid; place-items: center; }
.gdf-lb__stage img, .gdf-lb__stage video { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 6px; animation: gdf-lb-in .25s ease; }
.gdf-lb__stage video { background: #000; }
@keyframes gdf-lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.gdf-lb__close, .gdf-lb__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .15s;
}
.gdf-lb__close:hover, .gdf-lb__nav:hover { background: rgba(255, 255, 255, .22); }
.gdf-lb__close svg, .gdf-lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gdf-lb__close { top: 16px; right: 16px; }
.gdf-lb__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gdf-lb__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.gdf-lb__count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .7); font: 500 .8125rem var(--gdf-font); }

@media (max-width: 700px) {
  .gdf-gal__grid { columns: 2; column-gap: 8px; }
  .gdf-gal__grid.is-videos { columns: 1; }
  .gdf-gal__tile { margin-bottom: 8px; border-radius: 8px; }
  .gdf-lb__nav { display: none; }
  .gdf-lb__stage { max-width: 100vw; }
  .gdf-lb__stage img { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gdf-gal__tile img, .gdf-lb__stage img, .gdf-lb__stage video { transition: none; animation: none; opacity: 1; transform: none; }
}
