.pf-c-about-modal-box {
  // Component variables
  --pf-c-about-modal-box--BackgroundColor: var(--pf-global--palette--black-1000); // Modal uses a non-standard background color
  --pf-c-about-modal-box--BoxShadow: 0 0 100px 0 rgba(255, 255, 255, .05);  // This is a special one-off glow for the about modal
  --pf-c-about-modal-box--ZIndex: var(--pf-global--ZIndex--xl);
  --pf-c-about-modal-box--Height: 100%;
  --pf-c-about-modal-box--lg--Height: #{pf-size-prem(762px)}; // Height is optimized for the exact height desired
  --pf-c-about-modal-box--lg--MaxHeight: calc(100% - var(--pf-global--spacer--xl)); // MaxHeight ensures that the modal will not go off the screen and instead the content will scroll
  --pf-c-about-modal-box--Width: 100vw;
  --pf-c-about-modal-box--lg--Width: calc(100% - (var(--pf-global--spacer--3xl) * 2)); // Modal should be full width with a gutter on either side until it hits a max-width
  --pf-c-about-modal-box--lg--MaxWidth: #{pf-size-prem(1232px)};
  --pf-c-about-modal-box--PaddingTop: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box--PaddingRight: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box--PaddingBottom: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box--PaddingLeft: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box--sm--PaddingTop: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box--sm--PaddingRight: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box--sm--PaddingBottom: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box--sm--PaddingLeft: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box--sm--grid-template-columns: 5fr 1fr;
  --pf-c-about-modal-box--lg--grid-template-columns: 1fr .6fr;

  @media screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box--PaddingTop: var(--pf-c-about-modal-box--sm--PaddingTop);
    --pf-c-about-modal-box--PaddingRight: var(--pf-c-about-modal-box--sm--PaddingRight);
    --pf-c-about-modal-box--PaddingBottom: var(--pf-c-about-modal-box--sm--PaddingBottom);
    --pf-c-about-modal-box--PaddingLeft: var(--pf-c-about-modal-box--sm--PaddingLeft);
  }

  // Brand
  --pf-c-about-modal-box__brand--PaddingTop: var(--pf-global--spacer--2xl);
  --pf-c-about-modal-box__brand--PaddingRight: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__brand--PaddingLeft: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__brand--PaddingBottom: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__brand--sm--PaddingRight: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box__brand--sm--PaddingLeft: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box__brand--sm--PaddingBottom: var(--pf-global--spacer--3xl);

  @media screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box__brand--PaddingRight: var(--pf-c-about-modal-box__brand--sm--PaddingRight);
    --pf-c-about-modal-box__brand--PaddingLeft: var(--pf-c-about-modal-box__brand--sm--PaddingLeft);
    --pf-c-about-modal-box__brand--PaddingBottom: var(--pf-c-about-modal-box__brand--sm--PaddingBottom);
  }

  // Close
  --pf-c-about-modal-box__close--ZIndex: var(--pf-global--ZIndex--2xl);
  --pf-c-about-modal-box__close--PaddingTop: var(--pf-global--spacer--2xl);
  --pf-c-about-modal-box__close--PaddingRight: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__close--PaddingBottom: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__close--sm--PaddingBottom: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box__close--sm--PaddingRight: 0;
  --pf-c-about-modal-box__close--lg--PaddingRight: var(--pf-global--spacer--3xl);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box__close--PaddingRight: var(--pf-c-about-modal-box__close--sm--PaddingRight);
    --pf-c-about-modal-box__close--PaddingBottom: var(--pf-c-about-modal-box__close--sm--PaddingBottom);
  }

  @media only screen and (min-width: $pf-global--breakpoint--lg) {
    --pf-c-about-modal-box__close--PaddingRight: var(--pf-c-about-modal-box__close--lg--PaddingRight);
  }

  // Close Button
  --pf-c-about-modal-box__close--c-button--Color: var(--pf-global--Color--100);
  --pf-c-about-modal-box__close--c-button--FontSize: var(--pf-global--FontSize--xl);
  --pf-c-about-modal-box__close--c-button--BorderRadius: var(--pf-global--BorderRadius--lg);
  --pf-c-about-modal-box__close--c-button--Width: calc(var(--pf-c-about-modal-box__close--c-button--FontSize) * 2); // Height and width are 2x font-size
  --pf-c-about-modal-box__close--c-button--Height: calc(var(--pf-c-about-modal-box__close--c-button--FontSize) * 2);
  --pf-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-global--palette--black-1000); // Close button uses a non-standard background color
  --pf-c-about-modal-box__close--c-button--hover--BackgroundColor: #{rgba($pf-color-black-1000, .4)};

  // hero image
  --pf-c-about-modal-box__hero--sm--BackgroundImage: url("#{$pf-global--image-path}/pfbg_992@2x.jpg");
  --pf-c-about-modal-box__hero--sm--BackgroundPosition: top left;
  --pf-c-about-modal-box__hero--sm--BackgroundSize: cover;

  // Brand img
  --pf-c-about-modal-box__brand-image--Height: #{pf-size-prem(40px)};

  // Header
  --pf-c-about-modal-box__header--PaddingRight: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__header--PaddingBottom: var(--pf-global--spacer--sm);
  --pf-c-about-modal-box__header--PaddingLeft: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__header--sm--PaddingRight: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box__header--sm--PaddingLeft: var(--pf-global--spacer--3xl);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box__header--PaddingRight: var(--pf-c-about-modal-box__header--sm--PaddingRight);
    --pf-c-about-modal-box__header--PaddingLeft: var(--pf-c-about-modal-box__header--sm--PaddingLeft);
  }

  // Strapline
  --pf-c-about-modal-box__strapline--PaddingTop: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__strapline--FontSize: var(--pf-global--FontSize--sm);
  --pf-c-about-modal-box__strapline--sm--PaddingTop: var(--pf-global--spacer--2xl);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box__strapline--PaddingTop: var(--pf-c-about-modal-box__strapline--sm--PaddingTop);
  }

  // Content
  --pf-c-about-modal-box__content--MarginTop: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__content--MarginRight: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__content--MarginBottom: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__content--MarginLeft: var(--pf-global--spacer--xl);
  --pf-c-about-modal-box__content--sm--MarginTop: var(--pf-global--spacer--2xl);
  --pf-c-about-modal-box__content--sm--MarginRight: var(--pf-global--spacer--3xl);
  --pf-c-about-modal-box__content--sm--MarginBottom: var(--pf-global--spacer--2xl);
  --pf-c-about-modal-box__content--sm--MarginLeft: var(--pf-global--spacer--3xl);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    --pf-c-about-modal-box__content--MarginTop: var(--pf-c-about-modal-box__content--sm--MarginTop);
    --pf-c-about-modal-box__content--MarginRight: var(--pf-c-about-modal-box__content--sm--MarginRight);
    --pf-c-about-modal-box__content--MarginBottom: var(--pf-c-about-modal-box__content--sm--MarginBottom);
    --pf-c-about-modal-box__content--MarginLeft: var(--pf-c-about-modal-box__content--sm--MarginLeft);
  }

  // This component always needs to be dark
  @include pf-t-dark;

  position: relative;
  z-index: var(--pf-c-about-modal-box--ZIndex);
  display: grid;
  grid-template-rows: max-content max-content auto;
  grid-template-areas:
    "brand close"
    "header header"
    "content content";
  width: var(--pf-c-about-modal-box--Width);
  height: var(--pf-c-about-modal-box--Height);
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--pf-c-about-modal-box--BackgroundColor); // Because this component is always dark, set the background color
  box-shadow: var(--pf-c-about-modal-box--BoxShadow);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    grid-template-columns: var(--pf-c-about-modal-box--sm--grid-template-columns);
    grid-template-areas:
      "brand          hero"
      "header         hero"
      "content        hero";
  }

  @media only screen and (min-width: $pf-global--breakpoint--lg) {
    --pf-c-about-modal-box--Height: var(--pf-c-about-modal-box--lg--Height);
    --pf-c-about-modal-box--Width: var(--pf-c-about-modal-box--lg--Width);

    grid-template-columns: var(--pf-c-about-modal-box--lg--grid-template-columns);
    grid-template-rows: max-content max-content auto;
    max-width: var(--pf-c-about-modal-box--lg--MaxWidth);
    max-height: var(--pf-c-about-modal-box--lg--MaxHeight);
  }
}

