/* Do some header styling for the simplified menu system. Remove this if GeoTargeting plugin is reactivated */
.wp-block-geotargeting-pro-gutenberg-zipcode {
  display: none;
}

/* Add special flexbox ordering to age-group-pane to display generated date filter before class items */
.tab-pane.age-group-pane.age-group-pane.age-group-pane.active {
  display: flex;
  flex-direction: column;
}

.tab-pane.age-group-pane>* {
  order: 2;
}

.tab-pane.age-group-pane .date-filter {
  order: 1;
  margin-bottom: 1.5rem;
}

.tab-pane.age-group-pane:has(.berid-of-all-dates)>.nav.nav-tabs {
  display: none;
}

.date-filter.week-selector .filter-head {
  display: none;
}

.date-filter .filter-option {
  cursor: pointer;
  background-color: var(--global-palette8);
}

.date-filter .filter-option:hover {
  background: var(--global-palette-btn-bg-hover);
  color: #FFF;
}

.date-filter .filter-option.active {
  background: var(--global-palette-btn-bg);
  color: #FFF;
}

.nav-tabs .nav-link.nav-link,
.nav-tabs .nav-link.nav-link.active,
.nav-tabs .nav-link.nav-link:hover,
.nav-tabs .nav-link.nav-link:hover {
  border-color: #fff0;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .tab-pane.age-group-pane .date-filter {
    padding-top: 20px;
  }
}


@media (min-width: 1920px) {

  /* capping the font size of the "we create" h1 at larger screen sizes */
  .wp-block-kadence-advancedheading.kt-adv-heading6_c5f4b8-dd,
  .wp-block-kadence-advancedheading.kt-adv-heading6_c5f4b8-dd[data-kb-block="kb-adv-heading6_c5f4b8-dd"] {

    font-size: 105.6px !important;

  }

  /* capping the font size of the "artists" h1 at larger screen sizes */
  .wp-block-kadence-advancedheading.kt-adv-heading6_0516bc-a5,
  .wp-block-kadence-advancedheading.kt-adv-heading6_0516bc-a5[data-kb-block="kb-adv-heading6_0516bc-a5"] {

    font-size: 105.6px !important;

  }

}

@media (max-width: 600px) {

  /* line height for "we create" h1 adjustment to better handle the layout */
  .wp-block-kadence-advancedheading.kt-adv-heading6_c5f4b8-dd,
  .wp-block-kadence-advancedheading.kt-adv-heading6_c5f4b8-dd[data-kb-block="kb-adv-heading6_c5f4b8-dd"] {

    line-height: 0px !important;

  }
}

@media (min-width: 769px) {
  .tab-content.date-content .row {
    margin: initial;
  }

  .nav-tabs.nav-tabs,
  .date-filter.week-selector {
    position: relative;
  }

  .nav-tabs::before,
  .date-filter.week-selector::before {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
  }



  .tab-pane.age-group-pane .camps-content-wrapper {
    margin-top: 0 !important;
  }
}

.nav-tabs.date-tabs .nav-item:last-child:first-child {
  display: none;
}

.wp-block-kadence-navigation .email-text-decoration .kb-nav-link-content {
  text-decoration: underline !important;
}

.few-remainings {
  font-size: 12px;
}
.wp-element-button {
  white-space: nowrap;
}
.wp-element-button.is-sold-out {
  pointer-events: none;
}

/* =============================================
   Off-Canvas Mobile Nav Sub-Menu Toggle
   ============================================= */

/* Hide sub-menus by default inside the off-canvas */
.wp-block-kadence-off-canvas .menu-item-has-children>ul.sub-menu {
  display: none;
}

/* Show sub-menu when parent is toggled open */
.wp-block-kadence-off-canvas .menu-item-has-children.menu-item--toggled-on>ul.sub-menu {
  display: block;
}

/* Rotate the dropdown arrow when sub-menu is open */
.wp-block-kadence-off-canvas .kb-nav-dropdown-toggle {
  transition: transform 0.3s ease;
}

.wp-block-kadence-off-canvas .menu-item--toggled-on>.kb-link-wrap>.kb-nav-dropdown-toggle-btn .kb-nav-dropdown-toggle {
  transform: rotate(180deg);
}

