/* Opt-in cover treatment shared by catalogue, studio and folded-card views.
   A cover photo keeps the existing photo layout. An inside photo keeps the art. */
:is(
  .shop-thumbnail,
  .mini-card,
  :where(.card-root:not(.local-photo-card), .local-photo-card[data-local-layout="inside"]) .paper-front-face
)[data-illustrated="cinematic"] {
  justify-content: flex-end;
  gap: 3px;
  padding: 0 7% 7%;
  isolation: isolate;
}

:is(
  .shop-thumbnail,
  .mini-card,
  :where(.card-root:not(.local-photo-card), .local-photo-card[data-local-layout="inside"]) .paper-front-face
)[data-illustrated="cinematic"] > img:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 50%;
}

:is(
  .shop-thumbnail,
  .mini-card,
  :where(.card-root:not(.local-photo-card), .local-photo-card[data-local-layout="inside"]) .paper-front-face
)[data-illustrated="cinematic"]::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, #080b14f7, #080b14d9 15%, #080b1455 34%, transparent 52%);
}

:is(
  .shop-thumbnail,
  .mini-card,
  :where(.card-root:not(.local-photo-card), .local-photo-card[data-local-layout="inside"]) .paper-front-face
)[data-illustrated="cinematic"] > :is(strong, .paper-cover-title, .paper-cover-caption, .paper-cover-name) {
  padding: 0;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 3px #080b14;
}

:is(.shop-thumbnail, .mini-card)[data-illustrated="cinematic"] > strong {
  font-size: clamp(.78rem, 3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.16;
}

:where(.card-root:not(.local-photo-card), .local-photo-card[data-local-layout="inside"])
.paper-front-face[data-illustrated="cinematic"] > .paper-cover-title {
  font-weight: 700;
  line-height: 1.26;
}

/* Keep the upper action and the setting in view at thumbnail sizes. */
:is(.shop-thumbnail, .mini-card)[data-illustrated="cinematic"] {
  aspect-ratio: 3 / 5;
}

:is(.shop-thumbnail, .mini-card)[data-illustrated="cinematic"] > img {
  object-position: 50% 25%;
}

.paper-cover-caption {
  font-size: clamp(.72rem, 2.8vw, .93rem);
  line-height: 1.24;
  font-family: var(--cover-font, serif);
}
