:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Dancing Script', Georgia, cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --crimson: #8c1d2e;
  --crimson-deep: #6b1322;
  --gold: #d49428;
  --gold-soft: #f3c669;
  --ink: #251c17;
  --ink-muted: #5d4f47;
  --paper: #fffdf9;
  --mat-bg: #f6efe4;
  --border-soft: rgb(37 28 23 / 0.13);

  --theater-bg: #1e1613;
  --chrome-bg: rgb(26 19 16 / 0.94);

  --shadow-scrap: 0 10px 24px rgb(22 14 10 / 0.14), 0 3px 6px rgb(22 14 10 / 0.08);
  --shadow-pop: 0 22px 44px rgb(22 14 10 / 0.24), 0 8px 16px rgb(22 14 10 / 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--theater-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--gold-soft);
  outline-offset: 2px;
}

/* ==================== KHUNG ỨNG DỤNG POWERPOINT 100DVH ==================== */
.deck-app {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2f231e 0%, #19120f 85%);
}

/* Thanh trên tối giản */
.deck-header {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px clamp(12px, 2.5vw, 24px);
  background: var(--chrome-bg);
  color: #fdf6eb;
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  min-height: 48px;
}

.deck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.deck-seal {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff8ee;
  border: 2px dashed var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
}

.deck-brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.deck-brand-text strong {
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-brand-subtitle {
  font-size: 0.8rem;
  color: #dbcbbd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 680px) {
  .deck-brand-subtitle {
    display: none;
  }
}

.deck-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.tool-sep {
  width: 1px;
  height: 18px;
  border-inline-start: 1px solid rgb(243 198 105 / 0.28);
  flex: none;
}

.tool-btn {
  min-block-size: 34px;
  min-inline-size: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgb(243 198 105 / 0.35);
  background: rgb(255 255 255 / 0.08);
  color: #fff7ea;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.tool-btn--icon {
  min-inline-size: 34px;
  padding: 0;
  justify-content: center;
}

.tool-btn--music .music-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.tool-btn--music .music-eq span {
  width: 2.5px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.tool-btn--music[aria-pressed="true"] {
  background: rgb(243 198 105 / 0.24);
  border-color: var(--gold-soft);
  color: #fff4cf;
  box-shadow: 0 0 0 1px rgb(243 198 105 / 0.36);
}

.tool-btn--music[aria-pressed="true"] .music-note-icon {
  display: none;
}

.tool-btn--music[aria-pressed="true"] .music-eq {
  display: inline-flex;
}

.tool-btn--music[aria-pressed="true"] .music-eq span:nth-child(1) {
  height: 7px;
}

.tool-btn--music[aria-pressed="true"] .music-eq span:nth-child(2) {
  height: 12px;
}

.tool-btn--music[aria-pressed="true"] .music-eq span:nth-child(3) {
  height: 9px;
}

@media (hover: hover) {
  .tool-btn:hover {
    background: rgb(243 198 105 / 0.22);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tool-btn {
    transition: background-color 0.16s ease, scale 0.16s ease, box-shadow 0.16s ease;
  }

  .tool-btn--music[aria-pressed="true"] .music-eq span {
    animation: eq-bounce 0.9s ease-in-out infinite alternate;
  }

  .tool-btn--music[aria-pressed="true"] .music-eq span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .tool-btn--music[aria-pressed="true"] .music-eq span:nth-child(3) {
    animation-delay: 0.42s;
  }
}

@keyframes eq-bounce {
  0% { height: 4px; }
  100% { height: 12px; }
}

@media (pointer: coarse) {
  .tool-btn {
    min-block-size: 38px;
  }
}

@media (forced-colors: active) {
  .tool-btn--music[aria-pressed="true"] {
    background: Highlight;
    color: HighlightText;
    border-color: ButtonText;
    forced-color-adjust: none;
  }
}

.tool-btn:active {
  scale: 0.96;
}

@media (max-width: 520px) {
  .deck-header {
    padding: 6px 10px;
    gap: 8px;
  }

  .deck-brand {
    gap: 7px;
  }

  .deck-seal {
    width: 30px;
    height: 30px;
    font-size: 0.62rem;
  }

  .deck-brand-text strong {
    font-size: 0.84rem;
  }

  .brand-prefix,
  .tool-sep,
  .music-btn-extra {
    display: none;
  }

  .deck-header-tools {
    gap: 5px;
  }

  .tool-btn {
    min-block-size: 34px;
    min-inline-size: 32px;
    padding: 0 9px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .tool-btn--icon {
    width: 32px;
    min-inline-size: 32px;
    padding: 0;
  }

  .deck-counter {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* ==================== SÂN KHẤU CAROUSEL / SLIDE TRACK ==================== */
.deck-stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.deck-viewport {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.deck-edge-controls {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(6px, 1vw, 14px);
}

.edge-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: rgb(24 17 15 / 0.72);
  backdrop-filter: blur(8px);
  color: #fff7eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease, transform 0.18s ease, scale 0.15s ease;
}

.edge-arrow:hover:not(:disabled) {
  background: var(--crimson);
  border-color: var(--gold-soft);
  transform: scale(1.06);
}

.edge-arrow:active:not(:disabled) {
  scale: 0.95;
}

.edge-arrow:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

@media (max-width: 1160px) {
  .deck-edge-controls {
    display: none;
  }
}

.deck-track {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  touch-action: manipulation;
  scrollbar-width: none;
}

.deck-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .deck-track {
    scroll-behavior: smooth;
  }
}

.slide-slot {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: center;
  padding: clamp(6px, 1.2vh, 14px) clamp(10px, 4.2vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
}

.slide-board {
  width: 100%;
  min-width: 0;
  max-width: min(1520px, 100%);
  height: 100%;
  max-height: min(920px, 100%);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(12px, 1.8vh, 20px) clamp(14px, 2.5vw, 32px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.12);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

@media (max-width: 899px) {
  .slide-slot {
    padding: 8px 10px;
  }

  .slide-board {
    max-height: none;
    height: 100%;
    padding: 14px 14px 18px;
  }
}

/* Chuyển động chiều sâu khi lướt ngang giữa các slide (Composite view(inline)) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes slide-depth {
      0% {
        scale: 0.96;
      }
      50% {
        scale: 1;
      }
      100% {
        scale: 0.96;
      }
    }

    .slide-board {
      animation: slide-depth auto linear both;
      animation-timeline: view(inline);
    }
  }
}

/* Header gọn chuẩn Slide PowerPoint */
.slide-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  flex: none;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgb(37 28 23 / 0.14);
}

.slide-top-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgb(140 29 46 / 0.12);
  color: var(--crimson);
}

.slide-badge--gold {
  background: rgb(243 198 105 / 0.22);
  color: #fde9ba;
}

.slide-script {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--crimson);
}

.slide-title {
  margin: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

.slide-lead {
  margin: 0;
  font-size: clamp(0.84rem, 1.15vw, 0.95rem);
  color: var(--ink-muted);
  max-width: 48ch;
}

/* ==================== BẢNG MÀU RIÊNG TỪNG CHƯƠNG SLIDE ==================== */
.theme--envelope {
  background: radial-gradient(circle at top right, #fff5e3, #f4e4cb 75%);
}

.theme--chalkboard {
  background: radial-gradient(circle at 20% 20%, #244d40 0%, #143027 80%);
  color: #f7f3e9;
}

.theme--chalkboard .slide-top {
  border-bottom-color: rgb(255 255 255 / 0.16);
}

.theme--chalkboard .slide-badge {
  background: rgb(243 198 105 / 0.2);
  color: #fde9ba;
}

.theme--chalkboard .slide-script {
  color: var(--gold-soft);
}

.theme--chalkboard .slide-lead {
  color: #dbe8e2;
}

.theme--parchment {
  background: linear-gradient(155deg, #fbf3e5 0%, #f3e4cd 100%);
}

.theme--craft {
  background: linear-gradient(155deg, #fdf1ec 0%, #f8e2d9 100%);
}

.theme--sunbeam {
  background: linear-gradient(155deg, #fef8e4 0%, #fae7b8 100%);
}

.theme--notebook {
  background-color: #ecf5f1;
  background-image: linear-gradient(to bottom, transparent 27px, rgb(32 103 87 / 0.08) 28px);
  background-size: 100% 28px;
}

.theme--notebook .slide-badge,
.theme--notebook .slide-script {
  color: #165949;
}

.theme--notebook .slide-badge {
  background: rgb(22 89 73 / 0.12);
}

.theme--easel {
  background: #fbf6ee;
}

.theme--easel-alt {
  background: #f5ecde;
}

.theme--music {
  background: radial-gradient(circle at 80% 18%, #273c68 0%, #141e37 82%);
  color: #f7f3eb;
}

.theme--music .slide-top {
  border-bottom-color: rgb(255 255 255 / 0.16);
}

.theme--music .slide-badge {
  background: rgb(244 201 107 / 0.2);
  color: #fbe6b0;
}

.theme--music .slide-script {
  color: var(--gold-soft);
}

.theme--music .slide-lead {
  color: #d7dff2;
}

.theme--poetry {
  background: #fcf7ef;
}

.theme--poetry-sage {
  background: #eef4eb;
}

.theme--gifts {
  background: linear-gradient(155deg, #fdf1e6 0%, #f9e2cf 100%);
}

.theme--finale {
  background: radial-gradient(circle at center, #8c1e30 0%, #5a101b 82%);
  color: #fff7ec;
}

/* ==================== HIỆU ỨNG THẺ XÒE LỆCH & BĂNG DÍNH WASHI-TAPE ==================== */
.scrap-card,
.chalk-sticky,
.letter-paper {
  position: relative;
  transform: translate(var(--ox, 0px), var(--oy, 0px)) rotate(var(--tilt, 0deg));
  transition: transform 280ms ease-out, box-shadow 240ms ease-out;
  transition: transform 340ms linear(0, 0.52 20%, 1.07 52%, 0.98 76%, 1), box-shadow 240ms ease-out;
}

/* Băng dính giấy trang trí phía trên card ghim */
[data-tape]::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 56px;
  height: 16px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.14);
  z-index: 6;
  pointer-events: none;
  opacity: 0.88;
}

[data-tape="crimson"]::before { background: rgb(168 42 58 / 0.78); }
[data-tape="gold"]::before    { background: rgb(228 175 72 / 0.82); }
[data-tape="mint"]::before    { background: rgb(74 158 134 / 0.78); }
[data-tape="lilac"]::before   { background: rgb(156 122 184 / 0.78); }

.mini-polaroid[data-tape]::before {
  width: 34px;
  height: 11px;
  top: -5px;
}

/* Hover / Focus: Nhấc ảnh thẳng đứng và đẩy lên trước khi xem */
.scrap-card {
  border: 0;
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-scrap);
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
  .scrap-card:hover,
  .scrap-card:focus-visible {
    transform: translate(0px, -6px) rotate(0deg) scale(1.03);
    box-shadow: var(--shadow-pop);
    z-index: 25;
  }

  .scrap-card:active {
    transform: translate(0px, -2px) rotate(0deg) scale(0.99);
  }
}

/* Hiệu ứng hiện ra dần và bung xòe mượt khi mở slide (chờ trượt vào khung rồi mới hiện dần) */
@media (prefers-reduced-motion: no-preference) {
  .deck-js .slide-slot:not(.is-entering) .stagger-in {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }

  @keyframes fan-reveal {
    from {
      opacity: 0;
      transform: translate(0px, 24px) rotate(calc(var(--tilt, 0deg) * 0.2)) scale(0.94);
    }
    to {
      opacity: 1;
      transform: translate(var(--ox, 0px), var(--oy, 0px)) rotate(var(--tilt, 0deg)) scale(1);
    }
  }

  .slide-slot.is-entering .stagger-in {
    animation: fan-reveal 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--enter-base, 40ms) + (var(--delay, 0ms) * 1.45));
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes fade-gentle {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .deck-js .slide-slot:not(.is-entering) .stagger-in {
    opacity: 0;
  }

  .slide-slot.is-entering .stagger-in {
    animation: fade-gentle 420ms ease-out both;
    animation-delay: calc(var(--enter-base, 20ms) + min(var(--delay, 0ms), 160ms));
  }
}

.zoom-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(25 18 15 / 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.scrap-card:hover .zoom-chip,
.scrap-card:focus-within .zoom-chip {
  opacity: 1;
}

@media (hover: none) {
  .zoom-chip {
    opacity: 0.9;
  }
}

/* Khung ảnh thống nhất (giữ 100% nét chữ & chữ ký, không cắt viền) */
.sheet-card {
  padding: 9px 9px 0;
  overflow: visible;
}

.sheet-media {
  position: relative;
  width: 100%;
  flex: none;
  height: 180px;
  border-radius: 9px;
  background: var(--mat-bg);
  overflow: hidden;
}

.sheet-media img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  border-radius: 6px;
}

.sheet-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px 9px;
  min-height: 48px;
  flex: none;
}

.sheet-meta > div {
  min-width: 0;
}

.sheet-meta strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.sheet-meta > div > span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.student-avatar,
.monogram-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.student-avatar {
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #eeddcc;
  background: var(--mat-bg);
}

.sheet-meta .monogram-avatar,
.monogram-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  background: #f5e6d8;
  color: var(--crimson);
  border: 1.5px solid #e7ccb6;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sheet-meta .monogram-avatar svg,
.monogram-avatar svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}

/* ==================== SLIDE 01: COVER PHONG THƯ ==================== */
.layout--cover {
  justify-content: center;
  padding: clamp(10px, 1.8vw, 16px);
  background: repeating-linear-gradient(
    135deg,
    #b62635 0 16px,
    #fffdf9 16px 26px,
    #1c6b53 26px 42px,
    #fffdf9 42px 52px
  );
}

.airmail-frame {
  flex: 1 0 auto;
  min-height: 0;
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(14px, 3vw, 34px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cover-grid {
  width: 100%;
  margin-block: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.88fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

@media (max-width: 820px) {
  .layout--cover {
    justify-content: flex-start;
  }

  .airmail-frame {
    flex: 0 0 auto;
    padding: 16px 14px;
  }

  .slide-chip-row {
    justify-content: center;
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    margin-block: 0;
    gap: 14px;
  }

  .cover-title {
    font-size: clamp(1.5rem, 6.2vw, 2.2rem);
    margin-bottom: 8px;
  }

  .cover-desc {
    margin-bottom: 12px;
    font-size: 0.88rem;
  }

  .envelope-meta {
    margin-bottom: 14px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .hero-polaroid {
    width: min(100%, 262px);
  }

  .hero-img-box img {
    max-height: 295px;
  }
}

.slide-chip-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.cover-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--crimson);
}

.cover-desc {
  margin: 0 0 18px;
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  color: var(--ink-muted);
  max-width: 50ch;
}

@media (max-width: 820px) {
  .cover-desc {
    margin-inline: auto;
  }
}

.envelope-meta {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #faf3e8;
  border: 1px solid rgb(140 29 46 / 0.14);
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 0.9rem;
}

.envelope-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.envelope-meta dt {
  min-width: 88px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--crimson);
}

.envelope-meta dd {
  margin: 0;
  font-weight: 700;
}

.cover-cta-row,
.finale-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 820px) {
  .cover-cta-row {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .cover-cta-row {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .cta-extra {
    display: none;
  }

  .cover-cta-row .btn-solid,
  .cover-cta-row .btn-outline {
    flex: 0 1 auto;
    min-width: 0;
    padding: 9px 14px;
    font-size: clamp(0.76rem, 3.35vw, 0.84rem);
    white-space: nowrap;
    text-align: center;
  }
}

.btn-solid,
.btn-outline,
.btn-gold,
.btn-ghost {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  touch-action: manipulation;
  transition: background-color 0.18s ease, transform 0.18s ease, scale 0.15s ease;
}

.btn-solid { background: var(--crimson); color: #fff; }
.btn-solid:hover { background: var(--crimson-deep); transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--crimson); border-color: rgb(140 29 46 / 0.3); }
.btn-outline:hover { background: #fdf3e7; border-color: var(--crimson); }

.cover-photo-col {
  display: flex;
  justify-content: center;
}

.hero-polaroid {
  width: min(100%, clamp(265px, 24vw, 355px));
  padding: 12px 12px 16px;
  --tilt: 3.2deg;
}

.hero-img-box {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: var(--mat-bg);
}

.hero-img-box img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: clamp(260px, 48dvh, 430px);
  object-fit: cover;
  object-position: center 14%;
}

.wax-seal {
  position: absolute;
  top: -13px;
  right: -11px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b72b3e, #761120);
  color: #fff6e5;
  border: 2px dashed var(--gold-soft);
  box-shadow: 0 8px 18px rgb(89 15 27 / 0.36);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  z-index: 8;
}

.polaroid-hand {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.22rem, 1.9vw, 1.44rem);
  font-weight: 700;
  color: var(--crimson);
}

/* ==================== SLIDE 02: BẢNG PHẤN & XÒE 12 POLAROID ==================== */
.layout--chalk-scatter {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.65fr);
  gap: clamp(14px, 2.2vw, 24px);
  align-items: center;
}

.chalk-sticky {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.09);
  border: 1.5px dashed rgb(243 198 105 / 0.5);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.chalk-sticky h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff6e2;
}

.chalk-poem {
  margin: 0 0 12px;
  font-size: 0.87rem;
  line-height: 1.68;
  color: #edf3ef;
}

.chalk-sign {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.fan-collage-12 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 6px;
  align-items: center;
}

.mini-polaroid {
  padding: 5px 5px 7px;
  border-radius: 9px;
}

.mini-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 6px;
  background: #ece5d8;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-label {
  display: block;
  margin-top: 5px;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .layout--chalk-scatter {
    grid-template-columns: minmax(0, 1fr);
  }

  .fan-collage-12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .fan-collage-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ==================== SLIDE 03: XÃ LUẬN THƯ LỆCH ==================== */
.layout--letter-scatter {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: 4px;
}

.letter-paper {
  min-width: 0;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-scrap);
  padding: clamp(18px, 2.8vw, 28px);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.author-row strong { display: block; font-size: 0.96rem; }
.author-row span { font-size: 0.8rem; color: var(--ink-muted); }

.letter-paper h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  color: var(--crimson);
}

.letter-paper p {
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 0.98rem);
  line-height: 1.72;
}

.sheet-media--tall {
  height: clamp(235px, 42dvh, 360px);
}

/* ==================== SLIDE 04: 1 THIỆP NỔI BẬT + 5 THIỆP XÒE LỆCH ==================== */
.layout--craft-mosaic {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.55fr);
  gap: clamp(12px, 2.2vw, 24px);
  align-items: center;
  padding: 4px;
}

.craft-hero .sheet-media {
  height: clamp(210px, 38dvh, 335px);
}

.craft-scatter-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: center;
}

.craft-scatter-grid .sheet-media {
  height: clamp(105px, 18dvh, 148px);
}

@media (max-width: 900px) {
  .layout--letter-scatter,
  .layout--craft-mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .craft-scatter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-media--tall {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .craft-hero .sheet-media,
  .craft-scatter-grid .sheet-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .craft-scatter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==================== SLIDE 05: TỨ GIÁC XÒE LỆCH ==================== */
.layout--quad-scatter {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  align-items: center;
  padding: 4px 8px;
}

.layout--quad-scatter .sheet-media {
  height: clamp(118px, 19.5dvh, 162px);
}

@media (max-width: 720px) {
  .layout--quad-scatter {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .layout--quad-scatter .sheet-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ==================== SLIDES 06, 10, 12, 14, 15, 16: CÁC BỐ CỤC 3 THẺ KHÁC NHAU ==================== */
.layout--fan-trio,
.layout--stair-trio,
.layout--arch-trio {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 6px 10px;
}

.layout--fan-trio {
  gap: 4px;
}

.layout--stair-trio,
.layout--arch-trio {
  gap: clamp(12px, 2vw, 22px);
}

.layout--fan-trio .sheet-media,
.layout--stair-trio .sheet-media,
.layout--arch-trio .sheet-media {
  height: clamp(205px, 36.5dvh, 315px);
}

.arch-center {
  z-index: 4;
  transform: translate(0, -14px) scale(1.03);
}

/* Bỏ offset chồng chéo quá sâu trên mobile, chỉ giữ nghiêng nhẹ dễ đọc */
@media (max-width: 899px) {
  .layout--chalk-scatter,
  .layout--letter-scatter,
  .layout--craft-mosaic,
  .layout--quad-scatter,
  .layout--fan-trio,
  .layout--stair-trio,
  .layout--arch-trio,
  .layout--diag-duo,
  .layout--spotlight-duo,
  .layout--overlap-pair,
  .layout--feature-plus-two,
  .layout--zigzag-4 {
    flex: 0 0 auto;
    align-content: start;
  }

  .layout--fan-trio,
  .layout--stair-trio,
  .layout--arch-trio {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .scrap-card {
    --ox: 0px;
    --oy: 0px;
  }

  .layout--fan-trio .sheet-media,
  .layout--stair-trio .sheet-media,
  .layout--arch-trio .sheet-media {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

/* ==================== SLIDES 07, 08, 09: 3 BỐ CỤC TRANH VẼ KHÁC NHAU ==================== */
.layout--diag-duo,
.layout--overlap-pair {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: 6px 12px;
}

.layout--spotlight-duo {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 6px 10px;
}

.layout--diag-duo .sheet-media,
.layout--overlap-pair .sheet-media {
  height: clamp(205px, 37dvh, 320px);
}

.spot-main .sheet-media {
  height: clamp(220px, 40dvh, 345px);
}

.spot-side .sheet-media {
  height: clamp(175px, 31dvh, 260px);
}

@media (max-width: 820px) {
  .layout--diag-duo,
  .layout--spotlight-duo,
  .layout--overlap-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .layout--diag-duo .sheet-media,
  .layout--overlap-pair .sheet-media,
  .spot-main .sheet-media,
  .spot-side .sheet-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ==================== SLIDE 11: 1 LÁ THƯ LỚN + 2 GHIM BÊN ==================== */
.layout--feature-plus-two {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(14px, 2.5vw, 26px);
  align-items: center;
  padding: 4px 8px;
}

.feat-card .sheet-media {
  height: clamp(220px, 40dvh, 345px);
}

.side-duo-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.side-duo-stack .sheet-media {
  height: clamp(190px, 34dvh, 290px);
}

@media (max-width: 899px) {
  .layout--feature-plus-two,
  .side-duo-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .feat-card .sheet-media,
  .side-duo-stack .sheet-media {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

/* ==================== SLIDE 13: ZIGZAG 4 TỜ LỊCH ==================== */
.layout--zigzag-4 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  padding: 6px;
}

.layout--zigzag-4 .sheet-media {
  height: clamp(195px, 34dvh, 295px);
}

@media (max-width: 960px) {
  .layout--zigzag-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .layout--zigzag-4 .sheet-media {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 500px) {
  .layout--zigzag-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==================== SLIDE 17: KẾT TRANG TRI ÂN ==================== */
.layout--finale {
  justify-content: flex-start;
  align-items: stretch;
}

.finale-frame {
  width: min(100%, 760px);
  margin: auto;
  padding: clamp(18px, 3.6vh, 34px) clamp(18px, 3.5vw, 36px);
  border-radius: 22px;
  text-align: center;
  background: rgb(255 255 255 / 0.08);
  border: 1.5px solid rgb(243 198 105 / 0.44);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}

.finale-title {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: #fff6e5;
}

.heart-wishes {
  list-style: none;
  margin: 0 auto 18px;
  padding: 0;
  max-width: 520px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.heart-wishes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  font-weight: 500;
}

.wish-heart { color: #ff9c9e; }

.finale-shout {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--gold-soft);
}

.finale-sign {
  margin: 0 auto 20px;
  font-size: 0.85rem;
  color: #f3dede;
  max-width: 56ch;
}

.finale-cta-row {
  justify-content: center;
}

.btn-gold { background: var(--gold-soft); color: #3d1219; }
.btn-gold:hover { background: #ffe09a; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.36); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); }

/* ==================== THANH CHUYỂN SLIDE PHÍA DƯỚI ==================== */
.deck-dock {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px clamp(10px, 2.5vw, 24px);
  background: var(--chrome-bg);
  color: #fdf6eb;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  min-height: 52px;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-hint {
  font-size: 0.76rem;
  color: #bba99b;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .deck-hint {
    display: none;
  }
}

.dock-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.09);
  color: #fff7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, scale 0.14s ease;
}

.dock-btn:hover:not(:disabled) {
  background: var(--crimson);
  border-color: var(--gold-soft);
}

.dock-btn:active:not(:disabled) {
  scale: 0.96;
}

.dock-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .dock-btn {
    width: 34px;
    padding: 0;
  }

  .dock-btn span {
    display: none;
  }
}

.slide-markers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

.marker-btn {
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgb(255 255 255 / 0.28);
  cursor: pointer;
  touch-action: manipulation;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.marker-btn:hover {
  background: rgb(243 198 105 / 0.75);
}

.marker-btn[aria-current="true"] {
  width: 24px;
  background: var(--gold-soft);
}

@media (max-width: 500px) {
  .slide-markers {
    gap: 4px;
  }

  .marker-btn {
    width: 6px;
    height: 6px;
  }

  .marker-btn[aria-current="true"] {
    width: 18px;
  }
}

/* ==================== TOP-LAYER DIALOGS (LIGHTBOX & SLIDE SORTER) ==================== */
dialog {
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.48);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.16s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: scale(0.94);
  }
}

dialog::backdrop {
  background-color: rgb(14 10 8 / 0);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: 0.16s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open]:where(:not([data-closing])) {
    transform: scale(1);
  }

  @starting-style {
    dialog[open]:where(:not([data-closing])) {
      transform: scale(0.94);
    }
  }
}

dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgb(14 10 8 / 0.78);
}

@starting-style {
  dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: rgb(14 10 8 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

#lightbox {
  width: min(94vw, 960px);
  max-height: 92svh;
  overflow: hidden;
}

.lightbox-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 92svh;
}

.lightbox-bar,
.sorter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}

.lightbox-heading h2,
.sorter-header h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.lightbox-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--crimson);
}

.lightbox-close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #faf5ee;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--crimson);
  color: #fff;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background: #f2ebe0;
  min-height: 240px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .lightbox-stage {
    padding: 10px;
  }
}

.lightbox-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.lightbox-figure img {
  max-height: min(62svh, 560px);
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}

.lightbox-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgb(37 28 23 / 0.16);
  background: rgb(255 255 255 / 0.94);
  display: grid;
  place-items: center;
  cursor: pointer;
}

#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }

.lightbox-step:hover {
  background: var(--crimson);
  color: #fff;
}

.lightbox-footer {
  padding: 11px 18px 14px;
  background: #fff;
  border-top: 1px solid var(--border-soft);
}

.lightbox-author { margin: 0 0 3px; font-weight: 700; font-size: 0.9rem; color: var(--crimson); }
.lightbox-note { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

/* Slide Sorter Visual Grid kiểu PowerPoint */
#toc-dialog {
  width: min(94vw, 880px);
  max-height: 88svh;
  overflow: hidden;
}

.sorter-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 88svh;
}

.sorter-grid {
  list-style: none;
  margin: 0;
  padding: 16px 18px 22px;
  background: #f5efe6;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}

.sorter-card {
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  border: 2px solid rgb(37 28 23 / 0.1);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.sorter-card:hover {
  transform: translateY(-2px);
  border-color: var(--crimson);
}

.sorter-card[aria-current="true"],
.sorter-card[aria-current="true"]:hover {
  background-color: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

.sorter-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sorter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sorter-num {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(24 17 15 / 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.sorter-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================================================
   V3 POLISH: AUTO-GALLERY, RỘNG RÃI TRÊN PC & BỐ CỤC ĐA DẠNG SLIDES 9–16
   ============================================================================ */

@media (min-width: 1080px) and (min-height: 760px) {
  .slide-board {
    gap: clamp(12px, 1.8vh, 20px);
  }

  .layout--cover {
    gap: clamp(20px, 3vw, 42px);
  }

  .layout--fan-trio,
  .layout--stair-trio,
  .layout--zigzag-4,
  .layout--diag-duo,
  .layout--spotlight-duo {
    align-items: center;
  }

  .layout--fan-trio .sheet-media,
  .layout--stair-trio .sheet-media,
  .layout--zigzag-4 .sheet-media,
  .layout--diag-duo .sheet-media,
  .layout--spotlight-duo .spot-main .sheet-media,
  .layout--spotlight-duo .spot-side .sheet-media {
    height: clamp(260px, 47dvh, 520px);
    max-height: none;
  }
}

/* Slide 2 & Slide 5: Auto-Gallery Slider (Ảnh to + text cùng cột 1, 12 ảnh nhỏ cột 2) */
.layout--chalk-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(350px, 1fr);
  gap: clamp(14px, 2vw, 26px);
  flex: 1;
  min-height: 0;
  padding: 2px 2px 10px;
  align-items: stretch;
}

.chalk-main-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.3vh, 14px);
  min-height: 0;
  min-width: 0;
}

.chalk-main-col .auto-stage {
  flex: 1;
  min-height: 0;
}

.chalk-main-col .chalk-sticky {
  flex: none;
  align-self: stretch;
  padding: 11px 16px 12px;
  border-radius: 14px;
}

.chalk-sticky-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 5px;
}

.chalk-main-col .chalk-sticky h3 {
  margin: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
}

.chalk-main-col .chalk-sign {
  margin: 0;
  font-size: 0.78rem;
}

.chalk-main-col .chalk-poem {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(0.75rem, 0.96vw, 0.83rem);
  line-height: 1.44;
}

.auto-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.3vh, 14px);
  min-height: 0;
  min-width: 0;
}

.auto-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 10px 0;
  cursor: default;
}

.auto-stage:hover {
  transform: rotate(var(--tilt, 0deg));
}

.auto-stage-trigger {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  cursor: zoom-in;
}

.auto-stage-trigger:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.auto-stage-media {
  flex: 1;
  min-height: 220px;
  height: auto;
  width: 100%;
}

@keyframes stage-photo-in {
  from {
    opacity: 0.2;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auto-stage-media img {
  transition: transform 320ms ease;
}

.auto-stage-media img.is-photo-entering {
  animation: stage-photo-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auto-stage-trigger:hover .auto-stage-media img {
  transform: scale(1.018);
}

.auto-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px 10px;
  flex: none;
}

.auto-stage-caption {
  min-width: 0;
}

.auto-stage-caption strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-stage-caption span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.auto-ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgb(37 28 23 / 0.18);
  background: #fdf9f3;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.auto-ctrl-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
}

.auto-ctrl-btn--play[aria-pressed="true"] {
  background: #f5e6d8;
  border-color: var(--crimson);
  color: var(--crimson);
}

.auto-counter {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--crimson);
  min-width: 48px;
  text-align: center;
}

.auto-thumbs--12 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 13px);
  height: 100%;
  min-height: 0;
  padding: 4px 2px 6px;
}

