/*-- -------------------------- -->
<---     Landing Video Hero     -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  .fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 1s;
  }
  
  @keyframes fadeInOpacity {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  .landing {
    margin: 0;
    height: 100vh;
  }

  #video-hero {
    /*z-index: 1;*/
    box-sizing: border-box;
    position: relative;
    height: 100vh;
    .cs-content {
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      gap: 3rem;
      width: 100%;
      /*height: 100vh;*/
      text-align: center;
      margin-top: 0rem;
    }

    .cs-container {
      width: 100%;
      max-width: 85rem;
      margin: auto;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .cs-text {
      text-transform: uppercase;
      font-size: 1rem;
      text-align: center;
      color: white;
      max-width: 36.25rem;
    }

    .top-left {
      position: absolute;
      top: 2%;
      left: 2%;
    }

    .top-right {
      position: absolute;
      top: 2%;
      right: 2%;
    }

    .bottom-right {
      position: absolute;
      bottom: 2%;
      right: 2%;
    }

    .bottom-left {
      position: absolute;
      bottom: 2%;
      left: 2%;
    }

    .cs-background {
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -2;
    }

    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cs-logo-and-sub {
      display:flex;
      flex-direction: column;
      gap: 1.3rem;
    }
  }

  #video-hero .cs-content .cs-subcontent {
    /* width: 0%; */
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    text-transform: uppercase;
  }

  #video-hero .cs-content .cs-subcontent .cs-subtitle {
    width: 100px;
  } 
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  .landing {
    overflow: hidden;
  }
  #video-hero .cs-container {
    align-items: center;
  }
  #video-hero .cs-content .cs-subcontent {
    gap: 5rem;
  }

}

/* PAGE-SPECIFIC STYLES FOR THE ROSTER */
/*-- -------------------------- -->
<---          Divisions         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #kp-commercial-divisions {
    /* centers the button */
    text-align: center;
    padding: var(--sectionPadding);

    .cs-container {
      width: 100%;
      /* changes to 1280px at desktop */
      max-width: 34.375rem;
      margin: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* 48px - 64px */
      gap: clamp(3rem, 6vw, 4rem);
    }
  }
  #kp-commercial-divisions .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }
  #kp-commercial-divisions .cs-picture {
    width: 100%;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    aspect-ratio: 296/320;
    /* clips the corners off the image tag */
    overflow: hidden;
  }
  #kp-commercial-divisions .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Makes image behave like a background image */
    object-fit: cover;
    transition: transform 0.7s;
  }
  #kp-commercial-divisions .cs-card-group {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  #kp-commercial-divisions .cs-item {
    list-style: none;
    /* Changes on tablet */
    width: 100%;
    /* max-width: 21.25rem; */
    /* 16px - 20px */
    padding: clamp(1rem, 2vw, 1.25rem);
    padding-bottom: 1.25rem;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
  }
  #kp-commercial-divisions .cs-item:hover .cs-picture img {
    transform: scale(1.1);
  }
  #kp-commercial-divisions .cs-name {
    font-family: "Baskerville";
    font-style: italic;
    font-size: 2rem;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #626262;
    display: block;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  #kp-commercial-divisions .cs-container {
    max-width: 212.5em;
  }
  #kp-commercial-divisions .cs-card-group {
    flex-direction: row;
    max-width: unset;
    min-width: 1600px;
    max-width: 1900px;
  }
  #kp-commercial-divisions .cs-item {
    max-width: 20%;
  }
  #kp-commercial-divisions .cs-picture {
    height: 360px;
    /* aspect-ratio: none; */
  }
}

/* Large Desktop - 768px */
@media only screen and (min-width: 1920px) {
  #kp-commercial-divisions .cs-card-group {
    min-width: 2000px;
  }
  #kp-commercial-divisions .cs-picture {
    height: 500px;
    /* aspect-ratio: none; */
  }
}

