.wcs-timetable__container{
  padding: 0;

  .wcs-filters__filter-wrapper{
    font-size: .6875rem;
    text-transform: uppercase;
    opacity: .75;
    transition: all 200ms;
    letter-spacing: 1px;

    &:hover{
      opacity: 1;
    }
  }

  .wcs-filters__filter-column{
    padding-top: 2rem;
  }

}


.wcs-timetable.wcs-timetable--compact-list{
  text-align: left;

  ul, li{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .wcs-timetable__compact-list{
    display: flex;
    flex-direction: column;
  }

  .wcs-day{
    display: flex;
    flex-wrap: wrap;

    &::after{
      display: none !important;
    }

    &__date{
      flex-basis: 100%;
      padding: 0;

      @include media-breakpoint-up(sm) {
        flex-basis: 3.5rem;
      }

      @include media-breakpoint-up(lg) {
        flex-basis: 6rem;
      }

    }

    &__wrapper{
      text-align: center;
      font-size: 120%;
      font-weight: bold;
      padding: .5rem 0;
      line-height: 1.1;
      flex-grow: 0;
      flex-shrink: 1;


      @include media-breakpoint-up(sm) {
        font-size: 180%;
        letter-spacing: -2px;
        padding: .75rem 0;
      }

      @include media-breakpoint-up(lg) {
        font-size: 250%;
        letter-spacing: -2px;
        padding: 1rem 0;
      }

      small{
        display: block;
        font-size: 50%;
        font-weight: normal;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: .5;
        @include media-breakpoint-up(sm) {
          font-size: 40%;
        }
      }
    }

  }

  .wcs-timetable__classes{
    flex-basis: 50%;
    flex-grow: 2;
    flex-shrink: 1;

    &::before{
      display: none !important;
    }

    @include media-breakpoint-up(sm) {
      margin-left: 2rem;
    }
  }

  .wcs-class{
    display: flex;
    padding-bottom: 1rem;
    padding-top: 1rem;
    position: relative;
    align-items: center;

    &::after{
      border-bottom: none !important;
    }
    &::before{
      display: none !important;
    }
    @include pseudo-block( 'after', 'top', 0.1, false, 0, 0, 0 );

    &__duration{
      width: 4rem;
      height: 4rem;
      flex-basis: 4rem;
      letter-spacing: 0px;
      line-height: 1;
      display: flex;
      align-items: center;
      align-content: center;
      font-size: 90%;
      text-align: center;
      position: relative;
      flex-shrink: 0;
      flex-grow: 0;

      &::before{
        opacity: 0.2;
        transition: all 80ms ease;
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 50%;
        border-width: 1px;
        border-style: solid;
      }

      &::after{
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 50%;
        border-width: 1px;
        border-style: solid;
        clip: rect(0em, 2rem, 1rem, 0em);
        transition: all 120ms ease;
      }



      span{
        align-self: center;
        width: 100%;
        font-weight: bold;
      }

    }

  }

  .wcs-class__date{
    text-transform: uppercase;
    font-size: .625rem;
    letter-spacing: 1px;
    opacity: 0.5;
  }

  .wcs-class:hover{
    .wcs-class__duration::after{
      clip: rect(0em, 4rem, 4rem, 0em);
    }
  }

  .wcs-meta{
    font-size: 80%;
  }

  .wcs-class__title{
    margin: .1rem 0 .25rem 0 !important;

    span{
      color: inherit;
    }
  }

  .ti-time{
    margin-right: .5em !important;
    font-size: 80%;
  }

  .wcs-class__duration + .wcs-class__title-meta{
    padding-left: 1.5rem;
  }

  .wcs-class__time{
    margin-right: .25em;
  }


}


.wcs-timetable--agenda{

  .wcs-timetable__agenda-data .wcs-class__duration{
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
    letter-spacing: 0px;

    &::before{
      opacity: 0.2;
      transition: all 80ms ease;
    }

    &::after{
      content: '';
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      border-radius: 50%;
      border: 1px solid;
      clip: rect(0em, 2rem, 1rem, 0em);
      transition: all 120ms ease;
    }

  }

  .wcs-timetable__agenda{
    text-align: right;
  }

  .wcs-class{
    padding-left: .5rem;
  }

  .wcs-class:hover{
    .wcs-class__duration::after{
      clip: rect(0em, 4rem, 4rem, 0em);
    }
  }

  .wcs-class__date{
    text-transform: uppercase;
    font-size: .625rem;
    letter-spacing: 1px;
    opacity: 0.5;
  }

  .wcs-timetable__agenda-data .wcs-meta{
    font-size: 80%;
  }
  .wcs-timetable__agenda-data .wcs-class__title{
    margin: .1rem 0 .25rem 0;
  }
  .wcs-timetable__agenda-data .ti-time{
    margin-right: .5em !important;
  }
  .wcs-timetable__agenda .wcs-timetable__agenda-data .wcs-class__duration + .wcs-class__title-meta{
    padding-left: 1.5rem;
  }
  .wcs-class__time{
    margin-right: .25em;
  }

  .wcs-timetable__agenda-nav{
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;

    &-item{
      position: relative;
      margin-right: 0 !important;
      margin-left: 0 !important;
      padding: 0 .5rem;
      flex-basis: 4.5rem;

      &:not(:last-child)::before{
        content: '';
        display: block !important;
        position: absolute;
        top: .5em;
        right: 0;
        bottom: 1em;
        border-left: 1px solid;
        opacity: .125;
        width: 1px;
      }

      &.active::after{
        right: 1rem !important;
        left: 1rem !important;
        top: auto !important;
        bottom: 0 !important;
        border-bottom-width: 2px !important;
      }
      &.active{
        a span{
          opacity: 1;
        }
      }
    }

    a{
      text-transform: uppercase;
      min-width: 2.5rem;
      font-size: .625em;
      letter-spacing: 1px;
      font-weight: normal;
      padding: .5rem 0;

      span{
        font-size: 1.4rem;
        opacity: .5;
      }
    }
  }
  .wcs-more{
    margin-top: 2rem;
  }

}


.wcs-timetable--carousel{

  .wcs-timetable__carousel{
    @include media-breakpoint-up(sm) {
      padding-right: 15rem;
    }
  }




  .wcs-btn--action{

    border-radius: 100px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 75%;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 200ms ease;
    padding-top: .5rem;
    padding-bottom: .5rem;

  }

  .wcs-class__timestamp{
    display: flex;
    align-content: center;
    align-items: center;
    margin-top: 2vh;
  }

  .date-day{
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 5.375rem;
    line-height: 1;
    margin-right:5%;
    letter-spacing: -0.05em;
  }
  .date-short{
    text-transform: uppercase;
    font-size: 75%;
    line-height: 1.1;
    letter-spacing: 1px;
  }

  .wcs-class__title{
    font-size: 160%;
    max-width: 18.75rem;

    &::after{
      content: '';
      display: block;
      width: 3.75rem;
      border-bottom: 1px solid;
      margin: 2rem 0 2rem;
      opacity: .5;
    }
  }

}
.wcs-timetable__carousel .owl-dots{
  display: none !important;
}
.wcs-timetable__carousel .owl-nav{
  @include media-breakpoint-up(sm) {
    position: absolute;
    top: 20rem;
    right:0;
  }

}
.wcs-timetable__carousel .owl-prev,
.wcs-timetable__carousel .owl-next{
  position: relative;
  display: inline-block;
  width: 4rem;
  height: 3rem;
  line-height: 3rem;
  border: 1px solid;

  &::after{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 200ms ease;
  }

  &:hover::after{
    opacity: 0.125;
  }
}
.wcs-timetable__carousel .owl-prev{
  border-right: none;
}
.wcs-timetable__carousel .wcs-class__title,
.wcs-timetable__carousel .wcs-class__excerpt,
.wcs-timetable__carousel .wcs-class__action{
  margin-left: 0 !important;
  margin-right: 0 !important;
  line-height: 1.3;

}
.wcs-timetable__carousel .wcs-class__action{
  margin-top: 1rem;
}
.wcs-timetable__carousel .wcs-class__excerpt{
  font-size: .9em;
  line-height: 1.75;
}
.wcs-timetable__carousel .wcs-class{
  background-color: transparent !important;

  &:hover{
    img{
      filter: none;
    }
    .responsive-image::after{
      opacity: 0.02;
    }
  }
}
@include media-breakpoint-up(sm) {
  .wcs-timetable--carousel .owl-item:nth-child(2n+1) .responsive-image{
    min-height: 26rem;
    margin-top: 4rem;
  }
}


.wcs-timetable__week .wcs-day,
.wcs-timetable__week .wcs-day .wcs-timetable__classes .wcs-class + .wcs-class,
.wcs-timetable__week .wcs-day__title,
.wcs-timetable__week .wcs-day .wcs-timetable__classes{
  margin: 0 !important;
}
.wcs-timetable__week{
  .wcs-day{
    border-left: 1px solid;
  }
  .wcs-class{
    border-bottom: 1px solid;
  }
}
.wcs-timetable__week .wcs-day .wcs-timetable__classes .wcs-class::before{
  background-color: transparent;
}
.wcs-timetable__week .wcs-day__title{
  background-color: transparent !important;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 100%;
  padding: 1.5rem .5rem;

  &::before{
    opacity: 0.05;
  }
}
.wcs-timetable__week{
  border-right: 1px solid;
  margin-top: 2rem;

  .wcs-class__time{
    opacity: 1;
    font-size: .625rem;
    margin-bottom: .1rem;
    flex-grow: 0 !important;
    font-weight: normal;
  }
  .wcs-day__title{
    border-bottom: 1px solid;
  }
  .wcs-class.wcs-class--canceled{
    opacity: 1 !important;
    transition: none !important;
    color: inherit !important;
    text-decoration: line-through;

    &::before{
      background-color: currentColor !important;
      opacity: 0.05;
    }

    &::after{
      display: none;
    }

    > * {
      opacity: .3 !important;
      color: inherit
    }
    .wcs-class__instructors::before{
      color: inherit !important;
    }
    .wcs-class__time{
      color: inherit;
    }
  }
  .wcs-class:not(.wcs-class--canceled){
    .wcs-class__title{
      position: relative;
      padding-right: 1.6rem !important;
      line-height: 1.3;

      &::after{
  			content: '\25B8';
  			font-size: 0.65em;
  			display: inline-block;
  			border-radius: 100rem;
  			width: 1.4em;
  			height: 1.4em;
  			line-height: 1.4;
  			text-align: center;
  			margin-left: .85em;
  			position: relative;
  			transition: all 200ms ease;
        right: 0;
        top: .25rem;
        position: absolute;
  		}

    }
  }
  .wcs-class__title{
    font-size: .8rem !important;
    margin-bottom: .1rem !important;
    font-weight: bold;
    width: 100%;

  }

  .wcs-day .wcs-timetable__classes .wcs-class .wcs-class__location{
    flex-grow: 1;
    font-size: .625rem;
    text-transform: uppercase;
  }

  .wcs-day .wcs-timetable__classes .wcs-class .wcs-class__instructors{
    position: relative;
    margin-top: 1.5rem;
    padding-left: 1.25rem;

    @include themify-icon( 'before', "\e60a" );

    &::before{
      position: absolute;
      left: 0;
    }

  }
  .wcs-day .wcs-timetable__classes .wcs-class{
    padding: 1.35rem;
    box-shadow: 0 0 20px 0 transparent;
    transition: all 120ms ease-in-out;

    &:hover::before{
      border: none !important;
    }
    &:not(.wcs-class--canceled):hover{
      box-shadow: 0 10px 35px -14px rgba(0,0,0,0.5);
      z-index: 20;
      transform: scale(1.05) translateY(-1rem);
    }
  }

  @media (min-width: 992px) {
		@for $i from 1 through 4 {
			.wcs-class#{'.wcs-class--slots-'+$i}{
				min-height: 6rem;
			}
		}
		@for $i from 5 through 144 {
			.wcs-class#{'.wcs-class--slots-'+$i}{
				min-height: $i * 1.2rem;
			}
		}
	}

}

