/**********************************************************
  CSS for this block. Classes on block elements and the 
  selectors that target them should be designed so they 
  will only affect the contents of the block.
**********************************************************/

/******************** BANNER ********************/
.block .banner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  min-height: 15rem;
}

.block .banner h1,
.block .banner h2 {
  text-transform: uppercase;
  font-family: var(--united-sans-cond);
  font-size: 3rem;
  line-height: 3rem;
}

.block .banner .purdue-btn-list a {
  font-size: 1rem;
  justify-content: space-between;
  align-items: center;
}

.block .banner p.intro-text {
  margin-bottom: 2rem;
  font-family: var(--acumin-pro);
  font-size: 1.25rem;
  line-height: 1.4;
}

.block .banner p.intro-text.text-center {
  max-width: 80%;
  margin: 0 auto 2rem;
}

@media screen and (min-width: 768px) {
  .block .banner h1,
  .block .banner h2 {
    font-size: 5rem;
    line-height: 5rem;
  }
}

@media screen and (min-width: 992px) {
  .block .banner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .block .banner h1,
  .block .banner h2 {
    font-size: 6rem;
    line-height: 6rem;
  }
}

/******************** END BANNER ********************/

/******************** SPLIT MOTION BANNER ********************/
.block .banner.banner-split-motion {
  position: relative;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-flow: column nowrap;
}

.block .banner.banner-split-motion .split-motion-content {
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}

