/**
 * Reusable image banner page hero.
 */

.gtg-page-image-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(360px, 48vh, 560px);
  padding: clamp(3.4rem, 7vw, 5.8rem) 0 clamp(4.6rem, 8vw, 6.8rem);
  overflow: hidden;
  background: #242a30;
  color: var(--gtg-paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(2.2rem, 4vw, 4.4rem)), 0 100%);
}

.gtg-page-image-banner::before {
  content: "";
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  background-image: var(--gtg-page-banner-image);
  background-size: cover;
  background-position: var(--gtg-page-banner-position, center 45%);
  background-repeat: no-repeat;
  filter: saturate(.96) contrast(.98);
  transform: scale(1.08);
}

.gtg-page-image-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37,43,50,.78) 0%, rgba(37,43,50,.58) 35%, rgba(37,43,50,.30) 65%, rgba(37,43,50,.10) 100%),
    linear-gradient(180deg, rgba(37,43,50,.10), rgba(37,43,50,.42));
}

.gtg-page-image-banner__panel {
  max-width: min(760px, 100%);
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  color: var(--gtg-paper);
  text-shadow: 0 2px 10px rgba(0,0,0,.44), 0 1px 2px rgba(0,0,0,.55);
}

.gtg-page-image-banner h1 {
  max-width: 780px;
  margin: 0 0 1.1rem;
  color: inherit;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.gtg-page-image-banner__lead {
  max-width: 620px;
  margin: 0;
  color: inherit;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 750;
}

@media (max-width: 700px) {
  .gtg-page-image-banner {
    min-height: auto;
    padding: 2.7rem 0 4.4rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.75rem), 0 100%);
  }

  .gtg-page-image-banner::after {
    background:
      linear-gradient(90deg, rgba(37,43,50,.82), rgba(37,43,50,.46)),
      linear-gradient(180deg, rgba(37,43,50,.05), rgba(37,43,50,.46));
  }

  .gtg-page-image-banner h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

.gtg-page-image-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.gtg-page-image-banner__buttons .gtg-button,
.gtg-page-image-banner__buttons .gtg-button:hover,
.gtg-page-image-banner__buttons .gtg-button:focus-visible {
  color: var(--gtg-ink);
  text-shadow: none;
}

.gtg-page-image-banner__buttons .gtg-button:not(.gtg-button--paper),
.gtg-page-image-banner__buttons .gtg-button:not(.gtg-button--paper):hover,
.gtg-page-image-banner__buttons .gtg-button:not(.gtg-button--paper):focus-visible {
  background: var(--gtg-orange);
}

.gtg-page-image-banner__buttons .gtg-button--paper,
.gtg-page-image-banner__buttons .gtg-button--paper:hover,
.gtg-page-image-banner__buttons .gtg-button--paper:focus-visible {
  background: var(--gtg-yellow);
}

@media (max-width: 520px) {
  .gtg-page-image-banner__buttons .gtg-button {
    width: 100%;
  }
}
