/* CMATS site overrides on top of the Twilli Air theme */

#left-sidebar #main-menu > li.menu-group {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
#left-sidebar #main-menu > li.menu-group > span {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 8px 4px;
  font-family: "open_sansbold", sans-serif;
  font-weight: 800;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 2px 4px #000;
}

@media (min-width: 768px) {
  #left-sidebar {
    overflow: hidden;
    height: auto !important;
    top: 0;
    bottom: 124px;
    display: flex;
    flex-direction: column;
  }
  #left-sidebar .logo {
    padding: 14px 0 6px !important;
    flex-shrink: 0;
  }
  #left-sidebar .logo img {
    max-width: 58%;
  }
  #left-sidebar #main-menu {
    flex: 1 1 auto;
    overflow: hidden;
    margin: 4px 0 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  #left-sidebar #main-menu > li.menu-group > span {
    padding: 7px 6px 1px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  #left-sidebar #main-menu > li.menu-item > a,
  #left-sidebar #main-menu > li.menu-item > span {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.25;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000,
      0 2px 4px #000,
      0 0 10px rgba(0, 0, 0, 0.85);
  }
  body.home-page #intro h1 {
    color: #111;
    text-shadow:
      0 0 6px #fff,
      0 0 12px #fff,
      1px 1px 0 rgba(255, 255, 255, 0.9),
      -1px -1px 0 rgba(255, 255, 255, 0.7);
  }
  body.home-page #main-content #events.section-wrapper,
  body.home-page #main-content #contact.section-wrapper {
    min-height: 0 !important;
    height: auto !important;
  }
  body.home-page #main-content #events .content-wrapper,
  body.home-page #main-content #contact .content-wrapper {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
  }
  body.home-page #main-content #events .content-wrapper {
    text-align: right;
    padding: 8px 0 8px !important;
  }
  body.home-page #main-content #contact .content-wrapper {
    text-align: right;
    padding: 48px 0 40px !important;
  }
  #footer {
    z-index: 5;
    bottom: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.38) 72%,
      rgba(0, 0, 0, 0) 100%
    );
    padding: 6px 8px 8px;
  }
  #footer .social-icons {
    margin: 2px 0 4px;
  }
  #footer .social-icons li a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
  }
}

#footer {
  color: rgba(255, 255, 255, 0.88);
}
#footer .footer-text-line {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
#footer .social-icons li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 18px;
  text-align: center;
  opacity: 1;
}
#footer .social-icons .fa-facebook {
  color: #3b7fd1;
}
#footer .social-icons .fa-youtube-play {
  color: #e04848;
}
#footer .social-icons li a:hover {
  opacity: 1;
}
#footer .social-icons li a:hover .fa-facebook {
  color: #4d8ed9;
}
#footer .social-icons li a:hover .fa-youtube-play {
  color: #e85d5d;
}

/* Inner pages: the theme pins short hero sections to the viewport.
   Long articles need normal document flow. */
body.inner-page,
body.inner-page #outer-container {
  height: auto;
  min-height: 100%;
}
body.inner-page #main-content {
  height: auto !important;
  min-height: 100%;
}
body.inner-page #main-content .section-wrapper,
body.inner-page #main-content .section-wrapper.modified-height {
  height: auto !important;
  min-height: 0 !important;
}
body.inner-page #main-content .section-wrapper .content-wrapper,
body.inner-page #main-content .section-wrapper.modified-height .content-wrapper {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  text-align: left;
  padding: 36px 0 90px;
  height: auto !important;
  background: none;
}
@media (max-width: 767px) {
  body.inner-page #main-content .section-wrapper .content-wrapper {
    text-align: left;
    padding: 24px 0 70px;
  }
  #left-sidebar #main-menu {
    padding-bottom: 8px;
  }
  #footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    margin-top: 8px;
  }
}

.page-panel {
  background: rgba(8, 8, 8, 0.78);
  padding: 28px 32px 40px;
  max-width: 920px;
  margin: 0 0 40px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
@media (max-width: 767px) {
  .page-panel {
    padding: 20px 16px 28px;
    margin-left: 0;
    margin-right: 0;
  }
}
.page-panel h1,
.page-panel h2,
.page-panel h3 {
  color: #fff;
}
.page-panel p,
.page-panel li,
.page-panel td,
.page-panel th {
  color: rgba(255, 255, 255, 0.92);
}
.page-panel .lede {
  font-size: 1.05em;
}

.kids-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  justify-content: center;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.kids-subnav a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #111;
  background-color: rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  font-size: 13px;
  min-height: 40px;
  line-height: 22px;
  font-family: "open_sansbold", sans-serif;
  font-weight: normal;
  text-shadow: none;
}
.kids-subnav a:hover,
.kids-subnav a.active {
  color: #111;
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 18px;
}
.schedule-table {
  width: 100%;
  min-width: 480px;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
}
@media (max-width: 767px) {
  .schedule-table th,
  .schedule-table td {
    font-size: 12px;
    padding: 8px 4px;
  }
}
.schedule-table th,
.schedule-table td {
  text-align: center;
  padding: 10px 8px;
  vertical-align: middle;
}
.schedule-table th {
  background: rgba(255, 255, 255, 0.08);
}
.time-red {
  color: #ff6b4a;
  font-weight: bold;
}

