/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0em) {
  #sbs,
  #sbs-r {
    padding: var(--sectionPadding);
  }

  #sbs .cs-container,
  #sbs-r .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 2.5rem;
  }

  #sbs .cs-left,
  #sbs-r .cs-left {
    font-size: min(2.31vw, 0.7em);
    width: 39.4375em;
    height: 39.75em;
    position: relative;
  }

  #sbs .cs-picture,
  #sbs-r .cs-picture {
    border-radius: 1.5em;
    overflow: hidden;
    position: absolute;
    display: block;
  }

  #sbs .cs-picture img,
  #sbs-r .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  #sbs .cs-picture1 {
    width: 32.625em;
    height: 36.3125em;
    left: 0;
    top: 0;
  }

  #sbs-r .cs-picture1 {
    width: 32.625em;
    height: 36.3125em;
    right: 0;
    top: 0;
  }

  #sbs .cs-right,
  #sbs-r .cs-right {
    margin: auto;
    max-width: 33.875rem;
  }

  #sbs .cs-topper,
  #sbs-r .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
  }

  #sbs .cs-title,
  #sbs-r .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    max-width: 50rem;
    margin: 0 auto 1rem;
    color: var(--headerColor);
    position: relative;
  }

  #sbs .cs-text,
  #sbs-r .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: left;
    width: 100%;
    max-width: 46.875rem;
    margin: 0 auto 1rem;
    color: var(--bodyTextColor);
  }

  #sbs .cs-text:last-of-type,
  #sbs-r .cs-text:last-of-type {
    margin-bottom: 1rem;
  }

  #sbs .button-solid,
  #sbs-r .button-solid {
    margin-top: 1.5rem;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64em) {
  #sbs .cs-container,
  #sbs-r .cs-container {
    flex-flow: row;
    justify-content: space-between;
    gap: 3.25rem;
  }

  #sbs .cs-left,
  #sbs-r .cs-left {
    font-size: min(1.2vw, 1em);
    flex: none;
  }

  #sbs-r .cs-left {
    order: 2;
  }

  #sbs .cs-right,
  #sbs-r .cs-right {
    margin: 0;
  }
}

/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #sbs .cs-topper,
  body.dark-mode #sbs-r .cs-topper {
    color: var(--primaryLight);
  }

  body.dark-mode #sbs .cs-title,
  body.dark-mode #sbs .cs-text,
  body.dark-mode #sbs-r .cs-title,
  body.dark-mode #sbs-r .cs-text {
    color: var(--bodyTextColorWhite);
  }
}

/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125rem 0;
  }

  #cta:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: 0.7;
    top: 0;
    left: 0;
    z-index: -1;
  }

  #cta .container {
    text-align: center;
  }

  #cta picture {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
  }

  #cta picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  #cta .title {
    font-weight: 900;
    font-size: min(9vw, 3rem);
    line-height: 1.20833333;
    color: #fff;
    position: relative;
    margin-bottom: 2.25rem;
    text-align: center;
  }

  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 2.25rem;
    width: 96%;
    max-width: 37.375rem;
  }
}

/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 10.5rem 0;
  }
}

/* Large Desktop */
@media only screen and (min-width: 81.25em) {
  #cta {
    position: relative;
    margin-top: 6.25rem;
  }

  #cta:before {
    display: none;
  }

  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 69.25rem;
    width: 125rem;
    background: url("/assets/svgs/cta-squares.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -3;
  }

  #cta .container {
    width: 90.0625%;
    margin: auto;
  }

  #cta picture {
    width: 90.0625%;
    left: 50%;
    transform: translateX(-50%);
  }

  #cta picture:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: 0.7;
    top: 0;
    left: 0;
    z-index: 1;
  }
}

/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #cta:after {
    display: none;
  }
}
