.tf-product-hero {
  --tf-hero-content-width: 1279px;
  --tf-hero-copy-width: 543px;
  --tf-hero-gallery-width: 685px;
  --tf-hero-gallery-image-width: 673px;
  --tf-hero-gap: 51px;
  position: relative;
  isolation: isolate;
  min-height: 700px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #111;
  background: #fff;
}

.tf-product-hero__background {
  position: absolute;
  z-index: -1;
  inset: 0 16px;
  background: #efefef;
  overflow: hidden;
}

.tf-product-hero__background img {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: fill;
}

.tf-product-hero__inner {
  display: grid;
  grid-template-columns: var(--tf-hero-copy-width) var(--tf-hero-gallery-width);
  align-items: start;
  column-gap: var(--tf-hero-gap);
  width: min(var(--tf-hero-content-width), calc(100% - 30px));
  min-height: 700px;
  margin: 0 30px 0 auto;
  padding: 85px 0 23px;
  box-sizing: border-box;
}

.tf-product-hero__copy {
  align-self: start;
  padding-top: 0;
}

.tf-product-hero__copy h1 {
  max-width: 100%;
  margin: 0 0 65px;
  color: #111;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(56px, 7.64vw, 110px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* Keep the Figma-sized title for ordinary names; long native catalog names
 * get a deterministic, still-display-prominent size without truncation. */
.tf-product-hero--long-title .tf-product-hero__copy h1 {
  font-size: clamp(36px, 4.45vw, 64px);
  line-height: .95;
  letter-spacing: 1px;
  overflow-wrap: break-word;
  word-break: normal;
}

.tf-product-hero__copy p {
  max-width: 100%;
  margin: 0;
  color: #111;
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.tf-product-hero__media {
  display: flex;
  flex-direction: column;
  width: var(--tf-hero-gallery-width);
  min-width: 0;
}

.tf-product-hero__gallery {
  width: var(--tf-hero-gallery-image-width);
  max-width: 100%;
  min-height: 555px;
  margin-left: 0;
}

.tf-product-hero__slides {
  width: 100%;
  height: 555px;
}

.tf-product-hero__slide {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.tf-product-hero__slide[hidden] {
  display: none;
}

/* Scoped under the hero root so WooCommerce's `.woocommerce img { height: auto }`
   (same specificity, loaded later) cannot let tall photos overflow the frame. */
.tf-product-hero .tf-product-hero__slide > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.tf-product-hero .tf-product-hero__slide--figma-tactical > img {
  position: absolute;
  left: -76.66%;
  top: -1.26%;
  width: 182.16%;
  height: 105.17%;
  max-width: none;
  object-fit: fill;
  object-position: center;
}

.tf-product-hero__empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 555px;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  color: #333;
  border: 1px solid rgba(17, 17, 17, .25);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  text-align: center;
}

.tf-product-hero__controls {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  width: var(--tf-hero-gallery-width);
  max-width: none;
  height: 34px;
  margin-top: 3px;
}

.tf-product-hero__controls[hidden] {
  display: none;
}

.tf-product-hero__control {
  position: absolute;
  top: -5px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tf-product-hero__control--previous { left: -13px; }
.tf-product-hero__control--next { right: -13px; }

.tf-product-hero__control:hover,
.tf-product-hero__control:focus-visible {
  background: rgba(17, 17, 17, .1);
}

.tf-product-hero__control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tf-product-hero__control img {
  display: block;
  width: 34px;
  height: 18px;
}

.tf-product-hero__control--previous img {
  transform: rotate(-90deg) scaleY(-1);
}

.tf-product-hero__control--next img {
  transform: rotate(-90deg);
}

.tf-product-hero__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: #111;
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.tf-product-hero__noscript-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .tf-product-hero {
    min-height: 0;
    overflow: visible;
  }

  .tf-product-hero__background img {
    min-height: 100%;
  }

  .tf-product-hero__background {
    inset: 0 16px;
  }

  .tf-product-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100% - 32px), 760px);
    margin-right: auto;
    min-height: 0;
    padding: 56px 0 32px;
  }

  .tf-product-hero__copy {
    width: 100%;
  }

  .tf-product-hero__copy h1 {
    margin-bottom: 32px;
    font-size: clamp(54px, 13vw, 96px);
    line-height: .92;
  }

  .tf-product-hero--long-title .tf-product-hero__copy h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1;
  }

  .tf-product-hero__copy p {
    max-width: 54rem;
  }

  .tf-product-hero__media {
    width: 100%;
    margin-top: 36px;
  }

  .tf-product-hero__gallery,
  .tf-product-hero__controls {
    width: 100%;
  }

  .tf-product-hero__gallery,
  .tf-product-hero__empty {
    min-height: 0;
  }

  .tf-product-hero__slides {
    height: auto;
    aspect-ratio: 673 / 555;
  }

  .tf-product-hero__empty {
    min-height: 180px;
  }
}

@media (min-width: 1001px) and (max-width: 1349px) {
  .tf-product-hero__inner {
    grid-template-columns: minmax(0, .792fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3.62vw, 51px);
  }

  .tf-product-hero__media,
  .tf-product-hero__gallery,
  .tf-product-hero__controls {
    width: 100%;
  }

  .tf-product-hero__gallery,
  .tf-product-hero__empty {
    min-height: 0;
  }

  .tf-product-hero__slides {
    height: auto;
    aspect-ratio: 673 / 555;
  }

}

@media (max-width: 560px) {
  .tf-product-hero__inner {
    width: calc(100% - 32px);
    padding-top: 36px;
  }

  .tf-product-hero__copy h1 {
    margin-bottom: 24px;
    font-size: clamp(48px, 16vw, 76px);
  }

  .tf-product-hero__media {
    margin-top: 28px;
  }
}