.bio-block {
  overflow: hidden;
  margin: 0 0 28px;
}
.bio-block img {
  max-width: 230px;
  height: auto;
  margin: 0 18px 12px 0;
  float: left;
}
.bio-block.right img {
  float: right;
  margin: 0 0 12px 18px;
}

.tour-block {
  overflow: hidden;
  margin: 0 0 28px;
}
.tour-block img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.tour-block .tour-photo {
  max-width: 380px;
  text-align: center;
  font-size: 80%;
  margin-bottom: 12px;
}
.tour-block .tour-photo.left {
  float: left;
  margin: 0 18px 12px 0;
}
.tour-block .tour-photo.right {
  float: right;
  margin: 0 0 12px 18px;
}
@media (max-width: 640px) {
  .bio-block img,
  .tour-block .tour-photo,
  .tour-block .tour-photo.left,
  .tour-block .tour-photo.right {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px 16px;
  text-align: center;
}
.gallery-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.gallery-card h3 {
  font-size: 15px;
  margin: 10px 0 4px;
  font-variant: normal;
  font-family: "open_sansbold", sans-serif;
}
.gallery-card p {
  font-size: 13px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.gallery-hidden {
  display: none;
}

.store-item {
  overflow: hidden;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.store-item img {
  max-width: 200px;
  height: auto;
  float: left;
  margin: 0 20px 12px 0;
}
.store-item h2 {
  font-size: 1.35em;
  margin-top: 0;
}
@media (max-width: 640px) {
  .store-item img {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }
}

.location-block {
  margin: 0 0 28px;
}
.location-block img {
  max-width: 186px;
  height: auto;
  margin: 0 8px 10px 0;
}

.quote {
  margin: 0 0 28px;
}
.quote footer {
  text-align: right;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

.faq-item {
  margin: 0 0 22px;
}
.faq-item h2 {
  font-size: 1.15em;
  font-variant: normal;
  font-family: "open_sansbold", sans-serif;
}

.event-year {
  margin: 28px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
}
.event-item {
  margin: 0 0 16px;
}

.strikes-wrap {
  text-align: center;
  margin: 12px 0 24px;
  overflow-x: auto;
}
.strikes-wrap img {
  max-width: 100%;
  height: auto;
}

.history-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.donate-box {
  margin-top: 18px;
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}
a.dark-link,
a.dark-link:hover,
a.dark-link:focus {
  color: #111;
  border-bottom-color: #111;
}

body.home-page #contact .section-title {
  color: #111;
  text-shadow: none;
}
body.home-page #contact .contact-details {
  float: none;
  width: 100%;
  margin: 0 0 18px;
  text-align: inherit;
}
body.home-page #contact .contact-details p,
body.home-page #contact .contact-details a:not(.btn) {
  color: #111;
  font-family: "open_sansregular", sans-serif;
  font-weight: 600;
  text-shadow: none;
}
body.home-page #contact .contact-details a:not(.btn) {
  border-bottom-color: #111;
}
body.home-page #contact .contact-details a:not(.btn):hover {
  color: #000;
  border-bottom-color: #000;
}
body.home-page #contact .maps {
  float: none;
  width: 100%;
  clear: both;
}
body.home-page #intro .welcome-line {
  line-height: 1.35;
  margin: 0.4em 0 0.7em;
}
body.home-page #intro .welcome-line .welcome-row {
  display: block;
  white-space: nowrap;
}
@media (max-width: 767px) {
  body.home-page #intro .welcome-line .welcome-row {
    white-space: normal;
  }
}
@media (max-width: 767px) {
  br.desktop-break {
    display: none;
  }
}
.intro-actions {
  margin-top: 8px;
}
.intro-actions .btn {
  margin: 0 8px 8px 0;
}
.btn-outline-inverse {
  color: #111;
  background-color: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.55);
  text-shadow: none;
  font-family: "open_sansbold", sans-serif;
  border-radius: 10px;
}
.btn-outline-inverse:hover,
.btn-outline-inverse:focus,
.btn-outline-inverse:active {
  color: #111;
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

@media (max-width: 767px) {
  a, .btn, .kids-subnav a {
    min-height: 44px;
  }
}