.wcs-timetable.wcs-timetable--week{
  margin-top: 0 !important;
  text-align: left;

  h2{
    display: inline-block;
    margin-right: auto;
    margin-bottom: 0;
  }
}
.wcs-filters__container{
  margin-top: 2rem;
}



.wcs-modal--pirouette{
  width: 100%;

  @include media-breakpoint-up(lg) {
    max-width: 400px;
  }
  @include media-breakpoint-up(xl) {
    max-width: 600px;
  }


  .wcs-modal__title{
    margin-top: 12.5vh;
    font-size: 2.75rem;
    padding-left: 50px;
    padding-bottom: 3rem;
    margin-bottom: 0;
    line-height: 1.2;

    @include media-breakpoint-up(lg) {
      transform: translateX(50%);
      padding-right: 25%;
      padding-left: 0;
    }

    small{
      padding-top: .5em;
      font-size: .4em;
      opacity: .75;
    }

  }

  .wcs-modal__close{
    margin: 3rem;
    position: fixed;

    &:hover{
      text-decoration: none;
    }
  }
  .wcs-image{
    max-width: 100%;
    max-width: none;
    margin-left: 50px;
    margin-right: 50px;
    height: auto;
    width: calc(100% - 100px);
    display: block !important;
    transition: all 80ms ease-in;

    @include media-breakpoint-up(lg) {
      max-width: 30vw;
      position: fixed;
      top: 5vh;
      right: 50%;
      max-height: 90vh;
      width: auto;
      box-shadow: 0 10px 85px -14px rgba(0,0,0,0.25);

      &:hover{
        transform: scale(1.1);
        box-shadow: 0 5px 85px -14px rgba(0,0,0,0.45);
        z-index: 2;

        & + .wcs-modal__inner{
          opacity: 0.95;
        }
      }
    }
  }
  .wcs-modal__meta{
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding: 50px 50px;
    align-items: center;

    @include pseudo-block( 'before', 'bg', 0.05, 0, 0, 0, 0 );

    &::before{
      z-index: -1;
    }

    li{
      display: block;
      flex-basis: 100%;
      font-size: .625rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0;
      padding: .5rem 0;

      @include media-breakpoint-up(lg) {
        flex-basis: 37.5%;

      }

    }
  }
  li.wcs-modal__action{
    padding: .5rem 0;

    @include media-breakpoint-up(lg) {
      padding: 0;
      flex-basis: 25%;
      text-align: right;
    }

    .wcs-btn{
      margin-bottom: .5rem;
      margin-right: 0;
      border-radius: 100rem;
      padding-left: 1.75rem;
      padding-right: 1.75rem;
      transition: all 80ms ease;

      &:last-of-type{
        margin-right: 0;
        margin-bottom: 0;
      }

      &:hover{
        text-decoration: none;
      }

    }
  }
  .wcs-map__container{
    min-height: 9rem;
    width: 90%;
    transform: translate(63%,-12rem);
    box-shadow: 0 10px 35px -14px rgba(0,0,0,0.75);
  }
  .wcs-modal__content{
    width: auto;
  }
  .wcs-modal__inner{
    position: relative;
    margin-top: 0;
    margin-bottom: 9rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 85px -14px rgba(0,0,0,0.25);
    transition: opacity,transform 80ms ease;

    @include media-breakpoint-up(lg) {
      transform: translateX(33.333%);
    }
  }
}