/* Ensure the toggle button is tappable on mobile */
.wp-block-kadence-off-canvas .kb-nav-dropdown-toggle-btn {
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make parent links with no URL look tappable */
.wp-block-kadence-off-canvas .menu-item-has-children>.kb-link-wrap>.kb-nav-link-content[href=""],
.wp-block-kadence-off-canvas .menu-item-has-children>.kb-link-wrap>.kb-nav-link-content[href="#"],
.wp-block-kadence-off-canvas .menu-item-has-children>.kb-link-wrap>.kb-nav-link-content:not([href]) {
  cursor: pointer;
}

.kb-nav-link-content[href*="contact-us"] {
  white-space: nowrap;
}

/* Style the geot_dropdown container to be more prominent */
.geot_dropdown_container {
  position: relative;
}

.geot_dropdown_container .geot_sizer,
.geot_dropdown_container select {
  padding: 0.5em 2em 0.35em 0.8em;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  font-family: var(--global-body-font-family);
}

.geot_dropdown_container select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.geot_dropdown_container select,
.geot_dropdown_container select:focus,
.geot_dropdown_container select:active {
  color: #fff;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNmZmYiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==') no-repeat 98% 50%;
}

.geot_dropdown_container .geot_sizer {
  color: transparent;
  background: linear-gradient(180deg, #811E3B 0%, #5C0025 100%);
  border-radius: 0.25em;
  min-width: 120px;
  white-space: nowrap;
}

.geot_dropdown_container:has(.geot_sizer[data-value])::before {
  content: "Choose Location:";
  text-transform: uppercase;
  font-size: 12px;
  color: var(--global-palette3);
  position: absolute;
  bottom: calc(100% + 0px);
  left: 0;
  white-space: nowrap;
}

.geot_dropdown_container .parent-portal-link.desktop {
  position: absolute;
  bottom: calc(100% + 30px);
  right: 0;
  color: #8E0C3A;
  border: 1px solid #8E0C3A;
  padding: 0.4em 0.8em 0.3em;
  font: 600 13px/1 var(--global-body-font-family);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  border-radius: 0.3333em;
  box-shadow: 0 2px 6px #0000;
  transition: box-shadow 0.2s linear;
}
.geot_dropdown_container .parent-portal-link.desktop:hover {
  box-shadow: 0 2px 6px #0003;
}

.parent-portal-link:has(a[data-no-location]) {
  position: relative;
}
.parent-portal-link:has(a[data-no-location])::before {
  content: "";
  position: absolute;
  inset: 0;
  cursor: default;
}

@media (max-width: 1024px) {
  .geot_dropdown_container {
    margin-right: 14px;
  }
  .geot_dropdown_container:has(.geot_sizer[data-value]) {
    margin-top: 20px;
  }
  .geot_dropdown_container .parent-portal-link.desktop {
    display: none;
  }
}
@media (max-width: 768px) {
  .geot_dropdown_container:has(.geot_sizer[data-value])::before {
    left: initial;
    right: 0;
  }
  .geot_dropdown_container .geot_sizer,
  .geot_dropdown_container select {
    line-height: 1.4;
  }
}

/* ==============================================
   Parent Portal Tooltip
   ============================================== */

.parent-portal-tooltip {
  position: absolute;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 8px 14px;
  background: #333;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
.parent-portal-tooltip.visible {
  opacity: 1;
}

/* ==============================================
   Generic Popup
   ============================================== */

.cdv-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cdv-popup-overlay.is-open {
  display: flex;
}

body.cdv-popup-open {
  overflow: hidden;
}

.cdv-popup-modal {
  position: relative;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  max-width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.cdv-popup-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  z-index: 1;
  margin: 12px 12px 0 0;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 6px;
  flex-shrink: 0;
}

.cdv-popup-close:hover {
  color: #000;
}

.cdv-popup-body {
  padding: 0 24px 24px;
  flex: 1;
}

.cdv-popup-loading {
  padding: 40px 0;
  text-align: center;
  color: #888;
  font-style: italic;
}

@media (max-width: 600px) {
  .cdv-popup-overlay {
    padding: 8px;
  }

  .cdv-popup-modal {
    max-width: 100%;
    max-height: calc(100vh - 16px);
  }

  .cdv-popup-close {
    margin: 10px 10px 0 0;
    font-size: 18px;
  }

  .cdv-popup-body {
    padding: 0 16px 20px;
  }

  .cdv-popup-loading {
    padding: 28px 0;
  }
}

/* Fix styling on trial form, text has wrong default styling */
.ginput_container.ginput_container input:is([type=text], [type=email], [type=tel])::placeholder {
  color: #000;
}

/* Hide featured location elements when no location is selected */
.no-location-selected .featured_location_title,
.no-location-selected .featured_location_block {
  display: none;
}

/* ==============================================
   Faculty Single Page
   ============================================== */

.faculty-single {
  padding-top: 0;
  max-width: 954px;
}

.faculty-single__header {
  position: relative;
  width: 100vw;
  left: calc(50% - 50vw);
  background-image: linear-gradient(185deg, rgb(0, 113, 206) 0%, rgb(0, 57, 104) 100%);
}
.faculty-single__header-inner {
  display: flex;
  flex-direction: column-reverse;
}
.faculty-single__header :is(h1, h2) {
  color: #fff;
}
.faculty-single__header h2 {
  font-style: normal;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.5;
}

.faculty-single__image {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 224px;
}
.faculty-single__image img {
  display: block;
  width: 100%;
  height: auto;
}

.faculty-single__bio {
  margin-top: 90px;
}
.faculty-single__bio::after {
  content: "";
  display: table;
  clear: both;
}

.faculty-single__gallery {
  margin-top: 60px;
}
.faculty-single__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.faculty-single__gallery-grid .faculty-single__gallery-item {
  border: 1px solid #A9A9A9;
  display: block;
  cursor: pointer;
}
.faculty-single__gallery-grid .faculty-single__gallery-item img {
  display: block;
  width: calc(100% - 8px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  margin: 4px;
}
@media (max-width: 600px) {
  .faculty-single__gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .faculty-single__header h2 {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .faculty-single__header h2 {
    font-size: 17px;
  }
  .faculty-single__bio {
    margin-top: 60px;
  }
  .faculty-single__gallery {
    margin-top: 48px;
  }
}
@media (max-width: 600px) {
  .faculty-single__bio {
    margin-top: 45px;
  }
  .faculty-single__gallery {
    margin-top: 32px;
  }
}
@media (max-width: 400px) {
  .faculty-single__image {
    float: none;
    margin: 0 auto 1rem;
  }
}

/* ==============================================
   Faculty Lightbox
   ============================================== */

.faculty-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
}
.faculty-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.faculty-lightbox__close:hover {
  color: #ccc;
}

.faculty-lightbox__viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  gap: 16px;
}

.faculty-lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 52px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.faculty-lightbox__nav {
  display: flex;
  gap: 12px;
}

.faculty-lightbox__prev,
.faculty-lightbox__next {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-lightbox__prev:hover:not(:disabled),
.faculty-lightbox__next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.faculty-lightbox__prev:disabled,
.faculty-lightbox__next:disabled {
  opacity: 0.3;
  cursor: default;
}