/* PSM Verhaal-diashow — standalone promotie-speler */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=Montserrat:wght@300;600;700&display=swap');

.psm-story-loading,
.psm-story-empty {
  margin: 2rem auto;
  max-width: 32rem;
  text-align: center;
  color: #6b6b67;
  font-size: 0.95rem;
}

.psm-story-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  position: relative;
}

.psm-story-player.is-embed {
  max-width: none;
  padding: 0;
  min-height: 100dvh;
  background: #0b0d12;
}

/* iOS/fallback fullscreen: echte native FS ontbreekt vaak op iPhone */
.psm-story-player.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  max-width: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  gap: 0;
  background: #000;
}
.psm-story-player.is-immersive .psm-story-stage {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
/* Tijdens afspelen: geen chrome over captions — tik op beeld = pauze */
.psm-story-player.is-immersive .psm-story-chrome {
  display: none !important;
}
.psm-story-player.is-immersive .psm-story-head,
.psm-story-player.is-immersive .psm-story-share,
.psm-story-player.is-immersive .psm-story-preview-note {
  display: none !important;
}

html.psm-story-immersive,
html.psm-story-immersive body {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
}

.psm-story-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.psm-story-player.is-embed .psm-story-stage {
  border-radius: 0;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 70dvh;
}

/* Editor device-preview: echte viewport-verhouding (wordt daarna geschaald) */
.psm-story-player.is-preview {
  min-height: 0;
  height: 100%;
  width: 100%;
  gap: 0;
  background: #0b0d12;
}
.psm-story-player.is-preview .psm-story-chrome,
.psm-story-player.is-preview .psm-story-head,
.psm-story-player.is-preview .psm-story-preview-note {
  display: none !important;
}
.psm-story-player.is-preview.is-device-landscape .psm-story-stage {
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.psm-story-player.is-preview.is-device-portrait .psm-story-stage {
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

/* Typografie t.o.v. device-frame (niet browser-vw), zodat scale() WYSIWYG blijft */
.psm-story-player.is-preview .psm-story-card {
  padding: clamp(1.5rem, 5cqw, 3.5rem);
}
.psm-story-player.is-preview .psm-story-card-title {
  font-size: clamp(2.35rem, 7cqw, 3.75rem);
}
.psm-story-player.is-preview .psm-story-card-sub {
  font-size: clamp(1rem, 2.2cqw, 1.2rem);
}
.psm-story-player.is-preview .psm-story-card-eyebrow {
  font-size: 0.75rem;
}
.psm-story-player.is-preview .psm-story-caption {
  font-size: clamp(1.85rem, 5cqw, 2.85rem);
  padding: 2.75rem 1.5rem 1.25rem;
}
.psm-story-player.is-preview .psm-story-caption p + p,
.psm-story-player.is-preview .psm-story-caption .psm-story-caption-sub {
  font-size: clamp(1rem, 2.2cqw, 1.2rem);
}
.psm-story-player.is-preview .psm-story-card-logo {
  width: clamp(4.5rem, 14cqw, 7rem);
  height: clamp(4.5rem, 14cqw, 7rem);
}

.psm-story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease, clip-path 0.7s ease;
}
.psm-story-img.is-active {
  z-index: 1;
}
.psm-story-img.is-outgoing {
  z-index: 1;
}
.psm-story-img.is-incoming {
  z-index: 2;
}
.psm-story-img.is-spare[hidden] {
  display: none !important;
}

.psm-story-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.35) 0%, rgba(10, 14, 24, 0.15) 35%, rgba(10, 14, 24, 0.55) 100%),
    linear-gradient(135deg, rgba(26, 45, 90, 0.55) 0%, rgba(10, 14, 24, 0.35) 50%, rgba(232, 130, 10, 0.22) 100%);
}

.psm-story-card[hidden] {
  display: none !important;
}

.psm-story-card-inner {
  max-width: min(42rem, 100%);
  width: 100%;
  text-align: left;
  color: #fff;
  animation: psm-story-card-in 0.7s ease both;
}

.psm-story-card-logo {
  display: block;
  width: auto;
  height: clamp(4.5rem, 14vw, 7.5rem);
  margin: 0 0 1.35rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
  animation: psm-story-logo-in 0.85s ease both;
}

.psm-story-card-logo[hidden] {
  display: none !important;
}

.psm-story-card.is-outro .psm-story-card-logo {
  margin-left: auto;
  margin-right: auto;
  height: clamp(5.25rem, 16vw, 8.5rem);
}

