/* ============ SALON GALERİSİ ============
   Fotoğraflar Wix Medya'da (static.wixstatic.com). Boyutlar URL'deki w_/h_ ile ayarlanır.
   Fotoğrafa tıklayınca büyük hali açılır (salon-galeri.js). */

/* Üstteki üç kutu (eski yer tutucuların yerine gerçek fotoğraflar) */
.sg-foto { font: inherit; color: inherit; padding: 0; cursor: zoom-in; border-color: transparent; background: #0a0f26; text-align: left; }
.sg-foto img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.sg-foto::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(5, 8, 22, 0) 55%, rgba(5, 8, 22, .72)); pointer-events: none; }
.sg-foto:hover img, .sg-foto:focus-visible img { transform: scale(1.045); }
.sg-etiket { position: absolute; left: 14px; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; color: var(--astrova-white); pointer-events: none; }
.sg-etiket::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--astrova-gold); box-shadow: 0 0 8px var(--astrova-gold); }

/* Alttaki geniş galeri */
.sg-alt { margin-top: clamp(48px, 7vw, 88px); }
.sg-ust { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sg-ust h3 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; }
.sg-ust p { margin: 0; color: var(--astrova-gray); font-size: 15px; }
.sg-izgara { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 14px; }
.sg-kare { position: relative; overflow: hidden; border-radius: 14px; border: 0; min-height: 0; }
.sg-kare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-genis { grid-column: span 2; }
.sg-uzun { grid-row: span 2; }

/* Büyütülmüş görünüm */
.sg-kutu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 5, 14, .94); color: var(--astrova-white); overscroll-behavior: contain; }
.sg-kutu::backdrop { background: rgba(3, 5, 14, .94); }
.sg-kutu[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: sg-ac .25s ease-out; }
.sg-sahne { position: relative; display: grid; place-items: center; min-height: 0; padding: clamp(56px, 6vw, 72px) clamp(12px, 7vw, 96px) 8px; touch-action: pan-y; }
.sg-sahne img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px #000; transition: opacity .25s; }
.sg-sahne img.sg-yukleniyor { opacity: .25; }
.sg-alt-bilgi { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 15px; text-align: center; }
.sg-alt-bilgi b { font-weight: 700; }
.sg-sayac { color: var(--astrova-gold); font-weight: 800; font-family: var(--font-head); font-size: 18px; letter-spacing: .04em; }
.sg-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(11, 17, 41, .7); color: var(--astrova-white); font: 400 26px/1 var(--font-body); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.sg-btn:hover { border-color: var(--astrova-gold); color: var(--astrova-gold); }
.sg-kapat { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; }
.sg-onceki, .sg-sonraki { top: 50%; translate: 0 -50%; }
.sg-onceki { left: clamp(8px, 2vw, 24px); }
.sg-sonraki { right: clamp(8px, 2vw, 24px); }
body.sg-kilit { overflow: hidden; }
@keyframes sg-ac { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .sg-izgara { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .sg-kare { border-radius: 12px; }
  .sg-etiket { left: 10px; right: 8px; bottom: 9px; font-size: 12px; }
  .sg-sahne img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .sg-onceki, .sg-sonraki { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); translate: none; width: 44px; height: 44px; }
  .sg-alt-bilgi { padding-inline: 64px; min-height: 64px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-foto img { transition: none; }
  .sg-foto:hover img, .sg-foto:focus-visible img { transform: none; }
  .sg-kutu[open] { animation: none; }
}
/* ============ GRUP DERSLERİ: tek stüdyo fotoğrafı + altında üç ders kartı ============
   Stüdyo aynı zamanda kadınlara özel bölüm. Fotoğrafa tıklayınca galerideki büyütme açılır. */
.gd { display: grid; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); box-shadow: 0 40px 80px -50px #000; }
.gd-foto { margin: 0; }
.gd-dugme { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; border: 0; border-radius: 0; }
.gd-dugme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.gd-dugme .sg-etiket { left: 22px; bottom: 18px; font-size: 14px; }
.gd-kartlar { gap: 0; }
.gd-kart { position: relative; padding: 30px 30px 32px; gap: 10px; }
.gd-kart + .gd-kart { border-left: 1px solid var(--line); }
.gd-kart::before { content: ""; position: absolute; top: 0; left: 30px; width: 44px; height: 2px; background: var(--astrova-gold); }
.gd-no { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--astrova-gold); }
.gd-baglanti { color: var(--astrova-gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gd-baglanti::after { content: " →"; }
.gd-baglanti:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .gd-dugme { aspect-ratio: 4 / 3; }
  .gd-kart { padding: 24px 22px 26px; }
  .gd-kart + .gd-kart { border-left: 0; border-top: 1px solid var(--line); }
  .gd-kart::before { left: 22px; }
}

/* ---- Galeri kısa (telefon ve bilgisayar): ilk sıra + "Tüm fotoğrafları gör" (kalanlar tam ekran büyütmede) ---- */
.sg-izgara .sg-uzun { grid-row: auto; }
.sg-izgara > .sg-kare:nth-child(n+4) { display: none; }
.sg-daha { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 14px; padding: 16px 20px; font: inherit; font-weight: 700; font-size: 16px; color: var(--astrova-white); background: rgba(255, 255, 255, .04); border: 1px solid rgba(229, 178, 36, .5); border-radius: 14px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.sg-daha-sayi { color: var(--astrova-gold); font-size: 14px; white-space: nowrap; }
.sg-daha-sayi::after { content: " →"; }
.sg-daha:hover { background: rgba(229, 178, 36, .1); border-color: var(--astrova-gold); }
.sg-daha:active { background: rgba(229, 178, 36, .14); }
@media (min-width: 701px) {
  .sg-izgara { grid-auto-rows: clamp(180px, 20vw, 280px); }
  .sg-daha { justify-content: center; gap: 16px; }
}

/* Kadınlara özel sayfadaki galeri: bütün kareler görünür (kısaltma yok) */
.sg-izgara.sg-hepsi > .sg-kare:nth-child(n+4) { display: block; }