.auto-thumb {
  background: #fff;
  border: 2px solid rgb(255 255 255 / 0.9);
  border-radius: 9px;
  padding: 4px 4px 5px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgb(0 0 0 / 0.22);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
  position: relative;
}

.auto-thumbs--12 .auto-thumb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  min-height: 0;
}

.auto-thumbs--12 .auto-thumb img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.auto-thumbs--12 .auto-thumb span {
  flex: none;
  font-size: clamp(0.66rem, 0.8vw, 0.74rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-thumb:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.04);
  z-index: 2;
}

.auto-thumb.is-current {
  border-color: #f4d06f;
  transform: rotate(0deg) translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.34), 0 0 0 2px rgb(244 208 111 / 0.48);
  z-index: 3;
}

/* Slide 3: Xã luận báo tường cân đối 2 cột */
.layout--letter-scatter {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.96fr);
  gap: clamp(16px, 2.4vw, 32px);
  flex: 1;
  min-height: 0;
  padding: 4px 2px 12px;
  align-items: center;
}

.editorial-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 20px);
  min-height: 0;
  height: 100%;
}

.editorial-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-soft);
}

.editorial-bar .author-row {
  margin-bottom: 0;
}

.editorial-tag,
.editorial-subtag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(138 28 38 / 0.1);
  color: var(--crimson);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editorial-lead {
  margin: 0;
  font-size: clamp(0.92rem, 1.3vw, 1.04rem);
  line-height: 1.72;
  color: var(--ink);
}

