.aapm-cover {
  --aapm-hero-fit: cover;
  --aapm-hero-zoom: 1;
  --aapm-hero-overlay: .50;
  --aapm-hero-position-x: 50%;
  --aapm-hero-position-y: 57%;
  --aapm-hero-height: 240px;
  --aapm-hero-parallax-y: 0px;
  --aapm-hero-bottom-curtain: 0px;
  --aapm-hero-pull-up: 0px;
  --aapm-site-container: 1140px;
  width: 100%;
  max-width: none;
  margin: var(--aapm-hero-pull-up) 0 0;
  padding: 0;
  font-family: inherit;
}

.aapm-cover * {
  box-sizing: border-box;
}

.aapm-category-hero {
  position: relative;
  display: flex;
  width: 100vw;
  height: var(--aapm-hero-height);
  min-height: 180px;
  margin-left: calc(50% - 50vw);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #101820;
}

.aapm-category-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(115deg, #101820, #263746);
  pointer-events: none;
}

.aapm-category-hero__media img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-position: var(--aapm-hero-position-x) var(--aapm-hero-position-y);
  will-change: transform;
}

.aapm-category-hero__backdrop {
  inset: -10%;
  width: 120% !important;
  height: 120% !important;
  object-fit: cover;
  filter: blur(22px) saturate(.82);
  opacity: .88;
  transform: translate3d(0, calc(var(--aapm-hero-parallax-y) * .45), 0) scale(1.08);
}

.aapm-category-hero__image {
  inset: 0;
  object-fit: var(--aapm-hero-fit);
  transform: translate3d(0, var(--aapm-hero-parallax-y), 0) scale(var(--aapm-hero-zoom));
  transform-origin: var(--aapm-hero-position-x) var(--aapm-hero-position-y);
}

.aapm-category-hero__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(8, 15, 22, var(--aapm-hero-overlay));
  pointer-events: none;
}

.aapm-category-hero__bottom-curtain {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: var(--aapm-hero-bottom-curtain);
  background: #fff;
  pointer-events: none;
  will-change: height;
}

.aapm-category-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--aapm-site-container), calc(100% - 32px));
  text-align: center;
}

.aapm-category-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

@media (max-width: 767px) {
  .aapm-category-hero {
    height: clamp(170px, var(--aapm-hero-height), 280px);
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aapm-category-hero__media img,
  .aapm-category-hero__bottom-curtain {
    transition: none !important;
  }
}