// Brand
.pf-c-about-modal-box__brand {
  grid-area: brand;
  display: flex;
  padding: var(--pf-c-about-modal-box__brand--PaddingTop) var(--pf-c-about-modal-box__brand--PaddingRight) var(--pf-c-about-modal-box__brand--PaddingBottom) var(--pf-c-about-modal-box__brand--PaddingLeft);
}

.pf-c-about-modal-box__brand-image {
  height: var(--pf-c-about-modal-box__brand-image--Height);
}

// Header
.pf-c-about-modal-box__header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  padding-right: var(--pf-c-about-modal-box__header--PaddingRight);
  padding-bottom: var(--pf-c-about-modal-box__header--PaddingBottom);
  padding-left: var(--pf-c-about-modal-box__header--PaddingLeft);
}

.pf-c-about-modal-box__strapline {
  padding-top: var(--pf-c-about-modal-box__strapline--PaddingTop);
  margin-top: auto;
  font-size: var(--pf-c-about-modal-box__strapline--FontSize);
}

// Content
.pf-c-about-modal-box__content {
  display: flex;
  flex-direction: column;
  grid-area: content;
  margin: var(--pf-c-about-modal-box__content--MarginTop) var(--pf-c-about-modal-box__content--MarginRight) var(--pf-c-about-modal-box__content--MarginBottom) var(--pf-c-about-modal-box__content--MarginLeft); // Using margin instead of padding to prevent scrollbar extending to top of content block
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;

  @media screen and (min-width: $pf-global--breakpoint--sm) {
    overflow: visible;
    overscroll-behavior: auto;
  }
}

