/* =========================================================
   GEÇİCİ: 3 kompakt bölüm düzeni (seçici ile denenir)
   1 yakin  = zaman çizgisi ortada kalır, metin ve fotoğraflar çizgiye yaslanır, fotoğraflar büyür
   2 yan    = zaman çizgisi altta; metin solda, büyük kolaj sağda, ikisi de dikeyde ortalı
   3 dergi  = ekran ikiye bölünür: bir yarı kenardan kenara fotoğraf, diğer yarı metin
   ========================================================= */

/* Kolaj genişlik/yükseklik oranı (--k): fotoğraf alanını ekrana sığdırmak için */
.ch.riyad{--k:.75}
.ch.istanbul{--k:1.56}
.ch.izmir{--k:2.27}
.ch.y2025{--k:2.2}
.ch.kosu{--k:1.39}

/* ---------- 1) YAKIN ---------- */
html[data-ah-layout="yakin"] .ch:not(.hero) .note{bottom:calc(var(--axis) + 3.5vh);inset-inline-start:11vw}
html[data-ah-layout="yakin"] .ch.flip .note{top:calc(var(--axis) + 3.5vh);bottom:auto;inset-inline-start:auto;inset-inline-end:11vw}
html[data-ah-layout="yakin"] .ch .note .h{font-size:clamp(44px,5.4vw,92px)}
html[data-ah-layout="yakin"] .ch .note p{font-size:clamp(16px,1.35vw,21px)}
html[data-ah-layout="yakin"] .ch.riyad .photos,
html[data-ah-layout="yakin"] .ch.izmir .photos,
html[data-ah-layout="yakin"] .ch.y2025 .photos{--H:min(43vh, calc(58vw / var(--k)));top:calc(var(--axis) + 3vh);inset-inline-end:auto;inset-inline-start:34vw}
html[data-ah-layout="yakin"] .ch.istanbul .photos,
html[data-ah-layout="yakin"] .ch.kosu .photos{--H:min(35vh, calc(52vw / var(--k)));bottom:calc(var(--axis) + 3vh);inset-inline-start:auto;inset-inline-end:34vw}
html[data-ah-layout="yakin"] .ch:not(.riyad):not(.izmir):not(.y2025):not(.istanbul):not(.kosu) .photos{top:calc(var(--axis) + 3vh)}
html[data-ah-layout="yakin"] .ch.flip:not(.istanbul):not(.kosu) .photos{top:auto;bottom:calc(var(--axis) + 3vh)}
html[data-ah-layout="yakin"] .drawing{display:none}

/* ---------- 2) YAN YANA ---------- */
html[data-ah-layout="yan"] .progress{top:auto;bottom:7vh;transform:none}
html[data-ah-layout="yan"] .ch:not(.hero){display:grid;grid-template-columns:minmax(0,30vw) auto;grid-template-rows:auto auto;
  align-content:center;justify-content:center;column-gap:5vw;row-gap:3vh;padding:8vh 6vw 16vh}
html[data-ah-layout="yan"] .ch.flip{grid-template-columns:auto minmax(0,30vw)}
html[data-ah-layout="yan"] .ch:not(.hero) .note,
html[data-ah-layout="yan"] .ch .reach{position:relative;inset:auto;width:auto;max-width:none}
html[data-ah-layout="yan"] .ch:not(.hero) .note{grid-column:1;grid-row:1 / 3;align-self:center}
html[data-ah-layout="yan"] .ch.now .note{grid-row:1;align-self:end}
html[data-ah-layout="yan"] .ch.now .reach{grid-column:1;grid-row:2;align-self:start}
html[data-ah-layout="yan"] .ch.flip .note{grid-column:2}
html[data-ah-layout="yan"] .ch:not(.hero) .photos{position:relative;inset:auto;grid-column:2;grid-row:1 / 3;align-self:center;
  --H:min(54vh, calc(54vw / var(--k, 1)));height:var(--H)}
html[data-ah-layout="yan"] .ch.flip .photos{grid-column:1}
html[data-ah-layout="yan"] .ch:not(.riyad):not(.izmir):not(.y2025):not(.istanbul):not(.kosu) .photos{width:46vw;height:50vh}
html[data-ah-layout="yan"] .ch .note .h{font-size:clamp(42px,4.6vw,80px)}
html[data-ah-layout="yan"] .drawing{width:clamp(80px,7vw,120px);bottom:16vh}

