/* Product and article layouts on the pages that link this stylesheet. */
@media (min-width: 901px) {
  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(de), :lang(es)) {
    scroll-padding-top: 170px;
  }

  html:is(:lang(de), :lang(es)) .product-nav .product-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 20px;
    padding-top: 7px;
  }

  html:is(:lang(de), :lang(es)) .product-nav .product-nav__identity {
    grid-area: 1 / 1;
    min-width: 0;
  }

  html:is(:lang(de), :lang(es)) .product-nav .product-nav__action {
    grid-area: 1 / 2;
    justify-self: end;
  }

  html:is(:lang(de), :lang(es)) .product-nav nav {
    grid-area: 2 / 1 / auto / -1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 clamp(16px, 2vw, 28px);
    overflow: visible;
  }

  html:is(:lang(de), :lang(es)) .product-nav nav a {
    padding-block: 8px 11px;
  }

  html:is(:lang(de), :lang(es)) .product-nav nav a::after {
    bottom: 5px;
  }

  html body #main-content.solutions-main > .packaging-anchor,
  html body #main-content.circularity-main > .article-nav.about-anchor-nav {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 24px auto 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--v500-line, #dae2e3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
  }

  html body #main-content.solutions-main > .packaging-anchor {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
  }

  html body #main-content.circularity-main > .article-nav.about-anchor-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 10px;
  }

  html body #main-content.circularity-main > .article-nav.about-anchor-nav::before {
    content: none !important;
    display: none !important;
  }

  html body #main-content.solutions-main > .packaging-anchor::before {
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 0 !important;
  }

  html body #main-content.solutions-main > .packaging-anchor > a,
  html body #main-content.circularity-main > .article-nav.about-anchor-nav > a {
    display: flex !important;
    align-items: center;
    min-height: 32px;
    width: auto !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 0 !important;
    border-radius: 5px;
    white-space: normal;
  }

  html body.bioten-packaging-page .packaging-main > #product.packaging-section {
    padding-bottom: clamp(52px, 4.5vw, 70px);
  }

  html body.bioten-packaging-page .packaging-main > #product + #path.packaging-section {
    padding-top: clamp(52px, 4.5vw, 70px);
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: stretch;
    min-height: 0;
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-grid > .release-card {
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-width: 0;
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-grid > .release-card:only-child {
    max-width: 34rem;
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #edf1ef;
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-card .release-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    transform: none;
  }

  html[data-page="bioten-pha-waterborne-varnish"]:is(:lang(zh), :lang(en), :lang(ja), :lang(es)) .release-card__meta {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}

@media (min-width: 1101px) {
  .v520-brand-detail--ecoten .v570-ecoten-gallery > .v570-material-principle:nth-child(4):last-child {
    grid-column: 2 / -1;
  }

  body.brand510-antux #progress .brand510-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Battery materials use a landscape image on the overview and a full portrait on detail. */
body.brand510-casu #business .brand510-product:nth-child(n + 3) > figure {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #edf0f1;
}

body.brand510-casu #business .brand510-product img[src*="/home/business-casu.webp"],
body.brand510-casu #battery .brand510-focus > figure > img {
  display: block;
  object-fit: contain;
  transform: none;
}

body.brand510-casu #battery .brand510-focus > figure {
  background: #edf1f5;
}

body.v520-brand-detail--casu main .v520-brand-detail-hero__visual {
  width: min(100%, 320px);
  min-height: 0;
  justify-self: center;
}

body.v520-brand-detail--casu main .v520-brand-detail-hero__visual > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

body.v520-brand-detail--casu #gallery .v520-detail-gallery > figure:has(> img[src*="casu-battery-materials"]) > img {
  inset: 0 0 50px;
  height: calc(100% - 50px);
  object-fit: contain;
  transform: none;
}

body.v520-brand-detail--casu #gallery .v520-detail-gallery > figure:has(> img[src*="casu-battery-materials"]) > figcaption {
  inset: auto 0 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: #203b4d;
}

/* Documentary photos keep their full frame within the existing story grid. */
body.brand510-antux #progress .brand510-story-grid > .brand510-story > figure {
  height: auto;
  aspect-ratio: 16 / 10;
  background: #ecefed;
}

body.brand510-antux #progress .brand510-story-grid > .brand510-story > figure > img {
  display: block;
  object-fit: contain;
  transform: none;
}
