#customPageTitle {
  display: none;
}

@media screen and (min-width: 769px) {
  body #header,
  body #headerDummy {
    background-color: var(--base);
  }

  body #header {
    border-bottom: none;
    color: var(--base-aux);
  }

  body #header img {
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(-50deg);
  }

  body #headerLogoContainer img {
    content: url(/files/logoAbout.png);
    filter: none;
  }
}

.centeredContent.customPageCenteredContent:has(.aboutHero) {
  display: block;
  width: 100% !important;
  max-width: none;
  margin: 0;
}

.aboutHero {
  position: relative;
  aspect-ratio: 1525 / 684;
  isolation: isolate;
}

.aboutHero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  top: -100px;
  background: url(/files/addons/chocolateSlider.svg) center bottom / 100% 100% no-repeat;
  transform-origin: top;
  animation: chocolateDrip 5s ease-in-out infinite;
}

.aboutHeroTitle {
  position: absolute;
  top: 19%;
  left: 0;
  width: 100%;
  margin: 0;
  font-family: var(--secondary-font);
  font-size: 84px;
  font-weight: 400;
  line-height: 88px;
  text-align: center;
  color: var(--secondary);
  animation: fade-in-top 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.aboutHeroTitle span {
  display: block;
  color: var(--footer-stripe-1);
}

.aboutHeroPhoto,
.aboutHeroShine {
  position: absolute;
  height: auto;
}

.aboutHeroPhoto {
  transition: scale 0.3s ease, rotate 0.3s ease;
}

.aboutHeroPhoto:hover {
  scale: 1.08;
  rotate: -4deg;
}

.aboutHeroPhotoLeft {
  width: 16.4%;
  left: 5.2%;
  top: 30%;
  animation: fade-in-left 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both, badgeFloat 4s ease-in-out 0.6s infinite;
}

.aboutHeroPhotoRight {
  width: 15%;
  left: 79.5%;
  top: 13%;
  animation: fade-in-right 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both, badgeFloat 4s ease-in-out 1.6s infinite;
}

.aboutHeroShine {
  pointer-events: none;
  z-index: 1;
}

.aboutHeroShineTop {
  width: 6.8%;
  left: 16%;
  top: 9.5%;
  animation: badgeTwinkle 4s ease-in-out infinite;
}

.aboutHeroShineBottom {
  width: 6.5%;
  left: 80%;
  top: 63%;
  animation: badgeTwinkle 4s ease-in-out 1.5s infinite;
}

.aboutBadge {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.aboutStory {
  position: relative;
  width: 485px;
  margin: 60px auto 200px;
}

.aboutIntro {
  font-size: 20px;
  line-height: 30px;
}

.aboutPhotosPicture {
  display: contents;
}

.aboutPhotos {
  display: block;
  width: 629px;
  max-width: none;
  height: auto;
  margin: 40px 0 64px -10px;
}

.aboutText {
  font-size: 16px;
  line-height: 24px;
}

.aboutText p {
  margin-bottom: 24px;
}

.aboutBadgeChocolateTop {
  width: 118px;
  rotate: 150deg;
  right: -156px;
  top: 15px;
  animation: badgeFloat 4s ease-in-out infinite;
}

.aboutBadgeFan {
  width: 175px;
  left: -132px;
  top: 201px;
  rotate: 333deg;
  z-index: 1;
  animation: badgeSwing 4s ease-in-out infinite alternate;
}

.aboutBadgeChocolateLeft {
  width: 115px;
  left: -270px;
  top: 742px;
  rotate: 150deg;
  animation: badgeFloat 4s ease-in-out infinite 1s;
}

.aboutBadgeChocolateRight {
  width: 115px;
  right: -281px;
  top: 1056px;
  rotate: 150deg;
  animation: badgeFloat 4s ease-in-out infinite 2s;
}

.aboutBadgeMouth {
  width: 147px;
  left: 295px;
  top: calc(100% + 10px);
  rotate: 20deg;
  animation: badgeSwing 3.5s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .aboutBadge,
  .aboutHero::before,
  .aboutHeroTitle,
  .aboutHeroPhoto,
  .aboutHeroShine {
    animation: none;
  }

  .aboutHeroPhoto {
    transition: none;
  }
}

@media screen and (max-width: 768px) {
  .aboutHero {
    aspect-ratio: 390 / 536;
  }

  .aboutHero::before {
    background-image: url(/files/addons/chocolateSliderMobile.svg);
    top: -5px;
  }

  .aboutHeroTitle {
    top: 34%;
    font-size: 44px;
    line-height: 1.1;
    z-index: 10;
  }

  .aboutHeroPhotoLeft {
    width: 31%;
    left: 11.5%;
    top: 7%;
    z-index: 1;
  }

  .aboutHeroPhotoRight {
    width: 30.5%;
    left: 64%;
    top: 52%;
  }

  .aboutHeroShineTop {
    width: 14%;
    left: 77%;
    top: 10%;
  }

  .aboutHeroShineBottom {
    width: 25%;
    left: 3%;
    top: 55%;
  }

  .aboutStory {
    display: flex;
    flex-direction: column;
    width: var(--home-container);
    margin: 40px auto 60px;
  }

  .aboutText {
    display: contents;
  }

  .aboutPhotos {
    width: 100%;
    margin: 50px 0 40px;
  }

  .aboutText p:first-child {
    order: 1;
  }

  .aboutBadge {
    position: static;
    order: 1;
  }

  .aboutBadgeChocolateTop {
    position: absolute;
    width: 100px;
    right: 0px;
    top: 212px;
  }

  .aboutBadgeChocolateLeft {
    width: 72px;
    margin: 16px 0 -50px -12px;
  }

  .aboutBadgeFan {
    order: 2;
    width: 125px;
    align-self: center;
    margin-bottom: 40px;
  }

  .aboutBadgeChocolateRight {
    display: none;
  }

  .aboutText p:not(:first-child) {
    order: 3;
  }

  .aboutBadgeMouth {
    order: 4;
    width: 150px;
    align-self: flex-end;
    margin: -40px 48px 0 0;
  }
}
