.mf-npc {
  --mf-npc-u: 0.0520833333vw;
  margin-top: calc(200 * var(--mf-npc-u));
  margin-bottom: calc(200 * var(--mf-npc-u));
  color: #000;
  font-family: var(
    --mf-font-body,
    "Schibstedgrotesk",
    "Schibsted Grotesk",
    Arial,
    sans-serif
  );
}

.mf-npc,
.mf-npc *,
.mf-npc *::before,
.mf-npc *::after {
  box-sizing: border-box;
}

.mf-npc__link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.mf-npc__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.mf-npc__container {
  width: 100%;
  padding-right: calc(30 * var(--mf-npc-u));
  padding-left: calc(30 * var(--mf-npc-u));
}

.mf-npc__label {
  display: block;
  margin-bottom: calc(20 * var(--mf-npc-u));
  color: #929292;
  font-family: inherit;
  font-size: calc(16 * var(--mf-npc-u));
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mf-npc__row {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--mf-npc-u));
}

.mf-npc__media {
  width: calc(230 * var(--mf-npc-u));
  height: calc(146 * var(--mf-npc-u));
  flex-shrink: 0;
  overflow: hidden;
  outline: 2px solid #eee;
  outline-offset: -2px;
  background: #eee;
}

.mf-npc__image,
.mf-npc__image-empty {
  display: block;
  width: 100%;
  height: 100%;
}

.mf-npc__image {
  object-fit: cover;
  object-position: var(--mf-npc-image-x, 50%) var(--mf-npc-image-y, 50%);
}

.mf-npc__image-empty {
  background: #eee;
}

.mf-npc__title-frame {
  position: relative;
  width: calc(606 * var(--mf-npc-u));
  flex-shrink: 0;
}

.mf-npc__title {
  display: block;
  width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
  font-family: var(--mf-font-display, "Gambarino", Georgia, serif);
  font-size: calc(80 * var(--mf-npc-u));
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.mf-npc__line-mask,
.mf-npc__line-mask > span {
  display: block;
}

.mf-npc__line-mask {
  padding-bottom: 0.2em;
  overflow: clip;
}

@media (min-width: 767.99px) {
  .mf-npc[data-mf-layout="large-right"] {
    width: 100%;
    text-align: right;
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__link {
    text-align: left;
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__row {
    flex-direction: row-reverse;
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__label {
    text-align: right;
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__title {
    text-align: right;
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__title-frame {
    width: fit-content;
    max-width: calc(606 * var(--mf-npc-u));
  }

  .mf-npc[data-mf-layout="large-right"] .mf-npc__media {
    width: calc(356 * var(--mf-npc-u));
    height: calc(226 * var(--mf-npc-u));
  }
}

@media (min-width: 767.99px) and (hover: hover) {
  .mf-npc[data-mf-enhanced] .mf-npc__image {
    opacity: 0;
    transform: scale(1.035);
    transition: transform 1.109s cubic-bezier(0.17, 0.84, 0.44, 1),
      opacity 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
  }

  .mf-npc[data-mf-enhanced] .mf-npc__title [data-mf-next-title-line] {
    transform: translateY(calc(101% + 0.55em));
    will-change: transform;
  }

  .mf-npc__title--clone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
  }

  .mf-npc[data-mf-enhanced][data-mf-active] .mf-npc__image {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 767.98px) {
  .mf-npc {
    --mf-npc-u: 0.2666666667vw;
    margin-top: calc(80 * var(--mf-npc-u));
    margin-bottom: calc(80 * var(--mf-npc-u));
  }

  .mf-npc__link {
    display: flex;
    width: 100%;
  }

  .mf-npc__container {
    padding-right: calc(15 * var(--mf-npc-u));
    padding-left: calc(15 * var(--mf-npc-u));
  }

  .mf-npc__label {
    margin-bottom: calc(20 * var(--mf-npc-u));
    font-size: calc(14 * var(--mf-npc-u));
  }

  .mf-npc__row {
    align-items: flex-start;
    flex-direction: column;
    gap: calc(10 * var(--mf-npc-u));
  }

  .mf-npc__media {
    width: 100%;
    height: calc(218 * var(--mf-npc-u));
    outline: 0;
  }

  .mf-npc__title-frame {
    width: 100%;
  }

  .mf-npc__title {
    font-size: calc(30 * var(--mf-npc-u));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-npc__image {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mf-npc__title--semantic [data-mf-next-title-line] {
    transform: none !important;
  }

  .mf-npc__title--clone {
    display: none !important;
  }
}