.editorial-dedication {
  background: linear-gradient(135deg, #fffdf8, #f9edd8);
  border: 1.5px solid #e2c79d;
  border-radius: 16px;
  padding: clamp(14px, 1.8vw, 20px);
  box-shadow: 0 12px 26px rgb(43 26 20 / 0.1);
  position: relative;
}

.editorial-dedication p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--ink-muted);
}

.editorial-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.editorial-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgb(138 28 38 / 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--crimson-deep);
}

.editorial-hero-card {
  height: calc(100% - 10px);
  min-height: 0;
}

.editorial-hero-card .sheet-media--tall {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Slide 4: Góc Sáng Tạo — 2 thiệp ngang trái + lưới 2x2 thiệp dọc phải */
.layout--craft-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.24fr);
  gap: clamp(14px, 2vw, 26px);
  flex: 1;
  min-height: 0;
  padding: 4px 2px 12px;
  align-items: stretch;
}

.craft-left-col {
  display: grid;
  grid-template-rows: minmax(0, 1.22fr) minmax(0, 0.92fr);
  gap: clamp(10px, 1.4vh, 16px);
  height: calc(100% - 8px);
  min-height: 0;
}

.craft-hero,
.craft-wide-card {
  height: 100%;
  min-height: 0;
}

.craft-hero .sheet-media,
.craft-wide-card .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

