/* Full-screen photographs with alternating, equally inset content blocks. */
.ataturk-page .site-quickbar { display: none; }
.ataturk-page.is-footer-visible :is(.site-logo,.ataturk-sound) { visibility: hidden; pointer-events: none; }
.ataturk-page .site-header { position: fixed; z-index: 120; }
.ataturk-page .site-navigation { visibility: hidden; pointer-events: none; }
.ataturk-page .site-header__actions.is-persistent { z-index: 121; }

.ataturk-chapter { --chapter-side-inset: max(calc(var(--page-gutter) + 60px), calc(10vw - 60px)); --chapter-left-inset: var(--chapter-side-inset); --chapter-right-inset: var(--chapter-side-inset); }
.ataturk-chapter__layout { display: block; }
.ataturk-chapter__copy { max-width: 720px; text-align: left; text-shadow: none; }
.ataturk-chapter[data-composition="feature-right"] .ataturk-chapter__copy { justify-self: end; width: min(var(--chapter-content-width, 720px), 100%); margin-left: auto; }
.ataturk-chapter__highlight { color: inherit; }
.ataturk-chapter__date { gap: 15px; margin-bottom: 30px; color: #fff; font-size: 10px; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: 2px; }
.ataturk-chapter__date::before { content: ''; width: 2px; height: 24px; flex-shrink: 0; background: var(--kak-red); }
.ataturk-chapter__action,
.is-animated .ataturk-chapter .ataturk-chapter__action { position: relative; inset: auto; margin-top: 30px; }
.ataturk-chapter__final-eight { display: inline-block; }
.ataturk-chapter__atmosphere { inset: -28% -8%; background: transparent; }
.ataturk-chapter__placeholder { min-height: 0; background: #000; }

/* Photos are sharp and edge-to-edge, including the reduced-motion/no-JS flow. */
.ataturk-chapter__media,
.ataturk-chapter__visual,
.ataturk-chapter__image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; min-height: 0; max-height: none; overflow: hidden; border-radius: 0; background-color: transparent; }
.ataturk-chapter__visual :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position,center); filter: none; }
.ataturk-chapter__video { pointer-events: none; }
.ataturk-chapter__image::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: .4; }
/* Chapter photos are the frame's background (10 Kasım 2026; on WordPress the frame's Bricks background, Stil > Arka
   plan). A frame still marked data-bg-pending gets its file only when ataturk-timeline.js clears the mark; the Bricks
   editor (no bricks-is-frontend class) always shows it. */
.ataturk-chapter__image[data-kak-background] { background-repeat: no-repeat; background-size: cover; background-position: var(--image-position, center); }
:is(body.bricks-is-frontend, body.ataturk-page:not(.wp-singular)) .ataturk-chapter__image[data-bg-pending] { background-image: none !important; }
.ataturk-story:not(.is-animated) .ataturk-chapter { justify-content: center; margin-top: var(--ataturk-scene-gap); padding: 120px var(--chapter-right-inset) 120px var(--chapter-left-inset); background: transparent; }
.ataturk-story:not(.is-animated) .ataturk-chapter__media { -webkit-mask-image: var(--ataturk-scene-mask); mask-image: var(--ataturk-scene-mask); }

.is-animated .ataturk-backgrounds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.is-animated .ataturk-scene-background { position: absolute; top: calc(var(--scene-index) * (100% + var(--ataturk-scene-gap))); right: 0; left: 0; height: 100%; overflow: hidden; isolation: isolate; background: transparent; -webkit-mask-image: var(--ataturk-scene-mask); mask-image: var(--ataturk-scene-mask); }
.is-animated .ataturk-flow { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: var(--ataturk-scene-gap); will-change: transform; }
.is-animated .ataturk-flow > .ataturk-chapter { position: relative; inset: auto; flex: 0 0 100%; height: 100%; min-height: 0; background: transparent; }
.is-animated .ataturk-stage > .ataturk-chapter__year { z-index: 80; pointer-events: none; }
.is-animated .ataturk-chapter__layout { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; padding: 0 var(--chapter-right-inset) 0 var(--chapter-left-inset); }
.is-animated .ataturk-chapter__copy { position: relative; inset: auto; z-index: 3; width: min(720px,100%); max-width: 720px; margin: 0; }
.is-animated .ataturk-chapter__image { top: -30%; bottom: auto; height: 160%; }
.is-animated .ataturk-scene-background[aria-hidden="false"] .ataturk-chapter__image { will-change: transform; }

@media (max-width: 1100px), (max-height: 480px) {
  .ataturk-chapter { --chapter-side-inset: var(--page-gutter); }
}
@media (max-width: 1100px) and (min-width: 821px) and (min-height: 481px) {
  .is-animated .ataturk-chapter__layout { padding-left: var(--page-gutter); }
}
@media (max-width: 820px) and (min-height: 481px) {
  .is-animated .ataturk-chapter__layout { padding: var(--header-height) var(--page-gutter) 60px; }
  .ataturk-chapter__date { margin-bottom: 15px; }
}
@media (max-height: 480px) {
  .ataturk-page { --header-height: 90px; }
  .ataturk-page .site-logo { width: 80px; height: 80px; }
  .ataturk-page .site-logo img { width: 80px; }
  .is-animated .ataturk-chapter__layout { padding: 90px var(--page-gutter) 30px; }
  .ataturk-chapter__date { margin-bottom: 15px; }
  .is-animated .ataturk-chapter .ataturk-chapter__action { margin-top: 15px; }
}

/* One handwritten saying per scene, on the side opposite the text column. */
.ataturk-story { --ataturk-hand: 'Dancing Script', cursive; }
.ataturk-chapter-quote { position: absolute; z-index: 3; max-width: min(440px, 32vw); margin: 0; color: rgb(255 255 255 / 92%); font: 500 25px/1.42 var(--ataturk-hand); letter-spacing: .01em; text-shadow: 0 2px 12px rgb(0 0 0 / 55%); opacity: var(--chapter-quote-opacity, 0); pointer-events: none; }
.ataturk-chapter-quote--top { top: calc(var(--header-height, 120px) + 30px); }
.ataturk-chapter-quote--bottom { bottom: 190px; }
.ataturk-chapter-quote--middle { top: 50%; transform: translateY(-50%); }
.ataturk-chapter-quote.is-crowded { visibility: hidden; }
/* Not enough room beside the text: wide, left-aligned, 30px above the timeline (60px + 44px rail). */
.ataturk-chapter-quote.is-stacked { top: auto; right: auto; bottom: 134px; left: var(--page-gutter); max-width: min(640px, calc(100% - 2 * var(--page-gutter))); text-align: left; transform: none; }
.ataturk-chapter-quote--center { bottom: 160px; left: 50%; max-width: min(640px, 60vw); text-align: center; transform: translateX(-50%); }
.ataturk-chapter-quote.is-left { left: calc(var(--page-gutter) + 60px + var(--quote-inset, 0px)); }
.ataturk-chapter-quote.is-right { right: calc(var(--page-gutter) + 60px + var(--quote-inset, 0px)); text-align: right; }
/* Phones and tablets: every saying left-aligned at the gutter, 30px above the timeline
   (rail bottom 90px + 44px rail height + 30px). */
@media (max-width: 820px) {
  .ataturk-chapter .ataturk-chapter-quote { top: auto; right: auto; bottom: 164px; left: var(--page-gutter); max-width: calc(100% - 2 * var(--page-gutter)); font-size: 20px; text-align: left; transform: none; }
}