.block .banner.banner-split-motion .split-motion-image,
.block .banner.banner-split-motion .split-motion-video {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  z-index: 0;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

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

.block .banner.banner-split-motion-video .split-motion-video iframe {
  width: 300%;
  height: 115%;
  margin-left: -100%;
  /* Remove pointer events so the video controls never appear when hovering or clicking */
  pointer-events: none;
  /* Javascript button listeners remove the iframe's src value and re-add it when clicking the pause and play button. Adding the src back into the iframe restarts the video. */
}

.block .banner.banner-split-motion-video .split-motion-video button.video-play,
.block .banner.banner-split-motion-video .split-motion-video button.video-pause {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 999;
  border: none;
  background-color: transparent;
  width: 50px;
  margin: 1rem;
  cursor: pointer;
}

.block .banner.banner-split-motion-video.split-motion-reverse .split-motion-video button.video-play,
.block .banner.banner-split-motion-video.split-motion-reverse .split-motion-video button.video-pause {
  right: unset;
  left: 0;
}

/* TODO: Check ALL mobile and responsive styles with media queries. */
@media screen and (min-width: 992px) {
  .block .banner.banner-split-motion {
    display: flex;
    flex-flow: row nowrap;
  }

  .block .banner.banner-split-motion .container {
    max-width: 50%;
    width: 90%;
  }

  .block .banner.banner-split-motion .split-motion-content {
    padding: 6rem 1rem 6rem 6rem;
  }

  .block .banner.banner-split-motion.split-motion-reverse .split-motion-content {
    padding: 6rem 6rem 6rem 1rem;
  }

  .block .banner.banner-split-motion.split-motion-reverse {
    display: flex;
    flex-flow: row-reverse nowrap;
  }

  .block .banner.banner-split-motion .split-motion-image:before,
  .block .banner.banner-split-motion .split-motion-video:before {
    content: "";
    height: 103%;
    position: absolute;
    top: -0.5%;
    left: -1px;
    width: 10rem;
    z-index: 1;
    -webkit-clip-path: polygon(0 0, 0 100%, 100% 0);
    clip-path: polygon(0 0, 0 100%, 100% 0);
  }

  .block .banner.banner-split-motion.split-motion-reverse .split-motion-image:before,
  .block .banner.banner-split-motion.split-motion-reverse .split-motion-video:before {
    right: -1px;
    left: unset;
    -webkit-clip-path: polygon(0 100%, 100% 0, 100% 100%);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
  }

  .block.--bg-white .banner.banner-split-motion .split-motion-image:before,
  .block.--bg-white .banner.banner-split-motion .split-motion-video:before {
    background-color: white;
  }

  .block.--bg-black .banner.banner-split-motion .split-motion-image:before,
  .block.--bg-black .banner.banner-split-motion .split-motion-video:before {
    background-color: black;
  }

  .block.--bg-steel .banner.banner-split-motion .split-motion-image:before,
  .block.--bg-steel .banner.banner-split-motion .split-motion-video:before {
    background-color: var(--steel-gray);
  }

  .block.--bg-light-gray .banner.banner-split-motion .split-motion-image:before,
  .block.--bg-light-gray .banner.banner-split-motion .split-motion-video:before {
    background-color: var(--light-gray);
  }
}
/******************** END SPLIT MOTION BANNER ********************/

/******************** FULL IMAGE BANNER ********************/
.block .banner.full-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/******************** END FULL IMAGE BANNER ********************/

/******************** STACKED IMAGES BANNER ********************/
.block .banner.stacked-images {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.block .banner.stacked-images .content-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.block .banner.stacked-images .stacked-images-container {
  width: 402px;
  display: none;
}

.block .banner.stacked-images .stacked-image {
  max-width: 402px;
}

.block .banner.stacked-images .stacked-image img {
  border-radius: 4px;
  border: 2px solid var(--boiler-gold);
  max-width: 402px;
}

@media screen and (min-width: 992px) {
  .block .banner.stacked-images .container {
    flex-flow: row nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  .block .banner.stacked-images .content-container {
    padding-top: 6rem;
    padding-bottom: 6rem;
    max-width: 50%;
  }

  .block .banner.stacked-images .stacked-images-container {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
  }
}
/******************** END STACKED IMAGES BANNER ********************/

/******************** SPLIT STATS BANNER ********************/
.block .banner.split-stats {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-flow: column nowrap;
}

.block .banner.split-stats .content-container,
.block .banner.split-stats .stats-container {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
}

.block .banner.split-stats .content-container {
  align-items: flex-end;
}

.block .banner.split-stats .content-container .content-area {
  width: 100%;
}

.block .banner.split-stats .intro-text {
  font-size: 1rem;
}

.block .banner.split-stats .stats-container .stats-area {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  gap: 2rem;
}

.block .banner.split-stats .stats-container .stats-heading,
.block .banner.split-stats .stats-container .stat-heading {
  color: var(--boiler-gold);
  text-transform: uppercase;
}

.block .banner.split-stats .stats-container .stats-heading {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.block .banner.split-stats .stats-container .stats-heading:after {
  content: "";
  flex-grow: 1;
  border-top: 2px solid var(--boiler-gold);
  position: relative;
  display: flex;
  margin-left: 25px;
}

.block .banner.split-stats .stats-container .stat-heading {
  font-size: 3rem;
  line-height: 0.9;
  font-weight: 700;
  font-family: var(--united-sans-cond);
}

.block .banner.split-stats .stats-container .stat-text,
.block .banner.split-stats .stats-container .stat-cite,
.block .banner.split-stats .stats-container .stat-cite a {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.block .banner.split-stats .stats-container .stat-cite,
.block .banner.split-stats .stats-container .stat-cite a {
  font-style: italic;
}

.block .banner.split-stats .stats-container .stat-cite a:hover {
  text-decoration: none;
}

@media screen and (min-width: 425px) {
  .block .banner.split-stats .stats-container .stats-area {
    flex-flow: row nowrap;
  }
}

@media screen and (min-width: 768px) {
  .block .banner.split-stats .intro-text {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .block .banner.split-stats .stats-container .stat-heading {
    font-size: 5rem;
    line-height: 5rem;
  }

  .block .banner.split-stats .stats-container .stat-text,
  .block .banner.split-stats .stats-container .stat-cite,
  .block .banner.split-stats .stats-container .stat-cite a {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

@media screen and (min-width: 992px) {
  .block .banner.split-stats {
    flex-flow: row nowrap;
  }

  .block .banner.split-stats .stats-container .stats-area {
    flex-flow: column nowrap;
  }

  .block .banner.split-stats .content-container {
    width: 60%;
  }

  .block .banner.split-stats .stats-container {
    width: 40%;
  }

  .block .banner.split-stats .content-container .content-area {
    max-width: calc(992px * 0.6 - 32px);
  }

  .block .banner.split-stats .stats-container .stats-area {
    max-width: calc(992px * 0.4 - 32px);
  }
}

@media screen and (min-width: 992px) {
  .block .banner.split-stats .stats-container .stat-heading {
    font-size: 6rem;
    line-height: 1;
  }
}

@media screen and (min-width: 1200px) {
  .block .banner.split-stats .content-container .content-area {
    max-width: calc(1200px * 0.6 - 32px);
  }

  .block .banner.split-stats .stats-container .stats-area {
    max-width: calc(1200px * 0.4 - 32px);
  }
}

@media screen and (min-width: 1400px) {
  .block .banner.split-stats .content-container .content-area {
    max-width: calc(1400px * 0.6 - 32px);
  }

  .block .banner.split-stats .stats-container .stats-area {
    max-width: calc(1400px * 0.4 - 32px);
  }
}
/******************** END SPLIT STATS BANNER ********************/

/******************** DECORATIVE IMAGE BANNER ********************/
.block .banner.banner-decorative {
  padding: 0;
  max-height: 45rem;
  overflow: hidden;
}

.block .banner.banner-decorative img {
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/******************** END DECORATIVE IMAGE BANNER ********************/