.craft-scatter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  height: calc(100% - 8px);
  min-height: 0;
  justify-items: center;
  align-items: stretch;
}

.craft-scatter-grid .sheet-card {
  width: min(100%, 265px);
  height: 100%;
  min-height: 0;
}

.craft-scatter-grid .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

.auto-gallery--cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(248px, 0.76fr);
  gap: clamp(14px, 2vw, 26px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.auto-stage--wide {
  height: 100%;
}

.auto-thumbs--4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 30px);
  padding-block: 6px;
  min-height: 0;
}

.auto-thumb--card {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 11px;
  background: #fff;
  border: 2px solid rgb(37 28 23 / 0.08);
  box-shadow: 0 6px 16px rgb(35 20 14 / 0.12);
  text-align: left;
  min-height: 68px;
}

.auto-thumb--card img {
  width: 78px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.auto-thumb-text {
  min-width: 0;
}

.auto-thumb-text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.auto-thumb-text span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.auto-thumb--card.is-current {
  border-color: var(--crimson);
  background: #fff9f2;
  transform: rotate(0deg) translateX(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgb(138 28 38 / 0.2), 0 0 0 2px rgb(138 28 38 / 0.14);
}

/* Slide 9: Triển lãm 2 tranh + bảng thuyết minh giữa */
.layout--gallery-tribute {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(210px, 0.66fr) minmax(0, 1.06fr);
  gap: clamp(14px, 2vw, 26px);
  flex: 1;
  min-height: 0;
  align-items: center;
}

.layout--gallery-tribute .sheet-card {
  height: min(100%, clamp(300px, 50dvh, 520px));
}

.layout--gallery-tribute .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

.story-plaque {
  background: linear-gradient(180deg, #fffdf9, #f7ecdd);
  border: 1.5px solid #e1c7ab;
  border-radius: 14px;
  padding: clamp(14px, 1.8vw, 22px);
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(var(--tilt, 1.8deg));
}

.plaque-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(138 28 38 / 0.1);
  color: var(--crimson);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-plaque h3 {
  margin: 9px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  color: var(--crimson-deep);
}

.story-plaque p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Slide 10: Sân khấu âm nhạc lệch nhịp (1 lớn trái + 2 vừa phải) */
.layout--music-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.38fr);
  gap: clamp(14px, 2vw, 24px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.music-lead {
  height: 100%;
  min-height: 0;
}

.music-lead .sheet-media,
.music-side-pair .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

.music-side-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  min-height: 0;
  align-items: center;
}

.music-side-pair .sheet-card {
  height: min(94%, clamp(290px, 49dvh, 500px));
}

/* Slide 11: Tạp chí đảo bên (trích dẫn + cặp nhỏ trái, hero phải) */
.layout--magazine-right {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.96fr);
  gap: clamp(14px, 2vw, 24px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.mag-left-stack {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vh, 16px);
  min-height: 0;
}

.music-pull-note {
  background: linear-gradient(135deg, #fffdf9, #f7ebef);
  border-left: 4px solid var(--crimson);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgb(35 20 14 / 0.12);
  transform: rotate(var(--tilt, -1.4deg));
}

.music-pull-note .note-kicker {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
}

.music-pull-note p {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  color: var(--crimson-deep);
  line-height: 1.4;
}

.mag-left-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  min-height: 0;
  align-items: stretch;
}

.mag-left-pair .sheet-card,
.mag-right-hero {
  height: 100%;
  min-height: 0;
}

.mag-left-pair .sheet-media,
.mag-right-hero .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Slide 14: Khổ thơ trích dẫn + 3 bài thơ bậc chòm sao */
.layout--poetry-constellation {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(0, 0.94fr) minmax(0, 1.2fr) minmax(0, 0.94fr);
  gap: clamp(10px, 1.5vw, 20px);
  flex: 1;
  min-height: 0;
  align-items: center;
}

.poetry-note {
  background: linear-gradient(180deg, #fffdf8, #f7eee0);
  border: 1.5px dashed #d3b89c;
  border-radius: 14px;
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--shadow-card);
  position: relative;
  transform: translateY(var(--oy, 0px)) rotate(var(--tilt, -2.1deg));
}

.poetry-note-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
}

.poetry-note-verse {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(0.92rem, 1.25vw, 1.06rem);
  line-height: 1.55;
  color: var(--ink);
}

.poetry-note-sign {
  margin: 10px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.layout--poetry-constellation .sheet-card {
  height: min(90%, clamp(290px, 48dvh, 480px));
}

.layout--poetry-constellation .const-spotlight {
  height: min(98%, clamp(340px, 55dvh, 550px));
  box-shadow: 0 22px 44px rgb(43 26 20 / 0.22);
}

.layout--poetry-constellation .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Slide 15: Chia đôi bất đối xứng (Ghi chú + spotlight trái, cặp thơ phải) */
.layout--poetry-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.48fr);
  gap: clamp(14px, 2vw, 24px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.poetry-spotlight-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vh, 16px);
  min-height: 0;
}

