:root {
  --bg: #0b0f14;
  --panel: #1f2937;
  --panel-2: #273244;
  --red: #c1121f;
  --red-2: #d90429;
  --text: #ffffff;
  --muted: #d1d5db;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.48);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

@supports (height: 100dvh) {
  html,
  body {
    height: 100dvh;
  }
}

body {
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
}

button {
  min-width: 160px;
  min-height: 88px;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 11, 17, 0.98) 0%, rgba(10, 14, 20, 0.82) 48%, rgba(10, 14, 20, 0.42) 100%),
    url("assets/img/modele/star266.jpg") center right / cover no-repeat,
    var(--bg);
}

@supports (height: 100dvh) {
  .app {
    height: 100dvh;
  }
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 120px);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(22px, 2.4vw, 46px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .screen {
    min-height: 100dvh;
  }
}

.screen.active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 28px);
}

.main-top,
.section-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 30px);
  color: var(--muted);
  font-size: clamp(24px, 2.2vw, 42px);
  font-weight: 900;
}

.brand img {
  width: clamp(72px, 6vw, 112px);
  height: clamp(72px, 6vw, 112px);
  object-fit: contain;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.fullscreen-button {
  align-self: flex-start;
  min-width: clamp(230px, 18vw, 320px);
  min-height: clamp(82px, 7.4vh, 112px);
  margin-top: 0;
  background: var(--red);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  font-size: clamp(23px, 1.7vw, 34px);
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 1250px;
  margin-top: 0;
}

.hero-title p,
.eyebrow {
  margin: 0 0 18px;
  color: var(--red-2);
  font-size: clamp(20px, 1.55vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: clamp(56px, 6.2vw, 118px);
  font-weight: 900;
  line-height: 0.92;
}

.main-tile-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 32px);
  width: min(1500px, 96vw);
  height: 100%;
  margin-top: 0;
  align-self: end;
}

.main-tile,
.model-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.main-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 0;
  height: 100%;
  padding: clamp(20px, 1.9vw, 36px);
  background: rgba(31, 41, 55, 0.92);
}

.main-tile.featured-video {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(217, 4, 41, 0.95), rgba(193, 18, 31, 0.72) 38%, rgba(31, 41, 55, 0.92)),
    var(--panel);
  border-color: rgba(255, 255, 255, 0.22);
}

.main-tile.featured-video::before {
  width: 18px;
  background: #ffffff;
}

.main-tile.featured-video::after {
  content: "▶";
  position: absolute;
  right: clamp(34px, 3vw, 58px);
  bottom: clamp(28px, 2.3vw, 46px);
  display: grid;
  place-items: center;
  width: clamp(76px, 5.5vw, 116px);
  height: clamp(76px, 5.5vw, 116px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: clamp(34px, 2.7vw, 58px);
  line-height: 1;
}

.main-tile::before,
.model-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 100%;
  background: var(--red);
}

.main-tile span {
  position: absolute;
  right: clamp(20px, 1.8vw, 30px);
  top: clamp(18px, 1.6vw, 26px);
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(30px, 2.7vw, 56px);
}

.main-tile strong {
  padding-left: clamp(20px, 1.8vw, 28px);
  font-size: clamp(30px, 2.55vw, 52px);
  line-height: 1;
}

.main-tile small {
  display: block;
  max-width: 64%;
  margin: 16px 0 0;
  padding-left: clamp(20px, 1.8vw, 28px);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.2vw, 26px);
  font-weight: 900;
  line-height: 1.1;
}

.models-menu,
.school-menu,
.trail-menu,
.creators-menu,
.videos-menu {
  gap: clamp(20px, 2vw, 34px);
  background: rgba(11, 15, 20, 0.84);
}

.section-header {
  flex: 0 0 auto;
  align-items: center;
}

.section-header > div {
  min-width: 0;
}

.eyebrow {
  font-size: clamp(18px, 1.25vw, 26px);
  margin-bottom: 10px;
}

