[data-momo-editions-gallery] {
  min-width: 0;
}

[data-momo-editions-gallery]:not(.momo-gallery) {
  display: grid;
  min-height: 28rem;
  place-items: center;
  padding: 2rem;
  color: #efe2c8;
  background: #030302;
}

.momo-gallery-fallback {
  width: min(20rem, 100%);
  margin: 0;
  text-align: center;
}

.momo-gallery-fallback img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(196 123 53 / 32%);
  border-radius: 11px;
}

.momo-gallery-fallback figcaption {
  margin-top: 0.85rem;
  color: rgb(224 174 104 / 92%);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.momo-gallery-portal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
}

.momo-gallery-curtain {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgb(3 3 2 / 22%) 0%,
      rgb(3 3 2 / 30%) 23%,
      rgb(3 3 2 / 74%) 52%,
      rgb(3 3 2 / 88%) 100%
    ),
    linear-gradient(rgb(3 3 2 / 32%), rgb(3 3 2 / 66%));
  font: inherit;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(3px) saturate(0.86);
  transition: background 260ms ease, opacity 420ms ease;
}

.momo-gallery-curtain[hidden] {
  display: none;
}

.momo-gallery-curtain.is-revealing {
  opacity: 0;
  pointer-events: none;
}

.momo-gallery-curtain::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 17% 50%, rgb(214 151 77 / 14%), transparent 32%),
    radial-gradient(circle at 42% 48%, rgb(82 178 168 / 4%), transparent 42%);
  content: "";
  pointer-events: none;
}

.momo-gallery-curtain::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    rgb(3 3 2 / 24%) 35%,
    rgb(3 3 2 / 72%) 54%,
    rgb(3 3 2 / 90%) 100%
  );
  content: "";
  pointer-events: none;
}

.momo-gallery-curtain__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0;
  width: min(34rem, calc(100% - 3rem));
}

.momo-gallery-curtain__feature {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-block: -0.7rem clamp(2.25rem, 4vw, 3rem);
  color: rgb(228 214 187 / 58%);
  font: 600 clamp(0.58rem, 1.05vw, 0.72rem) system-ui, sans-serif;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-4rem);
}

.momo-gallery-curtain__feature-logo-mark {
  position: relative;
  display: block;
  width: clamp(5.2rem, 10vw, 7.4rem);
}

.momo-gallery-curtain__feature-logo,
.momo-gallery-curtain__feature-logo-momo {
  display: block;
  width: 100%;
  height: auto;
}

.momo-gallery-curtain__feature-logo {
  opacity: 0.96;
}

.momo-gallery-curtain__feature-logo-momo {
  position: absolute;
  inset: 0;
  filter: brightness(0) invert(1);
  opacity: 0.94;
  clip-path: inset(0 0 31% 0);
}

.momo-gallery-curtain__title {
  color: #d5b07c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-shadow: 0 4px 28px rgb(0 0 0 / 62%);
}

