@import url("../home-feature/banner-glass.css");

.category-banner {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1600px, calc(100% - 48px));
  margin: 1.15rem auto clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 721px) {
  html body .category-banner + .catalog-section {
    box-sizing: border-box;
    width: min(1600px, calc(100% - 48px));
    padding-inline: 0;
  }
}

.category-banner-image {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 9;
  border-radius: 1rem;
  overflow: hidden;
}

.category-banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-banner-copy {
  position: absolute;
  z-index: 2;
  inset-inline-start: 7%;
  inset-block-start: 56%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: min(49%, 34rem);
  padding: clamp(.8rem, 2.2vw, 2rem);
  border: 0;
  border-radius: 20px;
  color: var(--hero-glass-heading);
  text-shadow: 0 1px 2px #171510, 0 0 7px #171510;
  background: var(--hero-glass);
  backdrop-filter: var(--hero-blur);
  -webkit-backdrop-filter: var(--hero-blur);
}

.category-banner-copy h1 {
  margin: .35em 0;
  font-size: clamp(1.75rem, 3.6vw, 4.1rem);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.category-banner-copy h1 em { color: var(--hero-nature-gold, #e4cb98); }
.category-banner-copy p { margin: 0; color: var(--hero-glass-copy); }
.category-banner-copy .eyebrow { color: var(--hero-nature-gold, #e4cb98); }

.category-banner-cutout {
  position: absolute;
  z-index: 1;
  width: min(17%, 14rem);
  pointer-events: none;
  filter: drop-shadow(0 .55rem .7rem rgba(0, 0, 0, .32));
}

.category-banner-cutout img { display: block; width: 100%; height: auto; }
.category-banner-cutout--upper-left { inset: -1rem auto auto -1.75vw; width: min(15%, 13rem); rotate: -8deg; }
.category-banner-cutout--upper-right { inset: -1.15rem -1.35vw auto auto; rotate: 8deg; }
.category-banner-cutout--left { inset: 9% auto auto -1.5vw; rotate: -12deg; width: min(13%, 12rem); }
.category-banner-cutout--lower-left { inset: auto auto -1.15rem -1.35vw; }
.category-banner-cutout--lower-right { inset: auto -1.5vw -1.45rem auto; width: min(12%, 10rem); }

@media (max-width: 720px) {
  .category-banner { width: 92%; margin-block: 1rem 1.8rem; }
  .category-banner-image { aspect-ratio: 4 / 5; }
  .category-banner-copy {
    inset: auto 5% 7%;
    width: auto;
    transform: none;
    padding: .85rem 1rem;
    font-size: .9rem;
  }
  .category-banner-copy h1 { font-size: clamp(1.45rem, 6.5vw, 2.4rem); }
  .category-banner-cutout { width: min(19%, 6rem); }
  .category-banner-cutout--upper-left { top: -.45rem; left: -1vw; }
  .category-banner-cutout--upper-right { top: -.55rem; right: -1vw; }
  .category-banner-cutout--left { left: -1vw; }
  .category-banner-cutout--lower-left,
  .category-banner-cutout--lower-right { bottom: -.9rem; width: min(14%, 5rem); }
}