h2 {
  color: var(--text);
  font-size: clamp(44px, 4.2vw, 84px);
  font-weight: 900;
  line-height: 0.96;
}

.intro {
  max-width: 1180px;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(22px, 1.55vw, 32px);
  font-weight: 800;
  line-height: 1.22;
}

.header-button {
  flex: 0 0 auto;
  min-width: 290px;
  min-height: 88px;
  padding: 0 28px;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  font-size: clamp(18px, 1.2vw, 25px);
}

.header-button.neutral {
  background: var(--panel);
}

.model-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
  min-height: 0;
  flex: 1;
}

.creator-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
  min-height: 0;
  flex: 1;
}

.creator-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #05070b;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.creator-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 100%;
  background: var(--red);
}

.creator-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #070a0f;
}

.creator-tile strong {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 14px 18px 14px 32px;
  background: rgba(11, 15, 20, 0.97);
  border-top: 5px solid var(--red);
  color: var(--text);
  font-size: clamp(18px, 1.22vw, 27px);
  line-height: 1.06;
}

.video-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
  min-height: 0;
  flex: 1;
}

.videos-menu {
  background:
    linear-gradient(135deg, rgba(193, 18, 31, 0.22), rgba(11, 15, 20, 0.86) 42%),
    rgba(11, 15, 20, 0.84);
}

.trail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
  min-height: 0;
  flex: 1;
}

.school-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 1.2vw, 22px);
  min-height: 0;
  flex: 1;
}

.school-slide {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(360px, 38fr);
  gap: clamp(16px, 1.6vw, 30px);
  min-height: 0;
}

.school-slide.no-media {
  grid-template-columns: 1fr;
}

.school-slide.no-media .school-copy {
  justify-content: center;
  padding: clamp(34px, 3vw, 64px);
  background:
    linear-gradient(90deg, rgba(193, 18, 31, 0.18), rgba(31, 41, 55, 0.94) 34%),
    rgba(31, 41, 55, 0.94);
}

.school-slide.no-media .school-copy::before {
  content: "";
  width: clamp(90px, 7vw, 150px);
  height: 10px;
  margin-bottom: clamp(22px, 2vw, 36px);
  background: var(--red);
  border-radius: 999px;
}

.school-slide.text-slide .school-copy h3 {
  max-width: 1180px;
  font-size: clamp(54px, 5vw, 104px);
}

.school-slide.text-slide #schoolSlideText {
  max-width: 1420px;
  font-size: clamp(28px, 2vw, 42px);
}

.school-slide.text-slide .school-facts li {
  font-size: clamp(24px, 1.6vw, 34px);
}

.school-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(5, 7, 11, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.school-media.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #05070b;
}

.school-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 1.7vw, 34px);
  background: rgba(31, 41, 55, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.school-copy h3 {
  color: var(--text);
  font-size: clamp(40px, 3.5vw, 72px);
  font-weight: 900;
  line-height: 0.98;
}

#schoolSlideText {
  margin-top: clamp(14px, 1.2vw, 22px);
  color: var(--muted);
  font-size: clamp(20px, 1.4vw, 30px);
  font-weight: 800;
  line-height: 1.22;
}

#schoolSlideText.long-text {
  font-size: clamp(17px, 1.1vw, 24px);
  line-height: 1.16;
}

.school-facts {
  margin-top: clamp(18px, 1.5vw, 28px);
  min-height: 0;
  overflow: auto;
}

.school-facts h4 {
  margin: 0 0 12px;
  color: var(--red-2);
  font-size: clamp(18px, 1.15vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.school-facts ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 26px;
}

.school-facts li {
  color: var(--text);
  font-size: clamp(19px, 1.25vw, 27px);
  font-weight: 800;
  line-height: 1.18;
}

.school-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
}

.school-controls button {
  min-width: 0;
  min-height: 78px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  font-size: clamp(18px, 1.1vw, 24px);
}

.school-controls .accent {
  background: var(--red);
}

