:root {
  --christmas-bg: #dbedd9;
}

.hero-banner__container {
  display: grid;
  position: relative;
  grid-template-columns: 1fr;

  @media only screen and (min-width: 640px) {
    grid-template-columns: 1fr min(50%, 563px);
  }
}

.hero-banner .hero-banner__text-container {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-400, 32px);
  padding-bottom: var(--spacing-450, 40px);
  gap: var(--spacing-300, 24px);
  background-image: url("https://www.officeworks.com.au/images/campaigns/christmas/2025/hero-banner/christmas_hero_bg.jpg");
  background-position: center;
  /* background-size: cover; */
  text-wrap: pretty;

  @media only screen and (min-width: 640px) {
    padding-right: var(--spacing-450, 40px);
    padding-bottom: var(--spacing-400, 32px);
  }

  :is(h1, .h1, h2, .h2) {
    font-size: clamp(2.6rem, 1.786vw + 1.457rem, 3.6rem);
    line-height: 1.222222;

    @media only screen and (min-width: 640px) {
      width: 95%;
    }
  }

  &::after {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    aspect-ratio: 597 / 16;
    width: 100%;
    height: auto;
    background: url("data:image/svg+xml,%3Csvg width='597' height='16' viewBox='0 0 597 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16V0H58V16H0Z' fill='%23DA192E'/%3E%3Cpath d='M77 16V0H135V16H77Z' fill='%23DA192E'/%3E%3Cpath d='M154 16V0H212V16H154Z' fill='%23DA192E'/%3E%3Cpath d='M231 16V0H289V16H231Z' fill='%23DA192E'/%3E%3Cpath d='M308 16V0H366V16H308Z' fill='%23DA192E'/%3E%3Cpath d='M385 16V0H443V16H385Z' fill='%23DA192E'/%3E%3Cpath d='M462 16V0H520V16H462Z' fill='%23DA192E'/%3E%3Cpath d='M539 16V0H597V16H539Z' fill='%23DA192E'/%3E%3C/svg%3E%0A") no-repeat 0 0/100%;
    content: "";

    @media only screen and (min-width: 640px) {
      right: 0;
      left: unset;
      aspect-ratio: 18 / 360;
      width: auto;
      height: 100%;
      background-image: url("data:image/svg+xml,%3Csvg width='18' height='360' viewBox='0 0 18 360' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 264.243L18 191.515L-7.3647e-06 191.515L-4.18569e-06 264.243L18 264.243ZM18 168.485L18 95.7579L-1.15504e-05 95.7579L-8.3714e-06 168.485L18 168.485ZM18 360L18 287.273L-3.17899e-06 287.273L0 360L18 360ZM18 72.7274L18 -7.86806e-07L-1.57361e-05 0L-1.25571e-05 72.7274L18 72.7274Z' fill='%23DA192E'%3E%3C/path%3E%3C/svg%3E");
    }
  }

  .hyperlink {
    color: var(--white, #fff);
  }
}

@media only screen and (min-width: 640px) {
  .hero-banner__img-container img {
    height: 100%;
    object-fit: cover;
  }
}

.duo-banners {
  container-name: duo-banners;
  container-type: inline-size;
}

.duo-banners__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: min(var(--spacing-300, 24px), 4cqw) 0;

  @media only screen and (min-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 min(var(--spacing-300, 24px), 2cqw);
  }
}

#content-grid--christmas-gifts {
  --content-grid__amount-per-row: 4;
  --content-grid__item__width__parent-width: 1200px;
  --content-grid__gap: var(--spacing-600, 64px);
  gap: var(--spacing-200, 16px) var(--content-grid__gap);

  .content-grid__item__image-container > img {
    width: revert-layer;
    max-width: 100%;
    height: auto;
    margin: auto;
  }

  .deco--1 {
      /* --deco--scale: scale(1); */
      --deco--translate: translate(27cqw, 34cqw);
      --deco--rotate: rotate(28deg);
    }

    .deco--2 {
      --deco--scale: scale(1.5);
      --deco--translate: translate(-39cqw, -5cqh);
      --deco--rotate: rotate(-17deg);
    }

    .deco--3 {
      --deco--scale: scale(2.25);
      --deco--translate: translate(18cqw, -19cqh);
      --deco--rotate: rotate(3deg);
    }
}

#content-grid--be-inspired {
  @media only screen and (min-width: 990px) {
    --content-grid__amount-per-row: 3;
  }
}

#content-grid--personalised-gifts {
  --content-grid__amount-per-row: 4;
  --content-grid__item__width__parent-width: 1200px;
  --content-grid__gap: var(--spacing-600, 64px);
  gap: var(--spacing-200, 16px) var(--content-grid__gap);

  .content-grid__item__image-container > img {
    width: revert-layer;
    max-width: 100%;
    height: auto;
    margin: auto;
  }

  .deco--1 {
      /* --deco--scale: scale(1); */
      --deco--translate: translate(27cqw, 34cqw);
      --deco--rotate: rotate(28deg);
    }

    .deco--2 {
      --deco--scale: scale(1.5);
      --deco--translate: translate(-39cqw, -5cqh);
      --deco--rotate: rotate(-17deg);
    }

    .deco--3 {
      --deco--scale: scale(2.25);
      --deco--translate: translate(18cqw, -19cqh);
      --deco--rotate: rotate(3deg);
    }
}

#why-shop-at-officeworks {
  .content-grid {
    --content-grid__amount-per-row: 1;

    img {
      border-radius: var(--spacing-50, 4px);
    }
  }
}
