/* ZihniGaleri — renkler --zg-vurgu ile temaya uyarlanır (varsayılan: tema ana rengi) */
html.zg-acik { overflow: hidden; }
.zg { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 4rem 1fr 4rem; grid-template-rows: auto 1fr auto;
      background: rgba(10, 10, 12, .94); color: #fff; font-family: inherit; -webkit-tap-highlight-color: transparent; animation: zg-belir .2s ease-out; }
.zg[hidden] { display: none; }
@keyframes zg-belir { from { opacity: 0; } to { opacity: 1; } }
.zg-ust { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.zg-sayac { font-size: .8rem; letter-spacing: .15em; opacity: .75; font-variant-numeric: tabular-nums; }
.zg-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; background: rgba(255,255,255,.08);
          color: #fff; cursor: pointer; border-radius: 0; transition: background .2s; }
.zg-btn:hover, .zg-btn:focus-visible { background: var(--zg-vurgu, var(--renk-1, #2563eb)); outline: none; }
.zg-btn svg { width: 1.4rem; height: 1.4rem; }
.zg-btn[hidden] { display: none; }
.zg-ok { align-self: center; justify-self: center; }
.zg-onceki { grid-column: 1; grid-row: 2; } .zg-sahne { grid-column: 2; grid-row: 2; } .zg-sonraki { grid-column: 3; grid-row: 2; }
.zg-sahne { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; }
.zg-resim { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.zg-sahne.zg-buyuk { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.zg-sahne.zg-buyuk .zg-resim { max-width: none; max-height: none; cursor: zoom-out; }
.zg-iframe, .zg-video { width: min(100%, 1280px); aspect-ratio: 16 / 9; max-height: 100%; border: 0; background: #000; }
.zg-belge { width: min(100%, 1100px); height: 100%; border: 0; background: #fff; }
.zg-araclar { display: inline-flex; gap: .4rem; }
.zg-yukleniyor::after { content: ""; position: absolute; width: 2.5rem; height: 2.5rem; border: 3px solid rgba(255,255,255,.2);
                        border-top-color: #fff; border-radius: 50%; animation: zg-don .8s linear infinite; }
@keyframes zg-don { to { transform: rotate(360deg); } }
.zg-hata { opacity: .7; }
.zg-alt { grid-column: 1 / -1; padding: .5rem 1rem 1rem; text-align: center; }
.zg-baslik { margin: 0 auto .75rem; max-width: 60rem; font-size: .9rem; line-height: 1.5; opacity: .9; }
.zg-baslik[hidden] { display: none; }
.zg-serit { display: flex; gap: .4rem; justify-content: safe center; overflow-x: auto; scrollbar-width: thin; padding-bottom: .25rem; }
.zg-serit[hidden] { display: none; }
.zg-serit button { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; padding: 0; border: 2px solid transparent; background: rgba(255,255,255,.08);
                   color: #fff; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.zg-serit button:hover, .zg-serit button:focus-visible { opacity: 1; outline: none; }
.zg-serit button.zg-aktif { opacity: 1; border-color: var(--zg-vurgu, var(--renk-1, #2563eb)); }
.zg-serit img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .zg { grid-template-columns: 0 1fr 0; }
  .zg-ok { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); }
  .zg-onceki { left: .5rem; } .zg-sonraki { right: .5rem; }
  .zg-serit button { width: 2.75rem; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .zg, .zg-yukleniyor::after { animation: none; } }