.school-controls strong {
  min-width: 150px;
  color: var(--muted);
  font-size: clamp(22px, 1.35vw, 30px);
  font-weight: 900;
  text-align: center;
}

.trail-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #05070b;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.trail-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 100%;
  background: var(--red);
}

.trail-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #070a0f;
}

.trail-tile img.trail-image-high {
  object-position: center top;
  padding: 8px 10px 18px;
}

.trail-tile strong {
  display: grid;
  gap: 6px;
  min-height: clamp(78px, 8.2vh, 108px);
  padding: 16px 18px 16px 34px;
  background: rgba(11, 15, 20, 0.97);
  border-top: 5px solid var(--red);
  color: var(--text);
  font-size: clamp(20px, 1.35vw, 30px);
  line-height: 1.05;
}

.trail-tile em {
  color: var(--muted);
  font-size: clamp(15px, 0.95vw, 21px);
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
}

.video-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 0;
  padding: clamp(22px, 2vw, 38px);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(11, 15, 20, 0.94), rgba(11, 15, 20, 0.18)),
    var(--poster) center / contain no-repeat,
    #05070b;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.video-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 100%;
  background: var(--red);
}

.video-tile .play-mark {
  display: grid;
  place-items: center;
  width: clamp(74px, 5vw, 104px);
  height: clamp(74px, 5vw, 104px);
  margin-bottom: clamp(18px, 1.5vw, 28px);
  background: var(--red);
  border-radius: 50%;
  color: var(--text);
  font-size: clamp(34px, 2.6vw, 54px);
  line-height: 1;
}

.video-tile strong {
  max-width: 94%;
  font-size: clamp(23px, 1.65vw, 34px);
  line-height: 1.08;
}

.video-tile em {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(16px, 1vw, 22px);
  font-style: normal;
  font-weight: 800;
}

.model-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  background: #05070b;
}

.model-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #070a0f;
}

.tile-title {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 14px 22px 14px 34px;
  background: rgba(11, 15, 20, 0.97);
  border-top: 5px solid var(--red);
  color: var(--text);
  font-size: clamp(24px, 1.75vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.model-details,
.trail-details {
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(360px, 36fr);
  gap: clamp(16px, 1.6vw, 30px);
  background: rgba(11, 15, 20, 0.88);
}

.creator-details {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
  padding: 16px;
  background: rgba(11, 15, 20, 0.9);
}

.board-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: calc(100vh - 170px);
  flex: 1 1 auto;
  overflow: hidden;
  background: #05070b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.board-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
}

.board-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  flex: 0 0 auto;
  padding: 12px 16px 12px 22px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.board-panel h2 {
  font-size: clamp(28px, 2.2vw, 48px);
  line-height: 1;
}

.board-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 42vw);
}

.board-buttons button {
  min-width: 0;
  min-height: 72px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  font-size: clamp(16px, 0.95vw, 21px);
  line-height: 1.08;
}

.board-buttons .accent {
  background: var(--red);
}

.video-player {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 28px);
  background: rgba(11, 15, 20, 0.92);
}

.player-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.player-actions {
  display: flex;
  gap: 14px;
  flex: 0 0 auto;
}

.video-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: clamp(8px, 0.8vw, 14px);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000000;
  border-radius: 12px;
}

#videoNote {
  min-height: 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.1vw, 24px);
  font-weight: 800;
  text-align: center;
}

.photo-area {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.photo-area.two-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #05070b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trail-details .photo-card img.trail-image-high {
  width: 94%;
  height: 94%;
  object-position: center top;
}

.trail-details .photo-card img.star-28-29 {
  width: 90%;
  height: 90%;
}

.trail-details .photo-card img.star-660-zuraw {
  width: 92%;
  height: 92%;
}

.info-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 1.7vw, 34px);
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.model-heading h2 {
  font-size: clamp(46px, 4.1vw, 82px);
}

.info-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
}

