.style-gallery {
  --gallery-paper: #fff7e8;
  --gallery-muted: #ccc5d1;
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  grid-template-areas: "stage heading" "stage choices";
  grid-template-rows: auto 1fr;
  gap: 25px clamp(25px, 4vw, 60px);
  margin-block: clamp(36px, 6vw, 84px) clamp(44px, 6vw, 84px);
  padding: clamp(25px, 4.25vw, 56px);
  border: 1px solid #393347;
  border-radius: 26px;
  color: var(--gallery-paper);
  background: linear-gradient(145deg, #272131, #1c1726 72%);
}

.style-heading { grid-area: heading; }
.style-heading h2 {
  margin: 0;
  font: 700 clamp(42px, 5.6vw, 88px)/.92 var(--display);
  letter-spacing: -.075em;
}
.style-heading h2 em { color: var(--yellow); font-style: normal; }
.style-heading p {
  max-width: 38ch;
  margin: 15px 0 0;
  color: var(--gallery-muted);
  line-height: 1.45;
}

.style-stage {
  grid-area: stage;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(16px, 2vw, 25px);
  padding: clamp(17px, 2.8vw, 34px);
  border: 1px solid #ffffff24;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 48% 18%, color-mix(in srgb, var(--style-accent) 56%, #211c2b), #171321 74%);
}
.style-preview { display: grid; justify-items: center; gap: 11px; min-width: 0; }
.style-screen {
  position: relative;
  width: min(100%, 256px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 13px;
  background: #15121c;
  outline: 1px solid #ffffff36;
  box-shadow: 0 17px 42px #080612b3;
}
.style-screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.style-stage-caption { color: #e4dae6; font-size: .8125rem; line-height: 1.2; text-align: center; }
.style-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #fff5e4;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gallery-paper);
  box-shadow: 0 2px 12px #08061270;
}
.style-play:hover { background: var(--yellow); }
.style-play svg { width: 22px; height: 22px; fill: currentColor; }
.style-play[data-playing] [data-play-icon],
.style-play:not([data-playing]) [data-pause-icon] { display: none; }

.style-choices {
  grid-area: choices;
  align-self: center;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 1vw, 13px); }
.style-option { display: block; min-width: 0; cursor: pointer; }
.style-option-card {
  position: relative;
  display: flex;
  align-items: end;
  aspect-ratio: 16 / 9;
  min-height: 53px;
  overflow: hidden;
  border: 2px solid #ffffff1a;
  border-radius: 11px;
  isolation: isolate;
  background: #322a41;
}
.style-option-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; z-index: -2; }
.style-option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 25%, #130d1be8);
}
.style-option-card span {
  padding: 6px 8px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.style-option-original { grid-column: 1 / -1; }
.style-option-original .style-option-card { aspect-ratio: 5.6 / 1; }
.style-option-original small { margin-inline-start: 9px; color: #fff7e8; font: inherit; font-weight: 400; }
.style-option-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.style-option:hover .style-option-card { border-color: #fff7e8aa; }
.style-option input:checked + .style-option-card { border-color: var(--yellow); }
.style-option input:checked + .style-option-card span { color: var(--yellow); }
.style-option input:checked + .style-option-card .style-option-check { display: block; }
.style-option input:focus-visible + .style-option-card,
.style-gallery button:focus-visible {
  outline: 2px solid #fff7e8;
  outline-offset: 3px;
}

.style-selection { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff26; padding-top: 18px; }
.style-description { margin: 0; line-height: 1.35; }
.style-description strong { display: block; font: 700 clamp(22px, 3.1vw, 36px)/1.04 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.style-description span { display: block; margin-top: 6px; color: var(--gallery-muted); font-size: .875rem; }
.style-selection .button { flex: none; }

@media (max-width: 940px) and (min-width: 721px) {
  .style-selection { align-items: start; flex-direction: column; }
}

@media (max-width: 720px) {
  .style-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "stage" "choices";
    grid-template-rows: auto;
    gap: 16px;
    width: calc(100% - 28px);
    padding: 18px;
    border-radius: 18px;
  }
  .style-heading h2 { font-size: clamp(41px, 9vw, 62px); }
  .style-heading h2 br { display: none; }
  .style-heading h2 em { display: inline-block; }
  .style-stage { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(10px, 3vw, 22px); padding: 12px; }
  .style-screen { width: min(100%, 190px); border-radius: 9px; }
  .style-selection { flex-direction: column; align-items: flex-start; gap: 14px; border: 0; padding: 0; }
  .style-selection .button { min-width: 0; padding-inline: 10px; text-align: center; white-space: normal; }
  .style-option-card { aspect-ratio: 3 / 2; }
  .style-option-card span { padding-inline: 5px; }
}

@media (max-width: 360px) {
  .style-gallery { padding: 13px; }
  .style-stage { padding: 9px; }
  .style-description strong { font-size: 21px; }
}