.momo-gallery-curtain__description {
  max-width: 24rem;
  margin-top: clamp(1.1rem, 2.2vw, 1.55rem);
  color: rgb(228 215 193 / 74%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  line-height: 1.25;
}

.momo-gallery-curtain__entry {
  margin-top: clamp(2rem, 3.8vw, 2.7rem);
  color: #71d1c8;
  font-family: "Courier New", monospace;
  font-size: clamp(0.74rem, 1.2vw, 0.9rem);
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgb(73 176 165 / 62%);
  text-transform: uppercase;
}

.momo-gallery__note {
  max-width: 42rem;
  margin: clamp(0.8rem, 1.5vw, 1.1rem) 0 0;
  color: var(--muted-ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

.momo-gallery-curtain:hover {
  background:
    linear-gradient(
      90deg,
      rgb(3 3 2 / 16%) 0%,
      rgb(3 3 2 / 25%) 23%,
      rgb(3 3 2 / 69%) 52%,
      rgb(3 3 2 / 84%) 100%
    ),
    linear-gradient(rgb(3 3 2 / 28%), rgb(3 3 2 / 62%));
}

.momo-gallery-curtain:focus-visible {
  outline: 2px solid #efe2c8;
  outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
  .momo-gallery-curtain {
    transition: none;
  }
}

.momo-gallery {
  position: relative;
  width: 100%;
  height: clamp(680px, 80vh, 900px);
  min-height: 0;
  overflow: hidden;
  color: #efe2c8;
  background: rgb(3 3 2 / 98%);
  font-family: Georgia, "Times New Roman", serif;
  color-scheme: dark;
  container-type: inline-size;
}

.momo-gallery,
.momo-gallery *,
.momo-gallery *::before,
.momo-gallery *::after {
  box-sizing: border-box;
}

.momo-gallery button {
  font: inherit;
}

.momo-gallery__accessible-header {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.momo-gallery__shell {
  position: absolute;
  inset: 0 clamp(12px, 2.25cqw, 34px) clamp(12px, 2.25cqw, 34px);
  display: grid;
  grid-template-columns: clamp(200px, 16vw, 240px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  outline: none;
  background:
    radial-gradient(circle at 23% 49%, rgb(72 48 22 / 9%), transparent 30%),
    radial-gradient(circle at 67% 48%, rgb(65 43 21 / 7%), transparent 38%),
    linear-gradient(90deg, #050403, #090805 42%, #070604);
  box-shadow: 0 28px 90px rgb(0 0 0 / 66%);
}

.momo-gallery__film-rail {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 0;
  padding-inline: 34px 28px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 78%),
    rgb(17 12 7 / 95%) 22%,
    rgb(12 9 5 / 98%) 78%,
    rgb(0 0 0 / 76%)
  );
  box-shadow: 22px 0 55px rgb(0 0 0 / 42%);
}

.momo-gallery__film-rail::before,
.momo-gallery__film-rail::after {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 66px;
  content: "";
  pointer-events: none;
}

.momo-gallery__film-rail::before {
  top: 0;
  background: linear-gradient(#050403 12%, rgb(5 4 3 / 0%));
}

.momo-gallery__film-rail::after {
  bottom: 0;
  background: linear-gradient(rgb(5 4 3 / 0%), #050403 88%);
}

.momo-gallery__strip {
  height: 100%;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 0;
  scrollbar-width: none;
  padding-inline: 6px;
  scroll-snap-type: y proximity;
  list-style: none;
}

.momo-gallery__strip::-webkit-scrollbar {
  display: none;
}

.momo-gallery__strip-spacer {
  height: 44vh;
  min-height: 240px;
}

.momo-gallery__frame-item {
  display: flow-root;
  width: 100%;
  scroll-snap-align: center;
}

.momo-gallery__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.68 / 1;
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  outline: none;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}

.momo-gallery__frame::before {
  position: absolute;
  z-index: 0;
  inset: -22px -24px;
  border-radius: 18px;
  background: radial-gradient(
    ellipse at center,
    rgb(255 241 206 / 78%) 0%,
    rgb(255 201 119 / 46%) 32%,
    rgb(210 122 46 / 20%) 58%,
    transparent 82%
  );
  filter: blur(14px);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  content: "";
}

.momo-gallery__frame-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgb(126 104 77 / 28%);
  border-radius: 6px;
  background: #11100e;
  box-shadow:
    inset 0 0 12px rgb(255 255 255 / 3%),
    0 2px 5px rgb(0 0 0 / 72%);
  transition:
    box-shadow 260ms ease,
    border-color 240ms ease;
}

.momo-gallery__frame-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x) var(--crop-y);
  transform: scale(var(--crop-zoom));
  transform-origin: var(--crop-x) var(--crop-y);
  filter: invert(1) grayscale(1) contrast(1.18) brightness(0.78) sepia(0.03);
  opacity: 0;
  transition:
    filter 260ms ease,
    opacity 200ms ease,
    transform 260ms ease;
}

.momo-gallery__frame-image img.is-loaded {
  opacity: 0.9;
}

.momo-gallery__frame.is-selected::before {
  opacity: 0.72;
}

.momo-gallery__frame.is-selected .momo-gallery__frame-image {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    rgb(246 191 105 / 88%) 0%,
    rgb(228 151 68 / 82%) 48%,
    rgb(180 93 35 / 78%) 100%
  );
  box-shadow:
    inset 0 0 8px rgb(255 244 218 / 14%),
    inset 0 0 22px rgb(255 199 116 / 12%),
    0 0 14px rgb(255 222 169 / 22%),
    0 0 36px rgb(231 147 62 / 20%),
    0 0 72px rgb(147 70 22 / 14%);
}

.momo-gallery__frame.is-selected .momo-gallery__frame-image img {
  filter: grayscale(1) contrast(1.12) brightness(1.04);
  opacity: 0.68;
  mix-blend-mode: multiply;
}

.momo-gallery__frame:focus-visible {
  outline: 0;
}

.momo-gallery__frame:focus-visible::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 3px solid #efe2c8;
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.momo-gallery__film-edge {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 13px,
      rgb(4 3 2 / 95%) 13px 28px,
      transparent 28px 41px
    ),
    linear-gradient(90deg, #171008, #0a0704);
  box-shadow:
    inset 0 0 0 1px rgb(130 81 30 / 14%),
    0 0 12px rgb(0 0 0 / 70%);
}

.momo-gallery__film-edge--start {
  left: 12px;
}

.momo-gallery__film-edge--end {
  right: 6px;
}

.momo-gallery__film-title,
.momo-gallery__film-code {
  position: absolute;
  z-index: 7;
  font-family: "Courier New", monospace;
  white-space: nowrap;
  pointer-events: none;
}

.momo-gallery__film-title {
  top: 30%;
  left: 20px;
  color: rgb(216 147 61 / 84%);
  font-size: 13px;
  letter-spacing: 0.22em;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.momo-gallery__film-code {
  right: 16px;
  color: rgb(216 147 61 / 54%);
  font-size: 8px;
  letter-spacing: 0.18em;
  transform: rotate(90deg);
  transform-origin: right center;
}

.momo-gallery__film-code--editor {
  top: 24%;
}

.momo-gallery__film-code--roll {
  top: 79%;
}

.momo-gallery__stage {
  --metadata-reserve: clamp(48px, 7vh, 62px);
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 5vh, 64px) clamp(32px, 7vw, 120px) clamp(22px, 4vh, 46px);
  overflow: hidden;
}

.momo-gallery__artwork {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: auto;
  max-width: 820px;
  height: min(calc(100% - var(--metadata-reserve)), 1230px);
  max-height: min(calc(100% - var(--metadata-reserve)), 1230px);
  margin-bottom: var(--metadata-reserve);
  aspect-ratio: 2 / 3;
  outline: none;
  color: inherit;
  cursor: pointer;
  touch-action: pan-y;
  container-name: edition-card;
  container-type: size;
}

.momo-gallery__artwork::before {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: radial-gradient(
    ellipse at center,
    rgb(236 157 76 / 28%) 0%,
    rgb(207 133 53 / 18%) 48%,
    rgb(178 96 34 / 11%) 76%,
    rgb(122 68 27 / 7%) 100%
  );
  filter: blur(8px);
  opacity: 0.55;
  box-shadow: 0 0 72px rgb(178 96 34 / 16%);
  transition:
    opacity 900ms cubic-bezier(0.4, 0, 0.6, 1),
    box-shadow 900ms cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
  content: "";
}

.momo-gallery__artwork::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgb(196 123 53 / 32%);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgb(9 7 5 / 34%);
  pointer-events: none;
  content: "";
}

