/* Fictioneer v5.35.3 owns Showcase markup, gaps, images, masks and card height.
 * HF's six-entry category disclosure needs fixed tracks instead of auto-fit. */
.hf-category-showcase > .showcase__list:where(:not(.splide__list)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 767.9px) {
  .hf-category-showcase > .showcase__list:where(:not(.splide__list)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Original header text-shadow property, reduced to the requested light shadow. */
.header__title {
  --site-title-text-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}

/* Cover Experience V2: append only; preserve the existing stylesheet. */
/* Keep the parent's responsive width, grid areas and information spacing. */
.card._story[data-hf-novel-id] .card__main._grid._large > .cell-img {
  --card-image-placeholder: #f4f6f8;
  height: auto;
  aspect-ratio: 2 / 3;
  align-self: start;
  background: #f4f6f8;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card._story[data-hf-novel-id] .card__main._grid._large > .cell-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.single-fcn_story .story__thumbnail {
  --story-cover-placeholder: #f4f6f8;
  aspect-ratio: 2 / 3;
  height: auto;
  align-self: start;
  background: #f4f6f8;
}
.single-fcn_story .story__thumbnail-image {
  height: auto;
  max-height: none;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #f4f6f8;
}
.single-fcn_story .story__thumbnail:not(._in-content) .story__thumbnail-image {
  width: var(--this-img-width);
}
/* Enabled before body parsing; hidden images still reserve their full box. */
html.hf-cover-display .card._story[data-hf-novel-id] .card__image img:not([data-hf-cover-ready]),
html.hf-cover-display .single-fcn_story .story__thumbnail-image:not([data-hf-cover-ready]) {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .card._story[data-hf-novel-id] .card__image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgb(24 48 70 / 14%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card._story[data-hf-novel-id] .card__main._grid._large > .cell-img {
    transition: none;
  }
  .card._story[data-hf-novel-id] .card__image:hover {
    transform: none;
  }
}
