.home-location {
  position: relative;
}

.acf-map {
  width: 100%;
  height: 90vh;
}

.page-location .acf-map {
  height: 350px;
}

.gallery-slider-container {
  min-width: 350px;
  width: 60%;
  max-width: 100%;
  background-color: #333333;
}

.gallery-content {
  flex: 1;
  max-height: 666px;
  overflow-y: auto;
}

.gallery-item-img {
  position: relative;
  width: 100%;
  height: 665px;
  object-fit: contain;
  background-size: cover;
  background-color: black;
}

.gallery-item-img-caption {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  max-width: 200px;
  padding: 5px 8px 0;
  color: #000;
  font-style: italic;
  max-height: 97px;
  overflow-y: auto;
}

.lSPager img {
  width: 100%;
  height: 70px !important;
  object-fit: cover;
}

/* Gallery Nav and Close */
.gallery-slider-container .lSAction > a {
  background-color: #fb801d !important;
  opacity: 1;
  border-radius: 50%;
}

.gallery-slider-container .lSAction > a:hover,
.gallery-slider-container .lSAction > a:focus {
  opacity: 0.8;
}

.gallery-slider-container .lSNext {
  background-position: -35px -2px !important;
  width: 29px;
  height: 28px;
}

.gallery-slider-container .lSPrev {
  background-position: 0px -2px !important;
  width: 29px;
  height: 28px;
}

.modal-gallery {
  width: 1480px;
  max-width: 100%;
}

.acf-map img {
  max-width: inherit !important;
}

.home-location .map-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.home-location .map-overlay .map-menu {
  width: 300px;
  max-width: 100%;
  pointer-events: all;
}

.home-location .map-overlay .map-menu #menu-map-menu {
  background-color: white;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  text-decoration: none;
}

.header-search-form {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -38px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 101;
}

.header-search-form.hidden {
  display: none;
}

.header-search-form .search-form {
  width: 100%;
}

.header-search-form .search-form .search-field:focus {
  outline: none;
  box-shadow: none;
}

.header-search-icon,
.header-search-icon:hover,
.header-search-icon:focus {
  color: #005C39
}

#main-nav-mobile {
  display: none !important;
}

.footer-slider .footer-image {
  height: 400px;
  object-fit: cover;
  max-width: 150%;
  width: 150%;
}

img[id^="plugin_obj"] {
  display: none;
}

.tags-filter,
.calendar-filter {
  width: 450px;
  max-height: 300px;
  overflow-y: auto;
  max-width: 100%;
}

aside .sidebar-text {
  font-size: 1.25rem;
}

.gm-style-cc {
  display: none;
}

.search-event-item {
  min-height: 340px;
}

.hero-box .card-header {
  min-height: 135px;
}

.hero-box .hero-box-media {
  position: relative;
  min-height: 290px;
  color: white;
  overflow: hidden;
}

.hero-box .hero-box-media .hero-box-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.hero-box .hero-box-media .hero-box-image-credit {
  font-size: 12px;
  line-height: 1;
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
}

.notification a {
  font-weight: 500;
  color: white;
}

.notification .close {
  position: absolute;
  right: 12px;
  top: 6px;
}

.close-btn {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: 1px solid #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  font-size: 20px;
}

.close-btn.dark {
  border: 1px solid #343a40;
}

.sharethis-inline-share-buttons .st-btn,
.sharethis-inline-share-buttons .st-btn {
  opacity: 1 !important;
  background-color: transparent !important;
  border: 1px solid #343a40 !important;
}

.sharethis-inline-share-buttons .st-btn:hover,
.sharethis-inline-share-buttons .st-btn:focus {
  opacity: 1 !important;
  background-color: #343a40 !important;
  border: 1px solid #343a40 !important;
  top: 0 !important;
}

.sharethis-inline-share-buttons .st-btn:hover img,
.sharethis-inline-share-buttons .st-btn:focus img {
  filter: none !important;
}

.sponsor-img {
  width: auto;
  max-width: 120px;
  height: 50px;
  object-fit: contain;
}

.content-box-item {
  min-height: 320px;
}

.staff-content {
  flex: 1;
}

.staff-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

.card-content-box .card-text p {
  margin-bottom: 0;
}

.card-eyebrow {
  color: #30383B;
  font-weight: 700;
  font-size: 15.5px;
}

.event-item {
  min-height: 320px;
}

#wpadminbar {
  position: absolute;
}