.momo-gallery__artwork:focus-within::after {
  border-width: 3px;
  border-color: #efe2c8;
}

.momo-gallery__artwork.has-arrived::before,
.momo-gallery__artwork:focus-within::before {
  opacity: 1;
  box-shadow:
    0 0 78px rgb(207 133 53 / 40%),
    0 0 116px rgb(178 96 34 / 22%);
  transition-duration: 375ms;
}

@media (hover: hover) {
  .momo-gallery__artwork:hover::before {
    opacity: 1;
    box-shadow:
      0 0 78px rgb(207 133 53 / 40%),
      0 0 116px rgb(178 96 34 / 22%);
    transition-duration: 375ms;
  }
}

.momo-gallery__image-stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
  clip-path: inset(0 round 11px);
  background: #14120f;
  box-shadow:
    0 0 18px rgb(181 102 35 / 22%),
    0 30px 70px rgb(0 0 0 / 56%);
}

.momo-gallery__projector-field {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgb(255 219 166 / 13%), transparent 76%),
    radial-gradient(ellipse at 50% 52%, rgb(244 168 78 / 8%), transparent 90%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.momo-gallery__artwork.is-changing .momo-gallery__projector-field {
  opacity: 0.42;
}

.momo-gallery__main-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  opacity: 1;
  transition:
    opacity 340ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 520ms ease,
    transform 520ms ease;
}

.momo-gallery__artwork.is-changing .momo-gallery__main-image {
  opacity: 0.08;
}

.momo-gallery__information {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
}

.momo-gallery__information::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(6 4 3 / 16%) 0%,
    rgb(6 4 3 / 5%) 30%,
    rgb(6 4 3 / 28%) 68%,
    rgb(5 3 2 / 86%) 100%
  );
  opacity: 0;
  transition: opacity 240ms ease;
  content: "";
}

