:root {
  --slide-w: 1600;
  --slide-h: 1142;
  --deck-scale: 1;
  --blue: #003b8f;
  --ink: #181818;
  --font-news: "RS News Sans", Arial, Helvetica, sans-serif;
  --font-zh: "Microsoft Ya Hei", "Microsoft YaHei", "Microsoft Yahei", Arial, sans-serif;
}

@font-face {
  font-family: "RS News Sans";
  src: url("assets/fonts/RS_NEWS_Sans_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "RS News Sans";
  src: url("assets/fonts/RS_NEWS_Sans_Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "RS News Sans";
  src: url("assets/fonts/RS_NEWS_Sans_DemiBold.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "RS News Sans";
  src: url("assets/fonts/RS_NEWS_Sans_Medium_Italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "Microsoft Ya Hei";
  src: url("assets/fonts/MicrosoftYaHei.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Microsoft Ya Hei";
  src: url("assets/fonts/MicrosoftYaHei-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2f2f2;
  color: var(--ink);
  font-family: var(--font-news);
}

.deck {
  width: 1600px;
  height: 1142px;
  flex: 0 0 auto;
  background: #fff;
  overflow: hidden;
  position: relative;
  transform: scale(var(--deck-scale));
  transform-origin: center center;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
}

.caption-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 17.05%;
  padding: 3.2% 3.05% 4.5% 3.12%;
  z-index: 3;
}

.logo {
  display: block;
  width: 114px;
  height: auto;
}

.caption-stack {
  position: absolute;
  inset: 0;
}

.caption-block {
  position: absolute;
  left: 18.3%;
  right: 17%;
  top: var(--caption-top);
  height: var(--caption-height);
  font-family: var(--font-news);
  font-size: 16.3px;
  line-height: 1.08;
  font-weight: 400;
}

.caption-fit {
  transform-origin: 0 0;
}

.caption-block[lang="zh"] {
  font-family: var(--font-zh);
  line-height: 1.22;
}

.caption-block p {
  margin: 0;
}

.caption-block .lead,
.caption-block .place {
  font-weight: 800;
}

.caption-block .place,
.caption-block .credit {
  margin-top: 1.3em;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 11.8px;
  padding: 0 0.45em;
  margin-bottom: 1em;
  border: 1px solid #8d8d8d;
  border-radius: 999px;
  color: #5e5e5e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.56em;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.media-stage {
  position: absolute;
  left: 17.05%;
  top: 5.05%;
  width: 82.95%;
  height: 90.05%;
  overflow: hidden;
  background: #ddd;
}

.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity 220ms ease;
}

.media-video {
  opacity: 0;
}

.slide[data-state="alive"] .media-poster {
  opacity: 0;
}

.slide[data-state="alive"] .media-video {
  opacity: 1;
}

h1 {
  position: absolute;
  left: -0.18%;
  bottom: -1.15%;
  margin: 0;
  max-width: 78%;
  color: #fff;
  font-family: var(--font-news);
  font-size: 65.6px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  z-index: 2;
}

h1:empty {
  display: none;
}

.bottom-panel {
  display: none;
}

.slide[data-layout="bottom"] .caption-panel {
  display: none;
}

.slide[data-layout="bottom"] .media-stage {
  left: 3.55%;
  top: 0;
  width: 92.9%;
  height: 75.1%;
}

.slide[data-layout="bottom"] .bottom-panel {
  position: absolute;
  left: 3.55%;
  right: 3.55%;
  bottom: 7.2%;
  display: block;
  height: 15.9%;
  z-index: 3;
}

.bottom-captions {
  display: grid;
  grid-template-columns: 25.5% 25.5% 25.5%;
  column-gap: 2.3%;
  align-items: start;
}

.bottom-captions .caption-block {
  position: static;
  height: 170px;
  font-size: 16.3px;
}

.bottom-captions .caption-block .place,
.bottom-captions .caption-block .credit {
  margin-top: 1.25em;
}

.bottom-logo {
  position: absolute;
  right: 0;
  top: 13%;
  width: 114px;
}

.nav-controls {
  position: absolute;
  right: 2.05%;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 16px;
  z-index: 5;
}

.nav-button {
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #111;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: background 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.prev-button {
  background: rgba(255, 255, 255, 0.64);
  opacity: 0.88;
}

.nav-button svg {
  width: 47%;
  height: 47%;
  fill: currentColor;
}

.nav-button:active {
  transform: scale(0.96);
}

.nav-button:focus-visible {
  outline: 2px solid rgba(0, 59, 143, 0.7);
  outline-offset: 4px;
}

@media (orientation: portrait) {
  body {
    background: #fff;
  }
}