/* ---------- 3) DERGİ ---------- */
html[data-ah-layout="dergi"] .progress{top:auto;bottom:0;transform:none;left:0;right:0;height:64px;padding:0 6vw;background:rgba(243,241,236,.94);border-top:1px solid rgba(20,20,20,.12)}
html[data-ah-layout="dergi"] .progress .line{left:6vw;right:6vw;top:40px}
html[data-ah-layout="dergi"] .progress ol{left:6vw;right:6vw;top:40px}
html[data-ah-layout="dergi"] .ch:not(.hero){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto 1fr;padding:0}
html[data-ah-layout="dergi"] .ch:not(.hero) .note,
html[data-ah-layout="dergi"] .ch .reach{position:relative;inset:auto;width:auto;max-width:none;padding:0 6vw}
html[data-ah-layout="dergi"] .ch:not(.hero) .note{grid-column:2;grid-row:2;align-self:center}
html[data-ah-layout="dergi"] .ch.now .note{grid-row:1 / 3;align-self:end}
html[data-ah-layout="dergi"] .ch.now .reach{grid-column:2;grid-row:3;align-self:start;margin-top:3vh}
html[data-ah-layout="dergi"] .ch.flip .note{grid-column:1}
/* büyük bölüm numarası */
html[data-ah-layout="dergi"] .ch .note .stamp{display:block;font-size:13px;margin-bottom:2vh}
html[data-ah-layout="dergi"] .ch .note .h{font-size:clamp(52px,6vw,110px)}
/* fotoğraf yarısı: ilk fotoğraf kenardan kenara, diğerleri köşede küçük baskılar */
html[data-ah-layout="dergi"] .ch:not(.hero) .photos{position:relative;inset:auto;grid-column:1;grid-row:1 / 4;width:auto;height:100vh;display:block;--H:30vh;translate:none!important}
html[data-ah-layout="dergi"] .ch.flip .photos{grid-column:2}
html[data-ah-layout="dergi"] .ch .photos .print.p1{position:absolute;inset:0;height:auto;width:auto;aspect-ratio:auto;margin:0;--r:0deg;box-shadow:none;z-index:1}
html[data-ah-layout="dergi"] .ch .photos .print.p1 img{object-fit:cover;background:none}
html[data-ah-layout="dergi"] .ch .photos .print.p2,
html[data-ah-layout="dergi"] .ch .photos .print.p3{position:absolute;inset:auto;margin:0;width:auto;height:24vh;z-index:3;box-shadow:0 16px 36px rgba(0,0,0,.35);border:6px solid #f3f1ec}
html[data-ah-layout="dergi"] .ch .photos .print.p2{inset-inline-end:4vw;bottom:13vh;--r:3deg}
html[data-ah-layout="dergi"] .ch .photos .print.p3{inset-inline-end:20vw;bottom:9vh;--r:-2deg}
html[data-ah-layout="dergi"] .ch.izmir .photos .print.p1 img{object-position:50% 30%}
html[data-ah-layout="dergi"] .ch:not(.riyad):not(.izmir):not(.y2025):not(.istanbul):not(.kosu) .photos .print.p2{aspect-ratio:4/3}
html[data-ah-layout="dergi"] .drawing,html[data-ah-layout="dergi"] .bgphoto{display:none}

/* ---------- Telefon: düzenler tek sütuna iner ---------- */
@media (max-width:760px){
  html[data-ah-layout="yan"] .ch:not(.hero),html[data-ah-layout="dergi"] .ch:not(.hero){grid-template-columns:1fr!important;grid-template-rows:auto auto!important;padding:9vh 6vw 14vh;align-content:center;row-gap:3vh}
  html[data-ah-layout="yan"] .ch:not(.hero) > *,html[data-ah-layout="dergi"] .ch:not(.hero) > *{grid-column:1!important}
  html[data-ah-layout="dergi"] .ch:not(.hero) .photos{height:38vh;grid-row:1!important}
  html[data-ah-layout="dergi"] .ch:not(.hero) .note{grid-row:2!important;padding:0}
}

/* ---------- Geçici düzen seçici ---------- */
.layout-picker{position:fixed;left:50%;top:62px;transform:translateX(-50%);z-index:96;display:flex;gap:4px;align-items:center;
  background:rgba(255,255,255,.94);color:#141414;border:1px solid rgba(0,0,0,.2);padding:6px 8px;font-family:'DM Mono',monospace;font-size:11px;letter-spacing:0;white-space:nowrap}
.layout-picker span{opacity:.6;margin-inline-end:4px}
.layout-picker button{background:none;border:1px solid transparent;color:#141414;font:inherit;padding:4px 8px;cursor:pointer}
.layout-picker button.on{border-color:#141414}
@media (max-width:760px){.layout-picker{top:auto;bottom:8px;left:8px;right:8px;transform:none;flex-wrap:wrap;justify-content:center}}

/* Şimdi: fotoğraf yok, metin ortada */
html[data-ah-layout="yan"] .ch.now{grid-template-columns:minmax(0,min(46vw,720px))!important;justify-content:center;text-align:center}
html[data-ah-layout="yan"] .ch.now .note,html[data-ah-layout="yan"] .ch.now .reach{grid-column:1!important;justify-self:center}
html[data-ah-layout="yan"] .ch.now .note p{margin-inline:auto}
html[data-ah-layout="yan"] .ch.now .stamp::before{display:none}
html[data-ah-layout="yan"] .ch.now .contact li{display:flex;justify-content:center;gap:14px}
html[data-ah-layout="yan"] .ch.now .contact span{width:auto}
html[data-ah-layout="yan"] .ch.now .contact a{border-bottom:1px solid currentColor}

/* ===== Telefon: Yan yana düzeni → üstte fotoğraflar, altta metin ===== */
@media (max-width:760px){
  html[data-ah-layout="yan"] .ch:not(.hero){display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;gap:3vh;padding:10vh 6vw 15vh}
  html[data-ah-layout="yan"] .ch:not(.hero) .photos{order:1;position:relative!important;inset:auto!important;align-self:center;
    --H:min(30vh, calc(84vw / var(--k, 1)))!important;height:var(--H)!important;width:auto!important;translate:none!important}
  html[data-ah-layout="yan"] .ch:not(.hero) .note{order:2;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;translate:none!important}
  html[data-ah-layout="yan"] .ch.now .reach{order:3;position:relative!important;inset:auto!important;width:100%!important}
  html[data-ah-layout="yan"] .ch.now{align-items:center!important}
  html[data-ah-layout="yan"] .ch .note .h{font-size:34px}
  html[data-ah-layout="yan"] .ch .note p{font-size:13.5px;line-height:1.5}
  html[data-ah-layout="yan"] .drawing{display:none}
  html[data-ah-layout="yan"] .ch.izmir .laurels img{height:44px}
  html[data-ah-layout="yan"] .stat{font-size:26px}
  html[data-ah-layout="yan"] .progress{bottom:4vh}
}