.momo-gallery__artwork:hover .momo-gallery__information::before,
.momo-gallery__artwork:focus-within .momo-gallery__information::before,
.momo-gallery__artwork.is-title-revealed .momo-gallery__information::before,
.momo-gallery__artwork.is-info-open .momo-gallery__information::before {
  opacity: 1;
}

.momo-gallery__artwork.is-info-open .momo-gallery__information::before {
  background: linear-gradient(
    to bottom,
    rgb(5 3 2 / 84%) 0%,
    rgb(5 3 2 / 66%) 30%,
    rgb(5 3 2 / 82%) 68%,
    rgb(4 3 2 / 98%) 100%
  );
}

.momo-gallery__artwork-title-block {
  position: absolute;
  top: clamp(46px, 9%, 64px);
  left: 50%;
  z-index: 2;
  width: 82%;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.momo-gallery__artwork.is-title-revealed .momo-gallery__artwork-title-block,
.momo-gallery__artwork.is-info-open .momo-gallery__artwork-title-block,
.momo-gallery__artwork:hover .momo-gallery__artwork-title-block,
.momo-gallery__artwork:focus-within .momo-gallery__artwork-title-block {
  opacity: 1;
}

.momo-gallery__genre-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-bottom: clamp(8px, 1.35vw, 14px);
  color: rgb(226 177 111 / 92%);
  font: 600 clamp(0.58rem, 0.92vw, 0.72rem) system-ui, sans-serif;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgb(0 0 0 / 72%);
}

.momo-gallery__genre-group[hidden] {
  display: none;
}

.momo-gallery__genre-separator,
.momo-gallery__metadata-separator {
  color: rgb(247 236 215 / 72%);
}

.momo-gallery__fact-separator {
  padding-inline: 0.45em;
  color: rgb(155 169 172 / 70%);
}