.poetry-banner {
  background: linear-gradient(135deg, #f7fbf4, #ebf3e6);
  border: 1.5px solid #c3d5bc;
  border-radius: 13px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgb(34 52 38 / 0.1);
  transform: rotate(var(--tilt, -1.4deg));
}

.poetry-banner-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2f5b3a;
}

.poetry-banner p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
}

.poetry-featured-card {
  height: 100%;
  min-height: 0;
}

.poetry-twin-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 0;
  align-items: center;
}

.poetry-twin-col .sheet-card {
  height: min(94%, clamp(300px, 50dvh, 500px));
}

.poetry-spotlight-col .sheet-media,
.poetry-twin-col .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Slide 16: Tạp chí báo tường (Poster cao trái + ghi chú & 2 trang phải) */
.layout--newspaper-trio {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.48fr);
  gap: clamp(14px, 2vw, 24px);
  flex: 1;
  min-height: 0;
  padding: 4px 2px 12px;
  align-items: center;
}

.news-poster {
  height: calc(100% - 12px);
  min-height: 0;
}

.news-right-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vh, 16px);
  height: calc(100% - 8px);
  min-height: 0;
}

.zine-callout {
  background: linear-gradient(135deg, #fff9f0, #fdecd8);
  border: 1.5px solid #e7c6a5;
  border-radius: 13px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgb(68 38 18 / 0.1);
  transform: rotate(var(--tilt, 0.9deg));
}

.zine-chip {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
}

.zine-callout p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
}