.text-block,
.curiosity {
  margin-top: clamp(18px, 1.35vw, 26px);
}

.text-block h3,
.curiosity h3 {
  margin-bottom: 10px;
  color: var(--red-2);
  font-size: clamp(20px, 1.3vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
}

.text-block p,
.curiosity p,
.text-block li {
  color: var(--text);
  font-size: clamp(21px, 1.35vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.text-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 28px;
}

.curiosity {
  padding: 16px 18px;
  background: rgba(193, 18, 31, 0.18);
  border-left: 8px solid var(--red);
  border-radius: 12px;
}

.detail-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
}

.detail-buttons button {
  min-width: 0;
  min-height: 78px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  font-size: clamp(16px, 1vw, 22px);
  line-height: 1.08;
}

.detail-buttons .accent {
  background: var(--red);
}

button:hover,
button:focus-visible,
button:active {
  transform: scale(1.02);
  border-color: rgba(217, 4, 41, 0.85);
}

@media (orientation: landscape) and (max-height: 820px) {
  .screen {
    padding: 20px 28px;
  }

  .main-menu {
    gap: 14px;
  }

  .brand {
    font-size: clamp(22px, 2vw, 34px);
    gap: 16px;
  }

  .brand img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .fullscreen-button {
    min-width: 220px;
    min-height: 78px;
    font-size: clamp(21px, 1.55vw, 28px);
  }

  .hero-title p {
    margin-bottom: 10px;
    font-size: clamp(18px, 1.45vw, 24px);
  }

  h1 {
    font-size: clamp(48px, 5.4vw, 88px);
    line-height: 0.93;
  }

  .main-tile-row {
    gap: 18px;
  }

  .main-tile small {
    margin-top: 10px;
    font-size: clamp(16px, 1vw, 20px);
  }

  .main-tile.featured-video::after {
    width: 72px;
    height: 72px;
    right: 28px;
    bottom: 26px;
    font-size: 34px;
  }

  .main-tile strong {
    font-size: clamp(26px, 2.25vw, 42px);
  }

  .main-tile span {
    font-size: clamp(28px, 2.3vw, 44px);
  }
}

@media (max-aspect-ratio: 4 / 3), (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .app {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .screen {
    position: relative;
    display: none;
    min-height: 100vh;
    overflow: visible;
  }

  .screen.active {
    display: flex;
  }

  .main-tile-row {
    width: 100%;
  }

  .model-grid,
  .creator-grid,
  .video-grid,
  .trail-grid,
  .school-slide,
  .model-details,
  .trail-details,
  .photo-area.two-photos {
    grid-template-columns: 1fr 1fr;
  }

  .creator-details {
    display: none;
  }

  #creatorDetails.active {
    display: flex;
  }

  .model-details.active {
    display: grid;
  }

  .trail-details.active {
    display: grid;
  }

  .school-controls {
    grid-template-columns: 1fr 1fr;
  }

  .school-slide.no-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .screen {
    padding: 22px;
  }

  .main-top,
  .section-header {
    flex-direction: column;
  }

  .fullscreen-button {
    margin-top: 0;
  }

  .model-grid,
  .creator-grid,
  .video-grid,
  .trail-grid,
  .school-slide,
  .model-details,
  .trail-details,
  .photo-area.two-photos,
  .detail-buttons,
  .main-tile-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .main-tile.featured-video {
    grid-column: auto;
  }

  .main-tile.featured-video::after {
    display: none;
  }

  .main-tile small {
    max-width: 100%;
  }

  .school-controls {
    grid-template-columns: 1fr;
  }

  .creator-details {
    display: none;
  }

  #creatorDetails.active {
    display: flex;
  }

  .board-panel,
  .board-buttons {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .board-panel {
    height: auto;
  }

  .player-header,
  .player-actions {
    flex-direction: column;
    align-items: stretch;
  }

  button,
  .header-button,
  .fullscreen-button {
    width: 100%;
    min-width: 0;
  }
}