.momo-gallery__artwork-title {
  display: block;
  color: rgb(247 236 215 / 96%);
  font-size: clamp(1.2rem, 3.1vw, 3.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgb(0 0 0 / 74%);
}

.momo-gallery__artwork-title.is-long-title {
  font-size: clamp(1.08rem, 2.35vw, 2.45rem);
  line-height: 1;
}

.momo-gallery__artwork-title.is-extra-long-title {
  font-size: clamp(0.98rem, 2.05vw, 2.15rem);
}

.momo-gallery__artwork-year {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgb(155 169 172 / 92%);
  font: 600 clamp(0.58rem, 0.92vw, 0.72rem) system-ui, sans-serif;
  letter-spacing: 0.14em;
  opacity: 0;
  transition:
    max-height 300ms ease,
    margin-top 300ms ease,
    opacity 260ms ease;
}

.momo-gallery__artwork.is-info-open .momo-gallery__artwork-year {
  max-height: 1.2rem;
  margin-top: clamp(8px, 1.4vw, 14px);
  opacity: 1;
}

.momo-gallery__artwork.is-info-open .momo-gallery__main-image {
  filter: brightness(0.42) saturate(0.72);
}

.momo-gallery__artwork.is-info-open .momo-gallery__information {
  background: radial-gradient(circle at 50% 45%, rgb(58 39 18 / 16%), rgb(0 0 0 / 28%));
  box-shadow: inset 0 0 90px rgb(0 0 0 / 38%);
}

.momo-gallery__details {
  position: absolute;
  top: clamp(220px, 42cqh, 330px);
  right: clamp(24px, 7%, 52px);
  left: clamp(24px, 7%, 52px);
  display: grid;
  max-height: 0;
  align-content: start;
  justify-items: center;
  gap: clamp(12px, 4cqh, 32px);
  overflow: hidden;
  color: rgb(243 233 214 / 90%);
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  scrollbar-width: none;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.momo-gallery__artwork.is-info-open .momo-gallery__details {
  max-height: min(270px, 43%);
  opacity: 1;
  transform: translateY(0);
}

.momo-gallery__facts {
  position: absolute;
  z-index: 3;
  bottom: clamp(22px, 9cqh, 76px);
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(155 169 172 / 92%);
  font: 600 clamp(0.62rem, 1vw, 0.75rem) system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.momo-gallery__runtime--compact {
  display: none;
}

.momo-gallery__runtime,
.momo-gallery__rating-group {
  flex: 0 0 auto;
  white-space: nowrap;
}

.momo-gallery__rating-group {
  display: inline-flex;
  align-items: center;
}

.momo-gallery__artwork.is-info-open .momo-gallery__facts {
  opacity: 1;
  transform: translateY(0);
}

.momo-gallery__director {
  display: grid;
  justify-items: center;
  gap: clamp(2px, 0.5cqh, 5px);
  color: rgb(239 226 200 / 76%);
  font: clamp(0.62rem, 1.45cqh, 0.82rem) system-ui, sans-serif;
}

.momo-gallery__director b {
  color: rgb(239 226 200 / 94%);
  font-weight: 600;
}

.momo-gallery__director-label,
.momo-gallery__director-name {
  display: block;
}

.momo-gallery__director .momo-gallery__director-name {
  font-size: clamp(0.76rem, 2.8cqh, 1.5rem);
}

.momo-gallery__actors {
  display: grid;
  max-width: 48ch;
  justify-items: center;
  gap: clamp(2px, 0.5cqh, 5px);
  color: rgb(239 226 200 / 70%);
  font: clamp(0.6rem, 1.35cqh, 0.77rem) system-ui, sans-serif;
  line-height: 1.4;
}

.momo-gallery__actors b {
  color: rgb(239 226 200 / 90%);
  font-size: clamp(0.82rem, 3.25cqh, 1.8rem);
  font-weight: 500;
}

.momo-gallery__actors-label,
.momo-gallery__director-label {
  color: rgb(239 226 200 / 62%);
  font-size: clamp(0.54rem, 1.7cqh, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.momo-gallery__actors-label,
.momo-gallery__actor {
  display: block;
}

.momo-gallery [hidden] {
  display: none !important;
}

.momo-gallery__artwork-hit-target {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 11px;
  outline: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.momo-gallery__metadata {
  position: absolute;
  z-index: 4;
  bottom: calc(-1 * var(--metadata-reserve));
  left: 50%;
  display: flex;
  width: min(620px, calc(100vw - 24px));
  height: var(--metadata-reserve);
  align-items: center;
  justify-content: center;
  color: rgb(224 174 104 / 92%);
  font-size: clamp(0.72rem, 1.25vw, 1rem);
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  pointer-events: none;
}

.momo-gallery__metadata-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  text-align: center;
  opacity: 1;
  transition: opacity 300ms ease;
}

.momo-gallery__metadata-text.is-changing {
  opacity: 0;
}

.momo-gallery__error,
.momo-gallery__status {
  margin: 2rem;
  color: #efe2c8;
}

@media (max-width: 900px) and (min-width: 651px) {
  .momo-gallery__shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .momo-gallery__stage {
    padding-inline: 26px;
  }
}

@media (max-width: 650px) {
  .momo-gallery-curtain {
    backdrop-filter: blur(6px) saturate(0.68);
  }

  .momo-gallery {
    height: min(760px, 88dvh);
    min-height: 580px;
  }

  .momo-gallery__shell {
    inset: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 158px;
    border: 0;
    border-radius: 0;
  }

  .momo-gallery__stage {
    --metadata-reserve: max(62px, calc(48px + env(safe-area-inset-bottom)));
    grid-row: 1;
    align-items: flex-end;
    padding: 22px 18px max(18px, env(safe-area-inset-bottom));
  }

  .momo-gallery__artwork {
    width: auto;
    max-width: 100%;
    height: min(calc(100% - var(--metadata-reserve)), calc((100vw - 36px) * 1.5));
    max-height: min(calc(100% - var(--metadata-reserve)), calc((100vw - 36px) * 1.5));
    margin-bottom: var(--metadata-reserve);
  }

  .momo-gallery__artwork-title {
    font-size: clamp(1rem, 7vw, 1.65rem);
  }

  .momo-gallery__artwork-title.is-long-title {
    font-size: clamp(0.96rem, 5.6vw, 1.35rem);
  }

  .momo-gallery__artwork-title.is-extra-long-title {
    font-size: clamp(0.9rem, 5vw, 1.18rem);
  }

  .momo-gallery__details {
    top: clamp(178px, 35cqh, 240px);
    right: 18px;
    left: 18px;
    gap: clamp(8px, 2.2cqh, 16px);
  }

  .momo-gallery__artwork.is-info-open .momo-gallery__details {
    max-height: min(275px, 56%);
  }

  .momo-gallery__facts {
    bottom: clamp(14px, 5cqh, 34px);
    font-size: 0.62rem;
  }

  .momo-gallery__artwork.is-info-open .momo-gallery__artwork-year {
    margin-top: clamp(5px, 1cqh, 9px);
  }

  .momo-gallery__director,
  .momo-gallery__actors {
    gap: 2px;
  }

  .momo-gallery__actors {
    line-height: 1.22;
  }

  .momo-gallery__metadata {
    bottom: calc(-1 * var(--metadata-reserve) + max(10px, env(safe-area-inset-bottom)));
    height: auto;
    min-height: 34px;
    font-size: 11px;
  }

  .momo-gallery__artwork:hover .momo-gallery__metadata,
  .momo-gallery__artwork:focus-within .momo-gallery__metadata,
  .momo-gallery__artwork.is-title-revealed .momo-gallery__metadata,
  .momo-gallery__artwork.is-info-open .momo-gallery__metadata {
    bottom: calc(-1 * var(--metadata-reserve) + max(10px, env(safe-area-inset-bottom)));
    font-size: 11px;
  }

  .momo-gallery__metadata-text {
    gap: 5px 9px;
    white-space: normal;
  }

  .momo-gallery__film-rail {
    grid-row: 2;
    width: 100%;
    height: 158px;
    min-height: 158px;
    padding: 26px 0 25px;
    border-top: 1px solid rgb(172 116 54 / 14%);
    box-shadow: 0 -18px 44px rgb(0 0 0 / 35%);
  }

  .momo-gallery__film-rail::before,
  .momo-gallery__film-rail::after {
    top: 0;
    bottom: 0;
    width: 48px;
    height: 100%;
  }

  .momo-gallery__film-rail::before {
    right: auto;
    background: linear-gradient(90deg, #050403 12%, rgb(5 4 3 / 0%));
  }

  .momo-gallery__film-rail::after {
    right: 0;
    left: auto;
    background: linear-gradient(90deg, rgb(5 4 3 / 0%), #050403 88%);
  }

  .momo-gallery__strip {
    display: flex;
    gap: 9px;
    width: 100%;
    height: 83px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: calc((100cqw - 140px) / 2);
    scroll-snap-type: x mandatory;
  }

  .momo-gallery__strip-spacer {
    flex: 0 0 1px;
    width: 1px;
    height: 100%;
    min-height: 0;
  }

  .momo-gallery__frame-item {
    flex: 0 0 140px;
    width: 140px;
    height: 83px;
  }

  .momo-gallery__frame {
    width: 100%;
    height: 83px;
    margin: 0;
  }

  .momo-gallery__film-title {
    top: auto;
    bottom: 11px;
    left: 18px;
    font-size: 7px;
    letter-spacing: 0.18em;
    transform: none;
  }

  .momo-gallery__film-code--editor {
    display: none;
  }

  .momo-gallery__film-code--roll {
    top: auto;
    right: 18px;
    bottom: 11px;
    font-size: 7px;
    letter-spacing: 0.14em;
    transform: none;
  }

  .momo-gallery__film-edge {
    top: auto;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 18px;
    background:
      repeating-linear-gradient(
        to right,
        transparent 0 13px,
        rgb(4 3 2 / 95%) 13px 28px,
        transparent 28px 41px
      ),
      linear-gradient(#171008, #0a0704);
  }

  .momo-gallery__film-edge--start {
    top: 0;
  }

  .momo-gallery__film-edge--end {
    top: auto;
    bottom: 0;
  }

}

@media (max-width: 650px) and (max-height: 720px) {
  .momo-gallery__artwork {
    height: min(calc(100% - var(--metadata-reserve)), calc((100vw - 36px) * 1.5));
    max-height: min(calc(100% - var(--metadata-reserve)), calc((100vw - 36px) * 1.5));
  }
}

@container edition-card (max-width: 360px) {
  .momo-gallery__runtime--long {
    display: none;
  }

  .momo-gallery__runtime--compact {
    display: inline;
  }
}

@container edition-card (max-height: 540px) {
  .momo-gallery__director,
  .momo-gallery__actors {
    gap: 2px;
  }
}

@container edition-card (max-height: 440px) {
  .momo-gallery__artwork-title {
    font-size: clamp(1rem, 6.4vw, 1.45rem);
  }

  .momo-gallery__artwork-title.is-long-title {
    font-size: clamp(0.94rem, 5.6vw, 1.28rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  .momo-gallery *,
  .momo-gallery *::before,
  .momo-gallery *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