.news-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 0;
  align-items: stretch;
}

.news-pair .sheet-card {
  height: 100%;
  min-height: 0;
}

.news-poster .sheet-media,
.news-pair .sheet-media {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

@media (max-width: 1040px) {
  .layout--poetry-constellation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poetry-note {
    grid-column: 1 / -1;
    transform: rotate(-0.6deg);
  }
}

@media (max-width: 899px) {
  .layout--chalk-showcase,
  .layout--letter-scatter,
  .layout--craft-mosaic,
  .auto-gallery--cinema,
  .layout--gallery-tribute,
  .layout--music-stage,
  .layout--magazine-right,
  .layout--poetry-constellation,
  .layout--poetry-split,
  .layout--newspaper-trio {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    flex: 0 0 auto;
    gap: 14px;
    padding: 0;
  }

  .chalk-main-col,
  .editorial-left-col,
  .craft-left-col {
    height: auto;
    grid-template-rows: auto;
  }

  .editorial-hero-card,
  .craft-hero,
  .craft-wide-card,
  .craft-scatter-grid {
    height: auto;
  }

  .craft-scatter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .craft-scatter-grid .sheet-card {
    width: 100%;
    height: auto;
  }

  .auto-stage-media {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .auto-stage-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .auto-thumbs--12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
  }

  .auto-thumbs--12 .auto-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .auto-thumbs--4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-block: 0;
  }

  .auto-thumb--card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 6px;
    min-height: 58px;
  }

  .auto-thumb--card img {
    width: 56px;
    height: 44px;
  }

  .layout--gallery-tribute .sheet-card,
  .music-side-pair .sheet-card,
  .poetry-twin-col .sheet-card,
  .layout--poetry-constellation .sheet-card,
  .layout--poetry-constellation .const-spotlight,
  .music-lead,
  .mag-right-hero,
  .poetry-featured-card,
  .news-poster,
  .news-right-col {
    height: auto;
  }

  .editorial-hero-card .sheet-media--tall,
  .craft-left-col .sheet-media,
  .craft-scatter-grid .sheet-media,
  .layout--gallery-tribute .sheet-media,
  .layout--music-stage .sheet-media,
  .layout--magazine-right .sheet-media,
  .layout--poetry-constellation .sheet-media,
  .layout--poetry-split .sheet-media,
  .layout--newspaper-trio .sheet-media {
    aspect-ratio: 4 / 3;
    min-height: 180px;
  }

  .story-plaque,
  .music-pull-note,
  .poetry-note,
  .poetry-banner,
  .zine-callout,
  .editorial-dedication {
    transform: none;
  }
}

@media (max-width: 520px) {
  .auto-thumbs--12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .craft-scatter-grid,
  .auto-thumbs--4,
  .music-side-pair,
  .mag-left-pair,
  .poetry-twin-col,
  .news-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
