/* gallery-fix v2 */

/* Genel: taşma olmasın, oran sabit kalsın */
.img-wrap, .thumb, .program-hero, .news-hero, .gallery a, .gallery img { display:block; width:100%; }
.program-hero, .news-hero, .thumb, .gallery .thumb, .gallery img { aspect-ratio: 16/9; }
.gallery img, .program-hero img, .news-hero img { width:100%; height:100%; object-fit: cover; }

/* Görsel yoksa placeholder (mobil taşmayı bitirir) */
.no-image-box{
  background:#f3f4f6; color:#6b7280;
  display:flex; align-items:center; justify-content:center;
  border:1px solid #e5e7eb; border-radius:8px;
  aspect-ratio:16/9; font-size:12px;
}

/* Lightbox (en üstte, gövde kilit) */
#gfix-lightbox{
  position:fixed; inset:0; z-index:2147483647;
  opacity:0; pointer-events:none; transition:opacity .18s ease;
}
#gfix-lightbox.open{ opacity:1; pointer-events:auto; }
#gfix-lightbox .gfix-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.85); }
#gfix-lightbox .gfix-viewport{ position:absolute; inset:6% 3%; display:flex; align-items:center; justify-content:center; }
#gfix-lightbox img{
  max-width:100%; max-height:100%; display:block;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  border-radius:8px; background:#111;
}
html.gfix-locked, body.gfix-locked{ overflow:hidden !important; touch-action:none; }

/* Program İndirme alanı – mobil taşma fix */
.download, .download-box, .download-area, .dl-list, .dl-table{ max-width:100%; overflow:hidden; }
.dl-table td, .dl-table th, .download a, .download .btn, .download .button{
  word-break:break-word; overflow-wrap:anywhere; white-space:normal;
}
.download .btn, .download .button, .download a{
  display:inline-block; max-width:100%; box-sizing:border-box;
}

/* Ufak yatay taşmalara karşı */
html{ overflow-x:hidden; }