// Close
.pf-c-about-modal-box__close {
  grid-area: close;
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: var(--pf-c-about-modal-box__close--PaddingTop);
  padding-right: var(--pf-c-about-modal-box__close--PaddingRight);
  padding-bottom: var(--pf-c-about-modal-box__close--PaddingBottom);

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    grid-area: 1 / 2;
    justify-content: center; // center the close over the narrow hero image
  }

  @media only screen and (min-width: $pf-global--breakpoint--lg) {
    justify-content: flex-end; // align flex end the close over the narrow hero image
  }

  // Close button
  // Since this btn is unique to the about modal, use contextual selectors in this specific instance
  .pf-c-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--pf-c-about-modal-box__close--c-button--Width);
    height: var(--pf-c-about-modal-box__close--c-button--Height);
    font-size: var(--pf-c-about-modal-box__close--c-button--FontSize);
    color: var(--pf-c-about-modal-box__close--c-button--Color);
    background-color: var(--pf-c-about-modal-box__close--c-button--BackgroundColor);
    border-radius: var(--pf-c-about-modal-box__close--c-button--BorderRadius);

    &:hover,
    &.pf-m-hover {
      --pf-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-c-about-modal-box__close--c-button--hover--BackgroundColor);
    }
  }
}

// Hero
.pf-c-about-modal-box__hero {
  display: none; // Don't display the hero at the narrowest breakpoint
  visibility: hidden;

  @media only screen and (min-width: $pf-global--breakpoint--sm) {
    display: block;
    visibility: visible;
    background-image: var(--pf-c-about-modal-box__hero--sm--BackgroundImage);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: var(--pf-c-about-modal-box__hero--sm--BackgroundPosition);
    background-size: var(--pf-c-about-modal-box__hero--sm--BackgroundSize);
    grid-area: hero;
  }
}
