/* Use the wide frame for the subject and the answer board instead of shrinking a phone column. */
@media (min-width: 900px), (min-width:640px) and (orientation:landscape) {
 .k-sahne:has(.hv-ust), .k-sahne:has(.zt-peron), .k-sahne:has(.bb-ust),
 .k-sahne:has(.bv-yer), .k-sahne:has(.pa-ulke), .k-sahne:has(.mh-hikaye) {
  max-width:1440px; display:grid; grid-template-columns:minmax(280px, .8fr) minmax(0, 1.5fr);
  gap:16px 24px; align-items:center; padding-bottom:16px;
 }
 .hv-ust, .zt-peron, .bb-ust, .pa-ulke { grid-column:1; grid-row:1 / 4; flex-direction:column; margin:0; text-align:center; }
 .hv-hayvan, .zt-icat { width:min(100%, 360px); }
 body.k-yatay .hv-hayvan img, .zt-icat img { width:100%; height:auto; aspect-ratio:4 / 3; object-fit:contain; }
 .hv-ipucu { max-width:360px; }
 .hv-dunya, .zt-ray-kutu, .zt-cizgi, .bb-tuval-kutu, .bb-palet,
 .bv-bavul, .bv-esyalar, .pa-soru-kart, .pa-pasaport, .mh-soru, .mh-harita-kutu { grid-column:2; min-width:0; }
 body.k-yatay .hv-kita { height:clamp(118px, 27dvh, 230px); }
 body.k-yatay .hv-sira-guney .hv-kita { height:clamp(118px, 23dvh, 190px); }
 .bb-ornek { width:100%; }
 .bb-ornek svg { width:100%; height:auto; aspect-ratio:3 / 2; }
 .bb-tuval { max-height:55dvh; }
 .bv-yer { grid-column:1; grid-row:1 / 3; height:100%; min-height:300px; margin:0; }
 .pa-bayrak { width:min(100%, 300px); height:auto; aspect-ratio:3 / 2; object-fit:contain; }
 .pa-mini { max-width:100%; }
 .mh-hikaye { grid-column:1; grid-row:1 / 3; grid-template-columns:1fr; margin:0; }
 .mh-foto { width:100%; }
 .mh-foto img { width:100%; max-height:30dvh; object-fit:contain; }
 .mh-harita-kutu { margin:0; }
}

@media (max-width:639px), (max-width:899px) and (orientation:portrait) {
 .k-sahne { padding-bottom:12px; }
 .k-rehber { bottom:4px; }
 .k-rehber img { width:50px; height:56px; }
 .k-balon { margin-bottom:8px; max-width:calc(100vw - 76px); font-size:.85rem; }
 .hv-hayvan { width:150px; }
 .hv-hayvan img { width:100%; height:110px; object-fit:contain; }
 .hv-kita { height:clamp(100px, 22dvh, 180px); }
 .hv-sira-guney .hv-kita { height:clamp(100px, 18dvh, 150px); }
}

.k-surukleniyor {
 display:grid; place-items:center; padding:4px; border:3px solid #fff; border-radius:16px;
 background:#fff; overflow:hidden; transform:none !important; font-size:32px; line-height:1;
}
.k-surukleniyor img { display:block; width:100%; height:100%; object-fit:contain; border-radius:10px; }

.k-bilgi { position:fixed; top:24%; width:180px; max-height:65dvh; overflow:auto; padding:20px 16px;
 border-radius:12px 24px 24px 12px; border-left:5px solid #f59e0b; background:#fff9e9;
 box-shadow:0 8px 24px #10223a24; color:#173f50; transform:rotate(-2deg); }
.k-bilgi-1 { background:#ecfdf5; border-color:#0f766e; transform:rotate(2deg); }
.k-bilgi small { font-size:10px; letter-spacing:1.4px; color:#775025; }
.k-bilgi h2 { margin:10px 0; font-size:19px; line-height:1.35; }
.k-bilgi p { font-size:14px; line-height:1.7; white-space:pre-line; }

/* Pictures and captions stay inside both the source card and the timeline slot. */
.de-yuva { min-width:0; overflow:hidden; }
.de-resim { min-width:0; width:100%; height:100%; display:flex; flex-direction:column; overflow:hidden; }
.de-resim img { display:block; min-height:0; flex:1; width:100%; height:0; object-fit:contain; }
.de-resim span { flex:none; overflow-wrap:anywhere; line-height:1.15; padding:3px; font-size:clamp(10px,1.2vw,16px); }
.de-kart { overflow:hidden; min-width:0; }
.de-kart img, .hv-hayvan img, .zt-icat img { -webkit-user-drag:none; user-select:none; touch-action:none; }
.de-kart .de-resim { height:clamp(100px,20dvh,180px); }
.de-yuva .de-resim { position:absolute; inset:0; }

.pa-foto-secenek img { max-height:110px; object-fit:contain; }
@media(min-width:900px), (min-width:640px) and (orientation:landscape) {
 .pa-ulke { flex-wrap:nowrap; }
 .gk-album, .gk-album.alti { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .gk-kart img { max-height:24dvh; object-fit:contain; }
}

/* Small stamps keep the full collection visible, including long sessions. */
.k-sahne:has(.pa-ulke) { max-width:1560px; }
.pa-pasaport .pa-damgalar { grid-template-columns:repeat(auto-fit,minmax(64px,1fr)); max-height:none; min-height:0; overflow:visible; gap:8px; padding:12px; justify-items:center; align-content:start; }
.pa-damga { width:clamp(44px,4.7vw,64px); height:clamp(44px,4.7vw,64px); aspect-ratio:1; font-size:.6rem; padding:3px; min-width:0; }
.pa-damga.dolu { border-width:3px; grid-template-rows:minmax(0,1fr) minmax(0,1fr); gap:1px; }
.pa-damga b { font-size:.5rem; line-height:1.05; overflow-wrap:anywhere; max-width:100%; max-height:100%; overflow:hidden; }
.pa-damga img { width:auto; height:100%; max-width:70%; min-height:0; }
@media(min-width:900px), (min-width:640px) and (orientation:landscape) {
 .k-sahne:has(.pa-ulke) { grid-template-columns:minmax(240px,.75fr) minmax(0,1.65fr); gap:12px 22px; align-items:start; }
 .pa-ulke { grid-row:1 / 3; padding:12px; }
 .pa-soru-kart { margin-bottom:0; }
 .pa-pasaport { grid-row:2; width:100%; }
 .pa-bayrak { width:min(100%,180px); }
 .pa-damga { width:clamp(44px,4.2vw,60px); height:clamp(44px,4.2vw,60px); }
 .pa-ulke h2 { font-size:1.5rem; }
}
@media(max-width:639px) { .pa-damga { width:44px; height:44px; } }
@media(max-width:639px) { .pa-pasaport .pa-damgalar { grid-template-columns:repeat(auto-fit,minmax(44px,1fr)); } }