.notification-container {
  min-height: 45px;
  font-size: 18px;
}

.filter-group .dropdown-menu {
  padding: 0;
}

.form-sidebar .btn-sm {
  height: 32px;
}

@media (max-width: 1200px) {
  #main-nav-mobile {
    position: absolute;
    width: 100%;
    top: 75px;
    z-index: 100;
  }

  #main-nav-mobile .navbar-nav {
    margin-top: 1rem;
  }

  #main-nav-mobile .navbar-nav .nav-link {
    padding: 0.5rem 0;
    /* CSHP Change color: #00aeef; */
    /* CSHP Change text-align: center; changes below here */
    color: #005C39;
    font-weight: 300 !important;
  }

  #main-nav-mobile.show {
    display: block !important;
  }

  #main-nav-mobile .py-3 > a:first-child {
    margin-bottom: 10px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .home-news .content-box-container {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .home-news .content-box-container .content-box-item {
    padding-right: 0;
  }

  .home-news .content-box-container .content-box-item article {
    width: 354px;
  }
}

@media (max-width: 767.98px) {
  #content.site-content {
    padding: 0 1rem !important;
  }

  .carousel-item {
    flex-direction: column;
  }

  .carousel-item .carousel-caption {
    order: 2;
    width: 100%;
    min-height: 300px;
    left: 0;
    padding-bottom: 70px !important;
  }

  .carousel-item .home-slider-image {
    height: 250px;
    order: 1;
  }

  .carousel-indicators {
    justify-content: center;
  }

  #primary {
    width: 100%;
  }

  .home-banner {
    padding: 0 1.5rem;
  }

  .home-events .events-list {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .home-events .events-list .event-item {
    padding-right: 0;
  }

  .home-events .events-list .event-item article {
    width: 233px;
  }

  .home-news .content-box-container .content-box-item article {
    width: 304px;
  }

  .card-title {
    font-size: 28px;
  }

  .map-menu .list-group .list-group-item span {
    font-size: 16px;
  }

  .map-menu .list-group.collapsed .other-menu-item,
  .map-menu .list-group.collapsed .sub-group {
    display: none;
  }

  #primary.content-area {
    padding: 0;
  }

  .card-img-top.page-image {
    height: 188px;
  }

  .text-sm {
    font-size: 0.875em;
  }

  .search-form {
    border-top: 1px solid rgba(161, 161, 160, 0.2);
    background-color: rgba(161, 161, 160, 0.2);
  }

  .search-form .search-field {
    padding: 0.5rem 1rem;
  }

  .search-form .close {
    display: none;
  }

  .home-location .map-overlay .map-menu {
    margin-left: 16px;
  }

  .page-nav-title {
    font-size: 18px;
    line-height: 18px;
  }

  .list-group.sub-group {
    max-height: 250px;
  }

  .footer-slider .footer-image {
    height: 300px;
    object-fit: cover;
    max-width: 100%;
    width: 100%;
  }

  .footer-slider .content-widget {
    order: 2;
  }

  .gallery-slider-container {
    width: 100%;
  }

  .gallery-content {
    max-height: 100%;
    font-size: 1.41rem;
  }

  .gallery-content > h4 {
    font-size: 1.65rem;
  }

  .gallery-item-img {
    height: 300px;
  }

  .gallery-flex {
    flex-direction: column !important;
  }

  .page-side-nav {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.25);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 65px;
    z-index: 101;
  }

  .form-sidebar {
    font-size: 18px;
    order: 2;
  }

  .form-sidebar .btn-sm {
    font-size: 16px;
    height: 32px;
  }

  .carousel-caption .caption-text {
    font-size: 24px;
    line-height: 30px;
  }

  .filter-group {
    position: inherit;
  }

  .filter-group .dropdown-menu {
    left: 0;
  }

  .form-group label {
    font-size: 16px;
  }

  .notification-container {
    font-size: 16px;
  }
}

/* Prevent page titles and heading tags from breaking awkwardly mid-word on smaller screens */
.page-title, .card-title, h1, h2, h3, h4, h5, h6 {
  word-break: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Adjust massive page titles for mobile/tablet screens so long words fit without character-breaking */
@media (max-width: 768px) {
  .card-body .page-title,
  .card-header .page-title {
    font-size: 44px !important;
    line-height: 48px !important;
  }
}

@media (max-width: 480px) {
  .card-body .page-title,
  .card-header .page-title {
    font-size: 38px !important;
    line-height: 42px !important;
  }
}