@keyframes psm-story-logo-in {
  from { opacity: 0; transform: scale(0.88) translateY(0.5rem); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes psm-story-card-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Zelfde hiërarchie als page-eyebrow / page-heading (H1) op de site */
.psm-story-card-eyebrow {
  margin: 0 0 1rem;
  color: #e8820a;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.psm-story-card-title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.psm-story-card-title strong {
  font-weight: 700;
  color: #fff;
}

[data-psm-site="eurofly"] .psm-story-card-title,
[data-psm-site="eurofly"] .psm-story-title {
  font-family: 'Montserrat', 'DM Sans', system-ui, sans-serif;
}

.psm-story-card-sub {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.psm-story-card-sub p {
  margin: 0 0 0.4em;
}
.psm-story-card-sub p:last-child {
  margin-bottom: 0;
}
.psm-story-card-sub strong,
.psm-story-card-sub b {
  font-weight: 700;
  color: #fff;
}

.psm-story-card-info {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.psm-story-card-info li {
  margin: 0.35rem 0;
  padding-left: 0;
}

.psm-story-card-info li::before {
  content: '·';
  color: #e8820a;
  font-weight: 700;
  margin-right: 0.55rem;
}

.psm-story-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
  padding: 0.9rem 1.6rem;
  background: #e8820a;
  color: #fff !important;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(232, 130, 10, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* display:inline-flex mag [hidden] niet overrulen (anders “lege” knoppen op intro) */
.psm-story-card-cta[hidden] {
  display: none !important;
}

.psm-story-card-cta:hover {
  background: #c96f08;
  transform: translateY(-1px);
}

.psm-story-card-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  align-items: center;
}

.psm-story-card-ctas .psm-story-card-cta {
  margin-top: 0;
}

.psm-story-card-cta.is-secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.psm-story-card-cta.is-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.psm-story-card.is-outro .psm-story-card-inner {
  text-align: center;
  margin-inline: auto;
}

.psm-story-card.is-outro .psm-story-card-sub {
  margin-inline: auto;
}

.psm-story-card.is-outro .psm-story-card-ctas {
  justify-content: center;
}

/* Fotodia-captions — zelfde typografie als intro/outro (page-heading) */
.psm-story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(8, 12, 22, 0.9) 0%, rgba(8, 12, 22, 0.55) 55%, transparent 100%);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

[data-psm-site="eurofly"] .psm-story-caption {
  font-family: 'Montserrat', 'DM Sans', system-ui, sans-serif;
}

.psm-story-caption[hidden] {
  display: none !important;
}

.psm-story-caption p {
  margin: 0 0 0.55em;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.psm-story-caption p:last-child {
  margin-bottom: 0;
}
.psm-story-caption p + p,
.psm-story-caption .psm-story-caption-sub {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.psm-story-caption .psm-story-caption-heading {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}
.psm-story-caption a {
  color: #ffd39a;
  text-decoration: underline;
  pointer-events: auto;
}
.psm-story-caption strong,
.psm-story-caption b {
  font-weight: 700;
  color: #fff;
}

.psm-story-head {
  text-align: center;
}

.psm-story-title {
  margin: 0 0 0.4rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1a2d5a;
}

.psm-story-title strong {
  font-weight: 700;
}

.psm-story-intro {
  margin: 0;
  color: #6b6b67;
  font-size: 0.95rem;
  line-height: 1.5;
}

.psm-story-controls,
.psm-story-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.psm-story-btn {
  height: 36px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #1a1a18;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.psm-story-btn.primary {
  background: #1a2d5a;
  border-color: #1a2d5a;
  color: #fff;
  font-weight: 600;
}

.psm-story-player.is-embed .psm-story-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.psm-story-player.is-embed .psm-story-btn.primary {
  background: #e8820a;
  border-color: #e8820a;
  color: #fff;
}

.psm-story-progress {
  font-size: 0.8125rem;
  color: #6b6b67;
  margin-left: 0.25rem;
}

.psm-story-player.is-embed .psm-story-progress,
.psm-story-player.is-embed .psm-story-share-label {
  color: rgba(255, 255, 255, 0.7);
}

.psm-story-share {
  margin-top: 0.25rem;
}

.psm-story-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6b67;
}

.psm-story-share-input {
  flex: 1 1 220px;
  min-width: 180px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8125rem;
  background: #f7f8fa;
}

.psm-story-player.is-embed .psm-story-share-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.psm-story-player.is-embed .psm-story-chrome {
  padding: 0.75rem 1rem 1rem;
}

.psm-story-flash {
  text-align: center;
  font-size: 0.8125rem;
  color: #1a2d5a;
  font-weight: 600;
}

.psm-story-preview-note {
  text-align: center;
  font-size: 0.8125rem;
  color: #c8cdd8;
  margin: 0.5rem 0 0;
}

.psm-story-player.is-embed .psm-story-flash {
  color: #ffd39a;
}

/* Overgangen */
.psm-story-img.psm-story-tx-out.psm-story-tx-fade,
.psm-story-img.psm-story-tx-out.psm-story-tx-dissolve,
.psm-story-img.psm-story-tx-out.psm-story-tx-blur,
.psm-story-img.psm-story-tx-out.psm-story-tx-flash { opacity: 0; }
.psm-story-img.psm-story-tx-out.psm-story-tx-dissolve { filter: blur(8px); }
.psm-story-img.psm-story-tx-out.psm-story-tx-blur { filter: blur(18px); transform: scale(1.04); }
.psm-story-img.psm-story-tx-out.psm-story-tx-zoom { opacity: 0; transform: scale(1.12); }
.psm-story-img.psm-story-tx-out.psm-story-tx-zoom-out { opacity: 0; transform: scale(0.88); }
.psm-story-img.psm-story-tx-out.psm-story-tx-slide { opacity: 0; transform: translateX(-8%); }
.psm-story-img.psm-story-tx-out.psm-story-tx-slide-up { opacity: 0; transform: translateY(-10%); }
.psm-story-img.psm-story-tx-out.psm-story-tx-slide-down { opacity: 0; transform: translateY(10%); }
.psm-story-img.psm-story-tx-out.psm-story-tx-wipe { clip-path: inset(0 100% 0 0); opacity: 1; }
.psm-story-img.psm-story-tx-out.psm-story-tx-pan,
.psm-story-img.psm-story-tx-out.psm-story-tx-kenburns { opacity: 0; }

.psm-story-img.psm-story-tx-in.psm-story-tx-fade,
.psm-story-img.psm-story-tx-in.psm-story-tx-kenburns,
.psm-story-img.psm-story-tx-in.psm-story-tx-pan { animation: psm-promo-fade-in 0.75s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-dissolve { animation: psm-promo-dissolve-in 0.85s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-blur { animation: psm-promo-blur-in 0.9s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-zoom { animation: psm-promo-zoom-in 0.8s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-zoom-out { animation: psm-promo-zoom-out-in 0.8s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-slide { animation: psm-promo-slide-in 0.75s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-slide-up { animation: psm-promo-slide-up-in 0.75s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-slide-down { animation: psm-promo-slide-down-in 0.75s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-wipe { animation: psm-promo-wipe-in 0.8s ease both; }
.psm-story-img.psm-story-tx-in.psm-story-tx-flash { animation: psm-promo-flash-in 0.7s ease both; }

@keyframes psm-promo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes psm-promo-dissolve-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@keyframes psm-promo-blur-in { from { opacity: 0; filter: blur(22px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes psm-promo-zoom-in { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }
@keyframes psm-promo-zoom-out-in { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
@keyframes psm-promo-slide-in { from { opacity: 0; transform: translateX(10%); } to { opacity: 1; transform: translateX(0); } }
@keyframes psm-promo-slide-up-in { from { opacity: 0; transform: translateY(12%); } to { opacity: 1; transform: translateY(0); } }
@keyframes psm-promo-slide-down-in { from { opacity: 0; transform: translateY(-12%); } to { opacity: 1; transform: translateY(0); } }
@keyframes psm-promo-wipe-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes psm-promo-flash-in {
  0% { opacity: 0; filter: brightness(2.2); }
  35% { opacity: 1; filter: brightness(1.6); }
  100% { opacity: 1; filter: brightness(1); }
}
@keyframes psm-promo-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes psm-promo-pan { from { transform: scale(1.12) translateX(-3%); } to { transform: scale(1.12) translateX(3%); } }

.psm-story-img.psm-story-kenburns {
  animation: psm-promo-kenburns 8s ease-out forwards;
  transform-origin: center center;
}

.psm-story-img.psm-story-pan {
  animation: psm-promo-pan 9s ease-in-out forwards;
  transform-origin: center center;
}

html.psm-story-embed body {
  margin: 0;
  background: #0b0d12;
}

@media (max-width: 640px) {
  .psm-story-card-title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }
  .psm-story-card-inner {
    text-align: center;
  }
  .psm-story-card-sub {
    margin-inline: auto;
  }
  .psm-story-card-cta {
    margin-inline: auto;
  }
}
