.header-wrapper {
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .grid-col {
    padding: 0 2%;
  }
}

.grid {
  position: relative;
  text-align: center;
  border: solid 1px #ff0000;
}

.grid img {
  position: relative;
  display: block;
  opacity: 1;
}

.grid .caption {
  font-family: inherit;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15% 16%;
  color: #fff;
}

.box img {
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

.box h2 {
  width: 90%;
  color: #ffd700;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  bottom: 1%;
  left: 0;
  right: 0;
  font-size: calc(3px + 3.2vw);
  line-height: 1.35;
  transition: transform 0.35s;
  padding: 4px;
  background-color: rgba(188,0,0,0.85);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.7);
  text-shadow: 1px 1px 1px #000;
  border: solid 1px #000;
}

@media (min-width: 576px) {
  .box h2 {
    font-size: 18px;
    padding: 6px;
  }
}

@media (min-width: 1200px) {
  .box h2 {
    font-size: 20px;
  }
}

@media (min-width: 992px) {
  .box:hover h2 {
    transform: scale(0.9);
  }
}

.box p {
  font-size: 11px;
  line-height: 1.4;
  padding: 10px;
  margin-top: 0%;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  transform: scale(1.0);
  text-shadow: 1px 1px 2px #000;
}

@media (min-width: 1200px) {
  .box p {
    padding: 12px;
    font-size: 13px;
  }
}

.box:hover p {
  opacity: 1;
  transition: opacity 0.35s, transform 0.35s;
  transform: scale(1.5);
}

@media (min-width: 992px) {
  .box:hover img {
    opacity: 0.2;
  }
}

#programs p.mobile-description {
  font-size: 16px;
  color: #c3c3c3;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#programs p.mobile-description.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
}

#programs .toggle-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 4px 0 0 2px;
  cursor: pointer;
  text-decoration: underline;
  position: relative;
  opacity: 1;
  transition: opacity .3s;
}

@media (hover: hover) and (pointer: fine) {
  #programs .toggle-btn:hover {
    opacity: .7;
  }
}

#programs .touch-icon {
  position: absolute;
  z-index: 1;
  margin: 5px;
  width: 30px;
  height: 30px;
  background-color: #404040;
  border-radius: 50%;
}

/* Quote Styling */

#maQuote .speech-bubble {
  font-family: 'Open Sans', sans-serif;
  display: block;
  width: 100%;
  position: relative;
  background: #000;
  border: 3px solid #630600;
  border-radius: 4px;
  text-shadow: none;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 5px 5px 15px rgba(0,0,0,.7)!important;
}

#maQuote .speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -17px;
  right: 52px;
  transform: translateX(-50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background: linear-gradient(-45deg, #000 50%, transparent 0);
  border: 3px solid #630600;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 3px 0;
  box-sizing: border-box;
}

#maQuote .quote-wrapper {
  position: absolute;
  opacity: .1;
  z-index: 1;
  left: 10px;
  top: 10px;
}

#maQuote .quote-wrapper img {
  width: 120px;
  height: auto;
}

#maQuote .speech-bubble-signature {
  margin-top: 28px;
  margin-right: 50px;
  font-size: 17px;
  text-align: right;
}

#maQuote p {
  font-family: 'Open Sans', sans-serif;
  position: relative;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  text-align: justify;
  color: #d7d7d7;
  margin-bottom: 0;
  z-index: 2;
}

#maQuote .rating {
  background: #b40000;
  border-radius: 20px;
  padding: 0px 9px 4px 9px;
}

#maQuote .quote-text-b {
  font-family: 'Roboto Condensed', 'Roboto Condensed Fallback', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

@media (min-width: 992px) {
  #maQuote .quote-text-b {
    font-size: 21px;
  }
}

@media (min-width: 1200px) {
  #maQuote .quote-text-b {
    font-size: 26px;
  }
}

/* Read More-Less Styling */

#maQuote p.mobile-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#maQuote p.mobile-description.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
}

#maQuote .toggle-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 6px 0 0 3px;
  cursor: pointer;
  text-decoration: underline;
  position: relative;
  z-index: 3;
  opacity: 1;
  transition: opacity .3s;
}

@media (hover: hover) and (pointer: fine) {
  #maQuote .toggle-btn:hover {
    opacity: .7;
  }
}

