/* Local preview: real film scenes and illustrative personalization examples. */
.home-page.kino-home main > .personalization-gallery {
  --n-ink: #f5e3c6;
  --n-gold: #dfb77d;
  --pg-night: #15283d;
  --pg-gold: #e0bd88;
  --pg-paper: #fffdf8;
  --pg-ink: #203449;
  --pg-gap: 24px;
  background: var(--pg-night);
  color: #fff5e4;
  padding: 79px 0 39px;
  overflow: hidden;
}
.personalization-gallery,
.personalization-gallery * { box-sizing: border-box; }
.personalization-gallery [hidden] { display: none !important; }
.pg-container { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.pg-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 35px; }
.pg-eyebrow { margin: 0 0 17px; color: var(--pg-gold); font-size: 11px; font-weight: 750; line-height: 1.6; letter-spacing: .13em; }
.pg-heading h2 { margin: 0; color: #f5e3c6; font: 450 clamp(36px, 3.8vw, 52px)/1.12 Fraunces, Georgia, serif; letter-spacing: -.045em; }
.pg-heading h2 em { color: #dfb77d; font-weight: 450; }
.pg-heading-aside { max-width: 360px; padding-bottom: 4px; }
.pg-heading-aside > p { color: #c6cfd7; margin: 0; font-size: 14px; line-height: 1.8; }
.pg-gesture-hint { display: flex; gap: 9px; align-items: center; color: var(--pg-gold); font-size: 11px; font-weight: 650; line-height: 1.6; margin-top: 22px; }
.pg-gesture-hint svg { width: 23px; height: 23px; flex-shrink: 0; }
.pg-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--pg-gap) * 2) / 3);
  gap: var(--pg-gap);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #718193 #15283d;
  -webkit-overflow-scrolling: touch;
}
.pg-track::-webkit-scrollbar { height: 3px; }
.pg-track::-webkit-scrollbar-track { background: #52647845; }
.pg-track::-webkit-scrollbar-thumb { background: #9da7af; border-radius: 4px; }
.pg-track:focus-visible { outline: 2px solid #f1ce93; outline-offset: 7px; border-radius: 4px; }
.pg-item { scroll-snap-align: start; min-width: 0; }
.pg-card { height: 100%; background: var(--pg-paper); border-radius: 17px; overflow: hidden; color: var(--pg-ink); display: flex; flex-direction: column; isolation: isolate; }
.pg-scene { position: relative; aspect-ratio: 16 / 10; flex-shrink: 0; background: #344352; overflow: hidden; }
.pg-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#14223865, transparent 40%, transparent 70%, #15283d33); }
.pg-scene > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .16s ease; }
.pg-scene-label { position: absolute; z-index: 1; top: 15px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border: 1px solid #ffffff4a; border-radius: 24px; background: #15283dc9; color: #fff8eb; font-size: 10px; font-weight: 650; line-height: 1.4; backdrop-filter: blur(7px); }
.pg-scene-label > span { display: inline-flex; justify-content: center; align-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid #e1bb8555; border-radius: 50%; color: #ecd0a6; font-size: 10px; font-weight: 600; }
.pg-scene-note { position: absolute; z-index: 1; bottom: 45px; left: 18px; display: inline-flex; align-items: center; gap: 7px; color: #fff8e9; background: #15283dd9; border: 1px solid #fff3d94a; border-radius: 20px; padding: 7px 11px; font-size: 10px; font-weight: 650; }
.pg-scene-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.pg-speech { position: relative; z-index: 2; margin: -25px 19px 0; padding: 14px 16px 15px; background: #f8ebd6; border: 1px solid #e4cfac; border-radius: 3px 14px 14px 14px; box-shadow: 0 4px 12px #24354709; }
.pg-speech::before { content: ""; position: absolute; width: 12px; height: 12px; left: 20px; top: -7px; background: #f8ebd6; border-top: 1px solid #e4cfac; border-left: 1px solid #e4cfac; transform: rotate(45deg); }
.pg-speech-label { display: block; color: #876746; font-size: 8px; font-weight: 750; letter-spacing: .025em; line-height: 1.55; }
.pg-speech-label > span { padding-inline: 3px; }
.pg-speech > p { margin: 6px 0 0; color: #3a4652; font: 500 19px/1.32 Fraunces, Georgia, serif; letter-spacing: -.02em; }
.pg-card-copy { display: flex; flex-direction: column; flex: 1; padding: 23px 25px 26px; }
.pg-card-copy h3 { margin: 0 0 11px; color: var(--pg-ink); font: 500 25px/1.17 Fraunces, Georgia, serif; letter-spacing: -.035em; }
.pg-card-copy > p { color: #62707d; font-size: 12px; line-height: 1.85; margin: 0; }
.pg-hobby-controls { display: flex; flex-wrap: wrap; gap: 5px; margin: 17px 0 0; padding-top: 14px; border-top: 1px solid #20344914; }
.personalization-gallery .pg-hobby-controls button { border: 1px solid #c5cbd0; border-radius: 18px; background: transparent; color: #506072; padding: 7px 9px; min-height: 35px; font-family: inherit; font-size: 10px; font-weight: 650; line-height: 1.3; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.personalization-gallery .pg-hobby-controls button:hover { border-color: #a16f52; background: #f8edda; }
.personalization-gallery .pg-hobby-controls button[aria-pressed="true"] { color: #fff8ed; background: #8e3441; border-color: #8e3441; }
.pg-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 13px; }
.pg-example-note { color: #aab8c7; margin: 0; font-size: 10px; line-height: 1.75; }
.pg-navigation { display: flex; align-items: center; gap: 22px; }
.personalization-gallery .pg-autoplay { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 10px 12px; border: 1px solid #ddc19178; border-radius: 24px; background: transparent; color: #f2d8ae; font-family: inherit; font-size: 10px; font-weight: 650; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.personalization-gallery .pg-autoplay:hover:not(:disabled) { background: #f3ddba; border-color: #f3ddba; color: #15283d; }
.personalization-gallery .pg-autoplay:disabled { color: #667b90; border-color: #a0b0c02e; cursor: default; }
.pg-autoplay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pg-counter { display: flex; align-items: baseline; gap: 8px; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-counter strong { color: #f3ddba; font-size: 13px; font-weight: 650; }
.pg-counter > span { color: #93a2b3; font-size: 11px; }
.pg-arrows { display: flex; gap: 9px; }
.personalization-gallery .pg-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ddc19178; border-radius: 50%; background: transparent; color: #f2d8ae; padding: 0; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.pg-arrows svg { width: 22px; height: 22px; }
.pg-arrows [data-pg-prev] svg { transform: rotate(180deg); }
.personalization-gallery .pg-arrows button:hover:not(:disabled) { background: #f3ddba; border-color: #f3ddba; color: #15283d; }
.personalization-gallery .pg-arrows button:disabled { border-color: #a0b0c02e; color: #667b90; cursor: default; }
.personalization-gallery button:focus-visible { outline: 3px solid #e6bd81; outline-offset: 4px; }
.pg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) {
  .pg-container { width: min(1320px, calc(100% - 100px)); }
  .pg-heading h2 { font-size: 56px; }
  .pg-card-copy h3 { font-size: 27px; }
  .pg-card-copy > p { font-size: 13px; }
}
@media (max-width: 1100px) {
  .personalization-gallery { --pg-gap: 18px; }
  .pg-container { width: calc(100% - 60px); }
  .pg-heading { gap: 30px; }
  .pg-heading-aside { max-width: 295px; }
  .pg-heading-aside > p { font-size: 12px; }
  .pg-card-copy { padding: 21px 20px 24px; }
  .pg-card-copy h3 { font-size: 22px; }
  .pg-speech { margin-inline: 14px; padding: 13px 13px 14px; }
  .pg-speech > p { font-size: 17px; }
  .pg-scene-label { left: 12px; top: 12px; font-size: 9px; gap: 6px; }
  .pg-scene-label > span { width: 20px; height: 20px; font-size: 9px; }
}
@media (max-width: 900px) {
  .personalization-gallery { padding-top: 61px; }
  .pg-track { grid-auto-columns: calc((100% - var(--pg-gap)) / 2); }
  .pg-heading h2 { font-size: 39px; }
  .pg-heading-aside { max-width: 260px; }
  .pg-heading-aside > p > br { display: none; }
  .pg-gesture-hint { max-width: 230px; margin-top: 14px; font-size: 10px; }
  .pg-card-copy h3 { font-size: 25px; }
  .pg-speech > p { font-size: 19px; }
}
@media (max-width: 650px) {
  .personalization-gallery { --pg-gap: 14px; padding: 49px 0 29px; }
  .pg-container { width: calc(100% - 36px); }
  .pg-heading { display: block; margin-bottom: 26px; }
  .pg-eyebrow { font-size: 9px; letter-spacing: .11em; margin-bottom: 14px; }
  .pg-heading h2 { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.15; }
  .pg-heading-aside { max-width: 310px; padding: 0; margin-top: 18px; }
  .pg-heading-aside > p { font-size: 12px; line-height: 1.85; }
  .pg-heading-aside > p > br { display: block; }
  .pg-gesture-hint { max-width: none; font-size: 10px; margin-top: 15px; }
  .pg-gesture-hint svg { width: 21px; height: 21px; }
  .pg-track { width: calc(100% + 18px); grid-auto-columns: calc(100% - 42px); padding: 0 18px 15px 0; scroll-padding-right: 18px; }
  .pg-card { border-radius: 14px; height: auto; }
  .pg-scene { aspect-ratio: 16 / 10; }
  .pg-scene-label { left: 13px; top: 13px; font-size: 9px; }
  .pg-speech { margin: -20px 14px 0; padding: 13px 14px 14px; }
  .pg-speech-label { font-size: 7.6px; }
  .pg-speech > p { font-size: 19px; }
  .pg-card-copy { padding: 21px 21px 24px; }
  .pg-card-copy h3 { font-size: 25px; }
  .pg-card-copy > p { font-size: 12px; line-height: 1.85; }
  .personalization-gallery .pg-hobby-controls button { padding: 8px 9px; min-height: 36px; }
  .pg-footer { gap: 17px; padding-top: 13px; align-items: flex-end; }
  .pg-example-note { font-size: 8px; line-height: 1.8; max-width: 185px; }
  .pg-navigation { flex-direction: column; align-items: flex-end; gap: 9px; }
  .pg-counter { gap: 6px; font-size: 10px; }
  .pg-counter strong { font-size: 12px; }
  .pg-counter > span { font-size: 10px; }
  .pg-arrows { gap: 7px; }
  .personalization-gallery .pg-arrows button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .personalization-gallery *, .personalization-gallery *::before, .personalization-gallery *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
