/* =========================================
   YMCA FEATURE HERO
   ========================================= */

.ymca-feature-hero {
  position: relative;
  max-width: 1670px;
  margin: 40px auto 110px;
  padding: 0 20px;
  box-sizing: border-box;
}


/* IMAGE
   ----------------------------------------- */

.ymca-feature-image {
  width: 100%;
  height: 695px;
  overflow: hidden;
}

.ymca-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* BLUE CONTENT BOX
   ----------------------------------------- */

.ymca-feature-content {
  position: relative;
  width: calc(100% - 170px);
  margin: -270px auto 0;
  padding: 58px 48px 48px;
  box-sizing: border-box;

  background: #08a9df;
  color: #ffffff;

  z-index: 2;
}


/* HEADING
   ----------------------------------------- */

.ymca-feature-content h2 {
  margin: 0 0 18px;
  color: #ffffff;

  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}


/* DESCRIPTION
   ----------------------------------------- */

.ymca-feature-content p {
  max-width: 1450px;
  margin: 0 0 26px;

  color: #ffffff;
  font-size: 23px;
  line-height: 1.5;
}


/* BUTTON
   ----------------------------------------- */

.ymca-feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 270px;
  min-height: 56px;
  padding: 12px 30px;

  box-sizing: border-box;

  border: 2px solid #ffffff;
  border-radius: 30px;

  color: #ffffff !important;
  background: transparent;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


/* BUTTON HOVER */

.ymca-feature-button:hover,
.ymca-feature-button:focus {
  background: #ffffff;
  color: #0089d0 !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

  .ymca-feature-hero {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .ymca-feature-image {
    height: 500px;
  }

  .ymca-feature-content {
    width: calc(100% - 80px);
    margin: -170px auto 0;
    padding: 42px 38px 38px;
  }

  .ymca-feature-content h2 {
    font-size: 30px;
  }

  .ymca-feature-content p {
    font-size: 19px;
    line-height: 1.45;
  }

}


/* =========================================
   PHONE
   ========================================= */

@media (max-width: 767px) {

  .ymca-feature-hero {
    margin: 25px auto 40px;
    padding: 0;
  }

  .ymca-feature-image {
    height: 330px;
  }

  .ymca-feature-content {
    width: 100%;
    margin: 0;
    padding: 32px 25px 30px;
  }

  .ymca-feature-content h2 {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .ymca-feature-content p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.5;
  }

  .ymca-feature-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 17px;
  }

}


/* =========================================
   SMALL PHONE
   ========================================= */

@media (max-width: 480px) {

  .ymca-feature-image {
    height: 280px;
  }

  .ymca-feature-content {
    padding: 28px 22px 28px;
  }

  .ymca-feature-content h2 {
    font-size: 25px;
  }

  .ymca-feature-content p {
    font-size: 16px;
  }

}
/* =========================================
   YMCA SIDE HERO
   ========================================= */

.ymca-side-hero {
  position: relative;
  max-width: 1670px;
  margin: 40px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}


/* =========================================
   HERO IMAGE
   ========================================= */

.ymca-side-hero-image {
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.ymca-side-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* =========================================
   TEXT CARD
   ========================================= */

.ymca-side-hero-content {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  left: 70px;

  width: 580px;
  max-width: calc(100% - 140px);

  box-sizing: border-box;

  padding: 48px 48px 45px;

  background: #0089d0;
  color: #ffffff;

  /* Makes the card pop from the photograph */
  box-shadow:
  0 10px 25px rgba(0, 0, 0, 0.18),
  0 3px 8px rgba(0, 0, 0, 0.10);

  z-index: 2;
}

/* =========================================
   HEADING
   ========================================= */

.ymca-side-hero-content h2 {
  margin: 0 0 18px;

  color: #ffffff !important;

  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.ymca-side-hero-content p {
  margin: 0 0 28px;

  color: #ffffff !important;

  font-size: 19px;
  line-height: 1.55;
}


/* =========================================
   REGISTER BUTTON
   ========================================= */

.ymca-side-hero-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 250px;
  min-height: 54px;

  padding: 12px 30px;

  box-sizing: border-box;

  border: 2px solid #ffffff;
  border-radius: 30px;

  background: transparent;

  color: #ffffff !important;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;

  text-decoration: none !important;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


/* =========================================
   BUTTON HOVER
   ========================================= */

.ymca-side-hero-button:hover {
  background: #ffffff;
  color: #0089d0 !important;

  text-decoration: none !important;

  transform: translateY(-2px);
}


/* =========================================
   KEYBOARD ACCESSIBILITY
   ========================================= */

.ymca-side-hero-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

  .ymca-side-hero {
    padding: 0 20px;
  }

  .ymca-side-hero-image {
    height: 550px;
  }

  .ymca-side-hero-content {
    left: 50px;

    width: 500px;
    max-width: calc(100% - 100px);

    padding: 40px;
  }

  .ymca-side-hero-content h2 {
    font-size: 30px;
  }

  .ymca-side-hero-content p {
    font-size: 17px;
  }

}


/* =========================================
   SMALL TABLET / LARGE PHONE
   ========================================= */

@media (max-width: 767px) {

  .ymca-side-hero {
    margin: 25px auto 50px;
    padding: 0;
  }

  .ymca-side-hero-image {
    height: 350px;
  }

  /*
   * Remove the overlap on smaller screens.
   * The card becomes part of the normal page flow.
   */

  .ymca-side-hero-content {
    position: relative;

    top: auto;
    left: auto;

    transform: none;

    width: 100%;
    max-width: none;

    padding: 32px 25px 30px;
  }

  .ymca-side-hero-content h2 {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .ymca-side-hero-content p {
    margin-bottom: 24px;

    font-size: 17px;
    line-height: 1.5;
  }

  .ymca-side-hero-button {
    width: 100%;
    min-width: 0;
  }

}


/* =========================================
   SMALL PHONE
   ========================================= */

@media (max-width: 480px) {

  .ymca-side-hero-image {
    height: 280px;
  }

  .ymca-side-hero-content {
    padding: 28px 22px;
  }

  .ymca-side-hero-content h2 {
    font-size: 25px;
  }

  .ymca-side-hero-content p {
    font-size: 16px;
  }

}