.post-template.post-template-single-product main,
.post-template.post-template-single-product main > :first-child {
  margin-block-start: 0;
}

.elpato-product-header {
  background-color: var(--wp--preset--color--white);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 3.75rem;
  position: relative;
}

.tag-nmszw .elpato-product-header .wp-block-column {
  position: relative;
}

.elpato-product-header::before,
.tag-nmszw .elpato-product-header .wp-block-column::before {
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.8;
  position: absolute;
  inset: 0;
  z-index: 10;
}

.elpato-product-header::after {
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0.75rem;
  content: "";
  height: 2.25rem;
  right: 1rem;
  position: absolute;
  width: calc(100% - 1.5rem);
  z-index: 20;
}

.elpato-product-header .wp-block-post-featured-image img {
  aspect-ratio: 1;
  filter: grayscale(1);
  object-fit: cover;
}

.tag-achilles-running .elpato-product-header::before {
  background-color: var(--wp--preset--color--achilles-running);
}

.tag-achilles-running .elpato-product-header::after {
  background-image: var(--ep--logo--achilles-running);
  max-width: 200px;
}

.tag-aposcope .elpato-product-header::before {
  background-color: var(--wp--preset--color--aposcope);
}

.tag-aposcope .elpato-product-header::after {
  background-image: var(--ep--logo--aposcope);
  max-width: 200px;
}

.tag-apotheke-adhoc .elpato-product-header::before {
  background-color: var(--wp--preset--color--apotheke-adhoc);
}

.tag-apotheke-adhoc .elpato-product-header::after {
  background-image: var(--ep--logo--apotheke-adhoc);
  max-width: 250px;
}

.tag-apotheken-tour .elpato-product-header::before {
  background-color: var(--wp--preset--color--apotheken-tour);
}

.tag-apotheken-tour .elpato-product-header::after {
  background-image: var(--ep--logo--apotheken-tour);
  max-width: 230px;
}

.tag-gesundheit-adhoc .elpato-product-header::before {
  background-color: var(--wp--preset--color--gesundheit-adhoc);
}

.tag-gesundheit-adhoc .elpato-product-header::after {
  background-image: var(--ep--logo--gesundheit-adhoc);
  max-width: 303px;
}

.tag-pta-in-love .elpato-product-header::before {
  background-color: var(--wp--preset--color--pta-in-love);
}

.tag-pta-in-love .elpato-product-header::after {
  background-image: var(--ep--logo--pta-in-love);
  max-width: 202px;
}

.tag-vision-a .elpato-product-header::before {
  background-color: var(--wp--preset--color--vision-a);
}

.tag-vision-a .elpato-product-header::after {
  background-image: var(--ep--logo--vision-a);
  max-width: 186px;
}

.tag-nmszw .elpato-product-header::before,
.tag-nmszw .elpato-product-header .wp-block-column::before {
  background-image: var(--wp--preset--gradient--nmszw);
}

.tag-nmszw .elpato-product-header::before {
  bottom: 0;
  height: 3.75rem;
  left: 0;
  top: unset;
}

.tag-nmszw .elpato-product-header::after {
  background-image: var(--ep--logo--nmszw);
  max-width: 139px;
}

.post-template.post-template-single-product h1 {
  font-weight: 700;
}

@media screen and (min-width: 782px) {
  .elpato-product-header {
    padding-bottom: 0;
  }
  .elpato-product-header::after {
    bottom: unset;
    height: 3.75rem;
    right: var(--wp--preset--spacing--25);
    top: var(--wp--preset--spacing--25);
    width: calc(100% / 3 - 2 * var(--wp--preset--spacing--25));
  }

  .elpato-product-header .wp-block-post-featured-image img {
    aspect-ratio: 1080 / 666;
  }

  .tag-nmszw .elpato-product-header::before {
    left: unset;
    height: auto;
    top: 0;
    width: calc(100% / 3);
  }

  .post-template.post-template-single-product main .wp-block-group.is-style-small-content > *:not(.wp-block-elpato-side-title) {
    padding-right: calc(min(100%, var(--wp--style--global--wide-size)) * 4 / 12);
  }

  .post-template.post-template-single-product main .wp-block-group:not(.alignwide) > *:not(.wp-block-elpato-side-title) {
    border-right: min(calc((100vw - 2.5rem) / 12), calc(var(--wp--style--global--wide-size) / 12)) solid transparent;
  }
}
