:root {
  --theme-black: #161616;
  --theme-gray-dark: #2c2c2c;
  --theme-red: #7c181a;
  --theme-blue: #283277;
  --theme-blue-secondary: #085296;
  --theme-logo-blue: #002ea7;
  --theme-logo-red: #b62025;
  --theme-font: "Lato";
}
.stdir-class-heading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.stdir-class-heading:after {
  margin-bottom: 2rem;
  display: block;
  content: "";
  width: 100%;
  bottom: 0;
  left: 15%;
  right: 15%;
  width: 70%;
  height: 3px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--theme-red),
    transparent
  );
  flex: 1 0 100%;
}
.stdir-class-title {
  color: var(--theme-logo-red);
  color: var(--theme-logo-blue);
  font-family: Lato;
  font-weight: 900;
  text-transform: uppercase;
  /*padding-right: 1.2rem;*/
  filter: drop-shadow(0 2px 2px #cccccc);
}
.stdir-class-title:after,
.stdir-class-title-suffix:after {
  content: "";
  width: 1px;
  height: 32px;
  line-height: 32px;
  background: #eddcdc;
  position: relative;
  display: inline-block;
  margin-left: 1.2rem;
}
.stdir-class-title-suffix:after {
  filter: drop-shadow(0 2px 2px #cccccc);
}
.stdir-class-title-suffix {
  font-weight: 100;
  font-size: 2.4rem;
  color: gray;
  font-style: italic;
  filter: drop-shadow(0 1px 3px #efefef);
  padding-left: 1.2rem;
}
.stdir-class-age-range {
  font-weight: bold;
  font-size: 1.2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--theme-red);
  line-height: 2.4rem;
  margin-left: 1.2rem;
}
/*
.stdir-class-bottom-instructors-item,
.stdir-class-bottom-start-time-item,
.stdir-class-bottom-eligibles>span {
	border-radius: 6px;
  color: #ffffff;
  background: var(--theme-logo-blue);
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin: 0.3rem;
  outline: 2px solid var(--theme-logo-red);
	cursor: default;
	filter: drop-shadow(0 4px 2px #ababab);
}
*/
.stdir-class-bottom-instructors-item,
.stdir-class-bottom-start-time-item,
.stdir-class-bottom-eligibles > span {
  font-weight: 100;
  color: #000000;
  display: inline-block;
  width: 100%;
  margin-bottom: 0.24rem;
  cursor: default;
}
.stdir-class-bottom-instructors-item::before,
.stdir-class-bottom-start-time-item::before,
.stdir-class-bottom-eligible-olympics::before,
.stdir-class-bottom-eligible-warrior-testing::before {
  font-family: "Font Awesome 5 Free";
  margin-right: 0.24rem;
  font-size: 1.2rem;
}
.stdir-class-bottom-instructors-item::before {
  content: "\f007";
  color: #002ea7;
}
.stdir-class-bottom-start-time-item::before {
  content: "\f017";
  color: #b62025;
}
.stdir-class-bottom-eligible-olympics::before,
.stdir-class-bottom-eligible-warrior-testing::before {
  content: "\f559";
  color: #66830e;
  color: #b1a035;
  font-weight: 900;
}
.stdir-class-bottom-instructors-item::after,
.stdir-class-bottom-start-time-item::after {
  margin-top: 0.24rem;
  margin-bottom: 0;
  display: block;
  content: "";
  width: 100%;
  bottom: 0;
  left: 15%;
  right: 15%;
  width: 33%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--theme-blue-secondary),
    transparent
  );
}
.stdir-class-bottom-start-time-item::after {
  margin: 0.24rem auto 0;
}
.stdir-class-bottom > div.grid-x > div:last-child > span::after,
.stdir-class-bottom
  .stdir-class-bottom-start-time
  .stdir-class-bottom-start-time-item::after {
  margin: 0.24rem 0 0 auto;
}
.stdir-class-bottom-instructors-item:last-child::after,
.stdir-class-bottom-start-time-item:last-child::after {
  display: none;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 1) {
  background: #df6700;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 2) {
  background: #bd4e00;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 3) {
  background: #df3d62;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 4) {
  background: #dd04f7;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 5) {
  background: #7a18b7;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-instructors
  > .stdir-class-bottom-instructors-item:nth-of-type(6n + 6) {
  background: #5452cd;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-start-time
  > .stdir-class-bottom-start-time-item:nth-of-type(3n + 1) {
  background: #2cb5a8;
  outline: 2px solid #bbbbbb;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-start-time
  > .stdir-class-bottom-start-time-item:nth-of-type(3n + 2) {
  background: #1f62a7;
  outline: 2px solid #ffffff;
}
body.programs-gymnastics-5-7-yrs
  .stdir-class-bottom-start-time
  > .stdir-class-bottom-start-time-item:nth-of-type(3n + 3) {
  background: #0a6776;
  outline: 2px solid #9b9b9b;
}
.stdir-class-wrapper {
  position: relative;
  margin-bottom: 3rem;
}
.stdir-class-wrapper:before,
.stdir-class-wrapper:after {
  content: "";
  position: absolute;
}
.stdir-class-wrapper:before {
  height: 0.66rem;
  left: 2%;
  bottom: -0.66rem;
  width: 98%;
  background: linear-gradient(180deg, #e1e1e1, transparent, #ffffff);
}
.stdir-class-wrapper:after {
  bottom: 0;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent,
    rgb(48, 49, 51),
    transparent
  );
}
.stdir-class {
  padding-bottom: 3rem;
}
.stdir-class:before,
.stdir-class:after {
  content: "";
  height: 0.33rem;
  position: absolute;
  right: 0;
  bottom: -0.33rem;
  width: 50%;
}
.stdir-class:before {
  left: 0;
  background: linear-gradient(260deg, #e9e9e9, transparent, #ffffff);
}
.stdir-class:after {
  right: 0;
  background: linear-gradient(260deg, #ffffff, transparent, #e9e9e9);
}
.stdir-class-bottom > .grid-x > div {
  text-align: center;
}
.stdir-class-bottom > .grid-x > div:first-child {
  text-align: left;
}
.stdir-class-bottom
  > .grid-x
  > div:last-child:not(.stdir-class-bottom-instructors),
.stdir-class-bottom > .grid-x > div.stdir-class-bottom-start-time {
  text-align: right;
}

.stdir-class-bottom .stdir-class-bottom-start-time {
  text-align: right;
}

.stdir-class-main-youtube-video,
.stdir-class-main-image {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 8px -2px #444444;
  overflow: hidden;
}
.stdir-class-bottom {
  margin-top: 1rem;
}
@media all and (min-width: 40em) {
  .stdir-class-main-left {
    padding-right: 1rem;
  }
  .stdir-class-main-right {
    padding-left: 1rem;
  }
}
/*.stdir-class-bottom-instructors-heading,
.stdir-class-bottom-start-time-heading,
.stdir-class-bottom-eligibles-heading {
	font-weight: 100;
  font-size: 1.2rem;
  letter-spacing: -0.03rem;
}*/
.stdir-class-bottom-instructors-heading,
.stdir-class-bottom-start-time-heading,
.stdir-class-bottom-eligibles-heading {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03rem;
}
#main-content .grid-container > .grid-x {
  position: relative;
}
#main-content .grid-container > .grid-x:before,
#main-content .grid-container > .grid-x:after {
  width: 2px;
  height: 90%;
  top: 5%;
  position: absolute;
  content: "";
  background: linear-gradient(
    180deg,
    transparent,
    rgba(193, 193, 193, 0.1),
    transparent
  );
}
#main-content .grid-container > .grid-x:before {
  left: -5%;
}
#main-content .grid-container > .grid-x:after {
  right: -5%;
}
/* Old site classes */
.class-heading,
.summer-class-heading {
  color: #0078a0;
  color: #b62025;
  font-size: 18px;
  padding: 10px 0px;
  cursor: default;
  display: none;
  /*  margin-top: -45px;
  position: absolute;*/
}
.class-preheading {
  display: none;
  font-size: 14px;
  font-style: italic;
  font-weight: bold;
  color: #c00000;
  text-shadow: 2px 2px 2px #dddddd;
}
.stdir-content h4 {
  display: none;
}
.stdir-content h4:nth-of-type(1) {
  display: block;
}
.stdir-class-day-time {
  position: relative;
  display: block;
  cursor: default;
}
.stdir-class-day-time + .stdir-tooltiptext {
  display: none;
  width: 280px;
  background-color: rgba(37, 83, 132, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 99%;
}
.stdir-class-day-time {
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  color: #255384;
  color: #002ea7;
  -webkit-transition: color 0.3s ease-out;
  -moz-transition: color 0.3s ease-out;
  -o-transition: color 0.3s ease-out;
  transition: color 0.3s ease-out;
}
.stdir-class-day-time:hover,
.stdir-class-day-time:hover:active,
.stdir-class-day-time:focus {
  cursor: pointer;
  color: #c00000;
  -webkit-transition: color 0.4s ease-in;
  -moz-transition: color 0.4s ease-in;
  -o-transition: color 0.4s ease-in;
  transition: color 0.4s ease-in;
}
.stdir-class-day-time:hover + .stdir-tooltiptext,
.stdir-class-day-time.hover_effect + .stdir-tooltiptext,
.stdir-class-day-time:focus + .stdir-tooltiptext,
.stdir-class-day-time:active + .stdir-tooltiptext {
  /* visibility: visible; */
  display: block;
  z-index: 3;
}
.stdir-content .L2 a,
.summer-flex .L2 a,
.summer-flex .stdir-class-day-time .L2 a {
  display: none;
  position: absolute;
  margin-left: 20px;
  background: #255384;
  color: #ffffff;
  text-align: center;
  padding: 0 15px;
  z-index: 99;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.stdir-content a .openClass,
.stdir-content a .fullClass,
.summer-flex a .openClass,
.summer-flex a .fullClass {
  font-size: 13px;
  font-weight: normal;
}
.stdir-class-day-time:hover a,
.stdir-class-day-time:hover:active a,
.stdir-class-day-time:focus a {
  display: inline-block;
}
.stdir-content .L2 a:hover,
.stdir-content .L2 a:focus,
.stdir-content .L2 a:active,
.summer-flex .L2 a:hover,
.summer-flex .L2 a:focus,
.summer-flex .stdir-class-day-time .L2 a:hover,
.summer-flex .stdir-class-day-time .L2 a:focus {
  background: #c00000;
  color: #ffffff;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
.stdir-content,
.summer-flex {
  /*-webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;*/
  position: relative;
}
.middle-part {
  left: 33%;
}
.left-half {
  left: 0px;
}
.stdir-tooltiptext li {
  list-style-type: none;
}
/* Popups */
.popup {
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 659;
}
.popup-inner {
  max-width: 700px;
  width: 90%;
  height: 90%;
  padding: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 1);
  border-radius: 3px;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
.popup-close {
  width: 30px;
  height: 30px;
  display: inline-block;
  position: absolute;
  top: 25px;
  right: 25px;
  transition: ease 0.25s all;
  -webkit-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: #255384;
  font-family: Arial, Sans-Serif;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  line-height: 100%;
  color: #fff;
  text-decoration: none;
}
.popup-close:hover {
  -webkit-transform: translate(50%, -50%) rotate(180deg);
  transform: translate(50%, -50%) rotate(180deg);
  background: rgba(192, 0, 0, 1);
  background: #c00000;
  color: #ffffff;
}
.day-heading,
.close-text {
  text-align: center;
}
.close-text {
  margin-top: 35px;
}
.sf-content ul {
  text-align: center;
  margin-left: 0;
}
.sf-content ul li {
  display: inline-block;
  width: 33%;
  font-weight: bold;
  color: #255384;
}
.sf-content + .close-text a {
  font-size: 20px;
  padding: 5px 25px;
  background: #c00000;
  border-radius: 4px;
  color: #ffffff;
  -webkit-box-shadow: 0px 10px 20px 0px rgba(37, 83, 132, 1);
  -moz-box-shadow: 0px 10px 20px 0px rgba(37, 83, 132, 1);
  box-shadow: 0px 5px 20px 0px rgba(37, 83, 132, 0);
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}
.popup-inner h2.day-heading {
  padding-bottom: 30px;
  color: #255384;
}
.sf-content ul li:nth-of-type(4) a,
#summer-flex-piano .sf-content ul li a {
  display: block;
  background: #255384;
  padding: 0 15px;
  margin: 0 auto;
  max-width: 75%;
  border-radius: 2px;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.sf-content ul li:nth-of-type(4) a,
#summer-flex-piano .sf-content ul li a {
  color: #ffffff;
}
.sf-content ul li a:hover,
#summer-flex-piano .sf-content ul li a:hover {
  background: #c00000;
  -webkit-transition: all 0.15s ease-in;
  -moz-transition: all 0.15s ease-in;
  -o-transition: all 0.15s ease-in;
  transition: all 0.15s ease-in;
}
.sf-btn {
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  color: #255384;
  position: relative;
  display: none;
  /*display: block;*/
  cursor: default;
  -webkit-transition: color 0.3s ease-out;
  -moz-transition: color 0.3s ease-out;
  -o-transition: color 0.3s ease-out;
  transition: color 0.3s ease-out;
}
.summer-flex .btn {
  display: none;
}
.sf-btn + .stdir-tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: rgba(37, 83, 132, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 99%;
}
.sf-btn:hover + .stdir-tooltiptext {
  visibility: visible;
}
.sf-btn:hover {
  color: #c00000;
  -webkit-transition: color 0.4s ease-in;
  -moz-transition: color 0.4s ease-in;
  -o-transition: color 0.4s ease-in;
  transition: color 0.4s ease-in;
}
#summer-flex-piano a#btn-thursday-piano + .stdir-tooltiptext {
  right: 0;
}
/*.summer-flex {
  column-count: 2 !important;
}*/
.sf-content + .close-text a:hover {
  -webkit-box-shadow: 0px 10px 20px 0px rgba(37, 83, 132, 1);
  -moz-box-shadow: 0px 10px 20px 0px rgba(37, 83, 132, 1);
  box-shadow: 0px 5px 20px 0px rgba(37, 83, 132, 1);
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

.classes-per-week,
.class-modal-triggers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
}

.classes-per-day,
.class-modal-triggers-for-day {
  margin-bottom: 1.5rem;
  flex: 1 0 33%;
  max-width: 100%;
  /* max-width: 468px; */
  max-width: 390px;
  min-width: 318px;
}

.class-modal-triggers-for-day {
  flex: 1 0 50%;
  flex-basis: 50%;
  margin-bottom: 1rem;
  max-width: 400px;
}

.classes-per-day-monday,
.class-modal-triggers-for-day-monday {
  order: 1;
}
.classes-per-day-tuesday,
.class-modal-triggers-for-day-tuesday {
  order: 2;
}
.classes-per-day-wednesday,
.class-modal-triggers-for-day-wednesday {
  order: 3;
}
.classes-per-day-thursday,
.class-modal-triggers-for-day-thursday {
  order: 4;
}
.classes-per-day-friday,
.class-modal-triggers-for-day-friday {
  order: 5;
}
.classes-per-day-saturday,
.class-modal-triggers-for-day-saturday {
  order: 6;
}
.classes-per-day-sunday,
.class-modal-triggers-for-day-sunday {
  order: 7;
}

.summer-flex .classes-per-week,
.summer-flex-2023 .classes-per-week {
  gap: 20px;
}

.summer-flex .classes-per-day,
.summer-flex-2023 .classes-per-day {
  flex: 1 0 50%;
  flex: 1 0 calc(50% - 20px);
  max-width: 100%;
}

.classes-per-day:not(:has(.class-item)) {
  display: none;
}

.class-item,
.modal-trigger {
  display: inline-block;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  padding-right: 1.5rem;
}

.class-item-date,
.class-item-time,
.class-item-price,
.modal-trigger-time,
.modal-trigger-price {
  font-weight: bold;
  font-size: 1.05rem;
}

/* modal-trigger-button */

.class-item-time,
.modal-trigger-time {
  min-width: 140px;
}

.class-item-price,
.modal-trigger-price {
  margin-left: 1rem;
  position: relative;
}
/*
.class-item-price:before {
  content: "$";
  display: inline-block;
  font-size: 0.7rem;
}
*/
.class-item-price:after,
.modal-trigger-price:after {
  content: "$";
  display: inline-block;
  font-size: 0.7rem;
  position: absolute;
  left: -8px;
  top: 2px;
}

.class-item-link,
.modal-trigger-button {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0.5rem 1rem;
  -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
  -webkit-appearance: none;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  font-family: "Lato";
  /* padding: 0.5rem 1rem; */
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 2px solid var(--theme-white);
  background: var(--theme-red);
  color: var(--theme-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.class-item-link:hover,
.class-item-link:focus,
.modal-trigger-button:hover,
.modal-trigger-button:focus {
  color: var(--theme-white);
  background-color: var(--theme-blue);
}

.class-item-link.waitlist {
  color: var(--theme-white);
  background-color: var(--theme-red);
}

.class-item-link.waitlist:hover,
.class-item-link.waitlist:focus {
  color: var(--theme-white);
  background-color: var(--theme-blue);
}

.class-item-link.register {
  color: var(--theme-white);
  background-color: var(--theme-blue);
}

.class-item-link.register:hover,
.class-item-link.register:focus {
  color: var(--theme-white);
  background-color: var(--theme-red);
}

.class-item > ul,
.modal-trigger > ul {
  position: absolute;
  bottom: 3rem;
  background: var(--theme-blue);
  padding: 1rem 2rem;
  margin-left: 0;
  border-radius: 0.5rem;
  width: 100%;
  width: calc(100% - 1.5rem);
  color: #ffffff;
  list-style: none;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  transition: all 0.3s ease-in-out;
}

.class-item > ul,
.modal-trigger > ul {
  pointer-events: none;
  opacity: 0;
  bottom: 6rem;
  z-index: -3;
}
.class-item:hover > ul,
.class-item:focus > ul,
.modal-trigger:hover > ul,
.modal-trigger:focus > ul {
  opacity: 1;
  pointer-events: auto;
  bottom: 3rem;
  z-index: 3;
}

.classes-per-day-heading,
.class-modal-triggers-for-day-heading {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.incoming-classes-text {
  display: none;
}

.class-tooltip-item-label {
  color: #cdcdcd;
  font-size: 0.9rem;
  letter-spacing: 0.01rem;
  margin-right: 0.5rem;
}

@media only screen and (max-width: 39.99875em) {
  .stdir-class-title {
    width: 100%;
    text-align: center;
    line-height: 1;
    font-size: 2.4rem;
  }
  .stdir-class-title:after,
  .stdir-class-title-suffix:after {
    display: block;
    margin: 1rem auto 0;
    width: 50%;
    height: 1px;
  }
  .rec-gym-class-group-wrapper .callout {
    padding: 0;
  }
  h3.rec-gym-class-group-heading {
    font-size: 2.4rem;
  }
  .stdir-content {
    column-count: 1 !important;
  }
  .middle-part {
    left: 0;
  }
  .stdir-class-age-range {
    margin-left: 0;
    font-size: 1.1rem;
  }
  .stdir-class-title-suffix {
    font-size: 1.4rem;
    padding-left: 0;
  }
}

@media only screen and (max-width: 24.25em) {
  .stdir-class-bottom > .grid-x > div {
    flex: 1 1 100%;
    text-align: center !important;
  }
  .stdir-class-bottom-instructors-item::after,
  .stdir-class-bottom-start-time-item::after,
  .stdir-class-bottom > div.grid-x > div:last-child > span::after,
  .stdir-class-bottom
    .stdir-class-bottom-start-time
    .stdir-class-bottom-start-time-item::after {
    margin: 0.24rem auto 0;
    display: block;
  }
}

.summer-class-heading-2023 {
  display: block;
  margin: 10px auto;
  font-size: 2.2rem;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  color: #7c181a;
  filter: drop-shadow(0 2px 2px #cccccc);
}

.summer-class-heading-2023:after {
  margin: 1rem auto;
  display: block;
  content: "";
  width: 100%;
  bottom: 0;
  left: 15%;
  right: 15%;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--theme-red),
    transparent
  );
  flex: 1 0 100%;
}

.block[id*="recreational-gymnastics-test"] .summer-class-heading-2023 {
  display: none;
}

.studio-director-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.studio-director-container:before {
  content: "";
  display: block;
  position: relative;
  margin: 2rem auto;
  width: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    transparent 10%,
    var(--theme-blue),
    #a52427,
    var(--theme-blue),
    transparent 90%
  );
  filter: drop-shadow(0 4px 3px var(--theme-red));
}

.studio-director-regular-classes {
  order: 1;
}
.studio-director-summer-classes {
  order: 2;
}

.modal-trigger .class-tooltip-item-label-day {
  display: block;
  flex-basis: 100%;
}

.modal-trigger .class-tooltip-item-value-month {
  display: inline-block;
  width: 50%;
  flex: 1 0 33%;
}

.modal-trigger .class-tooltip-item-value-day {
  display: inline-block;
  width: 100%;
}

.modal-trigger .class-tooltip-item-day {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.studio-director-summer-classes {
  /* background-color: transparent;
  background-image: linear-gradient(45deg, #7c181a, #a1595b);
  background-color: var(--theme-blue);
  background-image: linear-gradient(245deg, #7c181a, #a1595b82); */
  width: 100%;
  background: radial-gradient(#c50a0a, var(--theme-blue));
  padding: 1rem 2rem;
  border-radius: 20px;
  color: white;
  filter: drop-shadow(2px 27px 12px -6px #222222);
  box-shadow: 0px 12px 15px -9px #222222;
  border: 3px;
  border-style: solid;
  border-color: #283277;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.studio-director-summer-classes:before {
  content: "Summer Flex";
  display: block;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  color: white;
  filter: drop-shadow(2px 4px 6px #444444);
  position: relative;
  z-index: 1;
}

.studio-director-summer-classes:after {
  z-index: -1;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: transparent;
  background-image: linear-gradient(245deg, #c53b3f70, #7c181a, #a1595b82);
  border-radius: 1rem;
}

.modal-trigger-button {
  margin-left: 0.5rem;
  background: var(--theme-blue);
}

.modal-trigger-button:hover,
.modal-trigger-button:focus {
  background: var(--theme-red);
}

.modal-trigger {
  padding-right: 1rem;
}

.class-modal-triggers {
  justify-content: space-around;
  gap: 1rem;
}

.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  height: 100%;
  width: 100%;
  z-index: 499;
}

.modal-container.open {
  display: block;
}

.custom-modal {
  background: #ffffff;
  top: 50%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2rem;
  /* padding: 2rem 4rem 3rem;*/
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--theme-blue);
  box-shadow: 0 12px 24px -6px rgba(20, 20, 153, 0.34);
  /* backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px); */
  overflow-y: scroll;
  height: 80%;
  max-height: 999px;
}

.modal::-webkit-scrollbar {
  width: 10px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    transparent 10%,
    var(--theme-blue),
    transparent 90%
  );
  border-radius: 1000px;
}
.modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    transparent 10%,
    var(--theme-blue) 25%,
    var(--theme-blue) 75%,
    transparent 90%
  );
}

.custom-modal .modal-content {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  padding: 2rem;
}

.modal-close-button {
  padding: 0.5rem;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 900;
  transform: scaleY(0.8);
  cursor: pointer;
  text-transform: uppercase;
  color: var(--theme-blue);
  transition: all 0.2s ease-out;
}

.modal-close-button:hover,
.modal-close-button:focus {
  color: var(--theme-red);
}

.custom-modal .class-type-heading,
.custom-modal .class-day-heading {
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.custom-modal .class-type-heading {
  font-weight: 900;
  font-size: 2.4rem;
  text-shadow: 0 3px 6px #aaaaaa;
}

.custom-modal .class-day-heading {
  font-size: 1.6rem;
  background: linear-gradient(
    120deg,
    transparent 20%,
    var(--theme-red) 35%,
    var(--theme-red) 65%,
    transparent 80%
  );
  color: #dbdbdb;
}

.modal-month-heading {
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin: 0.67rem auto 0;
}

.modal-month-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.modal-class-date {
  text-align: center;
  font-weight: 700;
  color: var(--theme-red);
  font-size: 1.1rem;
  margin-top: 1.2rem;
}

.modal-class-date:after {
  margin: 0 auto 0.6rem;
  display: block;
  content: "";
  width: 100%;
  bottom: 0;
  left: 15%;
  right: 15%;
  width: 60%;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--theme-red),
    transparent
  );
  flex: 1 0 100%;
}

.custom-modal .class-item-time {
  min-width: unset;
}

.custom-modal .class-item {
  padding-right: 0;
  gap: 2rem;
}
.custom-modal .class-item > ul {
  left: 50%;
  transform: translateX(-50%);
}

.custom-modal .class-item:hover > ul,
.custom-modal .class-item:focus > ul {
  bottom: 4rem;
}
.custom-modal .class-item:before,
.custom-modal .class-item:after {
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -0.47rem;
  width: 50%;
}

.custom-modal .class-item:before {
  left: 0;
  background: linear-gradient(260deg, #aaaaaa, transparent);
}

.custom-modal .class-item:after {
  right: 0;
  background: linear-gradient(260deg, transparent, #aaaaaa);
}

.view[class*="gymnastics-container"] .callout {
  border-radius: 2rem;
  margin-bottom: 3rem;
  background: var(--theme-blue);
  color: #ffffff;
  box-shadow: 0 12px 6px -9px #777777;
  border: 2px solid #ffffff;
  background-image: linear-gradient(45deg, #020b4f, transparent, #020b4f);
}

@media only screen and (max-width: 82em) {
  .classes-per-week {
    justify-content: space-around;
  }
}

@media only screen and (max-width: 64em) {
  .classes-per-day {
    flex: 1 0 50%;
  }
  .custom-modal {
    width: 80%;
    min-width: 320px;
  }
}

@media only screen and (max-width: 48em) {
  .classes-per-day {
    flex-basis: 100%;
  }
}

@media only screen and (max-width: 39.99875em) {
  .classes-per-week,
  .class-modal-triggers {
    justify-content: center;
  }
  .custom-modal .class-item {
    gap: 0.5rem;
  }
  .custom-modal .class-day-heading {
    background: linear-gradient(
      120deg,
      transparent 5%,
      var(--theme-red) 25%,
      var(--theme-red) 75%,
      transparent 95%
    );
  }
  .modal-container {
    overflow: auto;
  }
  #modal {
    /* margin-top: 23rem; */
    top: 30px;
    transform: translateX(-50%);
  }
  .stdir-class-title-suffix:after {
    margin-top: 0.24rem;
  }
}
@media only screen and (max-width: 36.25em) {
  .custom-modal .class-item {
    flex-direction: column;
    text-align: center;
  }
  .custom-modal .class-item-price,
  .custom-modal .class-item-link {
    margin-left: 0;
  }
  #main-content {
    overflow-x: hidden;
  }
  .custom-modal .class-item:hover > ul,
  .custom-modal .class-item:focus > ul {
    bottom: 6rem;
  }
}

@media only screen and (max-width: 29.25em) {
  .class-modal-triggers-for-day {
    margin-bottom: 0;
  }
  .classes-per-day,
  .class-modal-triggers-for-day {
    position: relative;
  }
  .classes-per-day:before,
  .classes-per-day:after,
  .class-modal-triggers-for-day:before,
  .class-modal-triggers-for-day:after {
    content: "";
    height: 2px;
    position: absolute;
    right: 0;
    bottom: -0.47rem;
    width: 50%;
  }
  .class-modal-triggers-for-day:last-child:before,
  .class-modal-triggers-for-day:last-child:after {
    display: none;
  }
  .classes-per-day:before,
  .class-modal-triggers-for-day:before {
    left: 0;
    background: linear-gradient(260deg, #aaaaaa, transparent);
  }
  .classes-per-day:after,
  .class-modal-triggers-for-day:after {
    right: 0;
    background: linear-gradient(260deg, transparent, #aaaaaa);
  }
  .class-modal-triggers-for-day:before,
  .class-modal-triggers-for-day:after {
    bottom: -0.6rem;
    width: 40%;
  }
  .class-modal-triggers-for-day:before {
    left: 10%;
  }
  .class-modal-triggers-for-day:after {
    right: 10%;
  }
  .classes-per-day,
  .class-modal-triggers-for-day {
    text-align: center;
  }
  .class-item,
  .modal-trigger {
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }
  .modal-trigger-time {
    padding-left: 0.67rem;
  }
  .class-item-price,
  .class-item-link {
    margin-left: 0;
  }
  .class-item {
    margin-bottom: 1.5rem;
    padding-right: 0;
  }
  .class-item:hover > ul,
  .class-item:focus > ul {
    bottom: 5.2rem;
  }
  .modal-trigger:hover > ul,
  .modal-trigger:focus > ul {
    bottom: 5.2rem;
  }
  .callout.large {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  h3.rec-gym-class-group-heading {
    font-size: 2rem;
  }
  .stdir-class-title-suffix,
  .stdir-class-age-range {
    text-align: center;
    display: block;
    width: 100%;
  }
  .stdir-class-title-suffix::after {
    margin-top: 0.67rem;
    margin-bottom: 0.5rem;
  }
  .custom-modal {
    padding-left: 10px;
    padding-right: 0.5rem;
    width: 80%;
    max-width: 360px;
    min-width: 200px;
  }
  .modal-close-button {
    right: 5px;
    top: 5px;
  }
}
