/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: rgba(0, 0, 0, .75);
  }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: pointer; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: pointer; }

.mfp-zoom {
  cursor: pointer; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}

button.mfp-arrow {
  transition: .2s;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  opacity: 1;
  touch-action: manipulation;
}
button.mfp-arrow:hover {
  opacity: .6;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  transition: .2s;
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 4rem;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-weight: normal;
  /*font-family: Arial, Baskerville, monospace;*/
}

  .mfp-close:hover,
  .mfp-close:focus {
    opacity: .6; }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -3px;
  text-align: right;
  padding-right: 0;
  width: 100%;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  display: none;
}

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent; }
  .mfp-arrow:active {
    margin-top: -54px; }
  .mfp-arrow:hover,
  .mfp-arrow:focus {
    opacity: 1; }
  .mfp-arrow:before,
  .mfp-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .mfp-arrow:after {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px; }
  .mfp-arrow:before {
    display: none;}

.mfp-arrow-left {
  left: 0;
}
.mfp-arrow-left:after {
  content: '';
  width: 40px;
  height: 40px;
  border: 0px;
  border-top: solid 4px #fff;
  border-right: solid 4px #fff;
  -ms-transform: rotate(225deg);
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
  position: absolute;
  top: 50%;
  right: -20px;
  margin-top: -4px;
}
@media only screen and (max-width: 959px) {
  .mfp-arrow-left:after {
    left: -10px;
  }
}


.mfp-arrow-right {
  right: 0;
}
.mfp-arrow-right:after {
  content: '';
  width: 40px;
  height: 40px;
  border: 0px;
  border-top: solid 4px #fff;
  border-right: solid 4px #fff;
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  left: -20px;
  margin-top: -4px;
}
@media only screen and (max-width: 959px) {
  .mfp-arrow-right:after {
    left: -10px;
  }
}



.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #fff;
  word-wrap: break-word;
  padding: 10px 36px 0 0;
}

.mfp-image-holder .mfp-content {
   max-width: 1260px;
}
@media only screen and (max-width: 959px) {
  .mfp-image-holder .mfp-content {
    max-width: 74%;
  }
}


.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media screen and (max-width: 959px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

@media all and (max-width: 959px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 4%;
    padding-right: 4%; } }

/* Overall wrapper */
.monthly {
  background: #F3F3F5;
  color: #545454;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
}

/* Top bar containing title, navigation, and buttons */
.monthly-header {
  position: relative;
  text-align: center;
  padding: 0.5em;
  background: #fff;
  height: 3em;
  box-sizing: border-box;
}
/* Center area of top bar containing title and buttons */
.monthly-header-title {
  text-transform: uppercase;
}

/* Buttons for reverting to "today", and closing event list */
.monthly-header-title a:link,
.monthly-header-title a:visited {
  display: inline-block;
  border: 1px solid #ccc;
  color: #545454;
  text-decoration: none;
  height: 1.75em;
  line-height: 1.65em;
  padding: 0 0.65em 0 0.65em;
  box-sizing: border-box;
  transition: background .1s;
}
/* Add some roundy-ness */
.monthly-header-title a:first-of-type {
  border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
}
.monthly-header-title a:last-of-type {
  border-top-right-radius: 1em;
  border-bottom-right-radius: 1em;
}
.monthly-header-title a:hover {
  background: #8b8b8b;
  border: 1px solid #8b8b8b;
  color: #fff;
}
.monthly-header-title a:active {
  background: #222;
  border: 1px solid #222;
  transition: none;
}
/* current month/yr block */
.monthly-header-title-date,
.monthly-header-title-date:hover {
  background: #eee!important;
  border: 1px solid #ccc!important;
  color: #545454!important;
  cursor: default;
}
/* Button to reset to current month */
.monthly-reset {
  border-left: 0!important;
}
.monthly-reset::before {
  content: '\21BB';
  margin-right: 0.25em;
}
/* Button to return to month view */
.monthly-cal {
  border-right: 0!important;
}
.monthly-cal::before {
  content: '\2637';
  margin-right: 0.25em;
}

/* wrapper for left/right buttons to make the clickable area bigger */
.monthly-prev,
.monthly-next {
  position: absolute;
  top: 0;
  width: 3em;
  height: 100%;
  opacity: .5;
}
.monthly-prev {
  left: 0;
}
.monthly-next {
  right: 0;
}
.monthly-prev:hover,
.monthly-next:hover {
  opacity: 1;
}

/* Arrows */
.monthly-prev:after,
.monthly-next:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-color: #222;
  width: 0.6em;
  height: 0.6em;
  margin: -0.4em 0 0 -0.4em;
  -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}
/* Left Arrow */
.monthly-prev:after{
  border-width: 0 0 0.2em 0.2em;
}
/* Right Arrow */
.monthly-next:after {
  border-width: 0.2em 0.2em 0 0;
}

/* Day of the week headings */
.monthly-day-title-wrap {
  display: table;
  table-layout: fixed;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #EBEBEB;
}
.monthly-day-title-wrap div {
  width: 14.28%!important;
  display: table-cell;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

/* Calendar days wrapper */
.monthly-day-wrap {
  display: table;
  table-layout: fixed;
  width: 100%;
  overflow: hidden;
}
.monthly-week {
  display: table-row;
  width: 100%;
}
/* Calendar Days */
.monthly-day, .monthly-day-blank {
  width: 14.28%!important;
  display: table-cell;
  vertical-align: top;
  box-sizing: border-box;
  position: relative;
  color: inherit;
  background: #fff;
  box-shadow: 0 0 0 1px #EBEBEB;
  -webkit-transition: .25s;
  transition: .25s;
  padding: 0;
  text-decoration: none;
}

/* Trick to make the days' width equal their height */
.monthly-day:before {
  content: '';
  display: block;
  padding-top: 100%;
  float: left;
}

/* Hover effect for non event calendar days */
.monthly-day-wrap > a:hover {
  background: #A1C2E3;
}

/* Days that are part of previous or next month */
.monthly-day-blank {
  background: #F3F3F5;
}

/* Event calendar day number styles */
.monthly-day-event > .monthly-day-number {
  position: absolute;
  line-height: 1em;
  top: 0.2em;
  left: 0.25em;
}

/* Non-Event calendar day number styles */
.monthly-day-pick > .monthly-indicator-wrap {
  margin: 0;
}

.monthly-day-pick > .monthly-day-number:before,
.monthly-day-pick > .monthly-day-number:after {
  content: '';
  display: block;
  padding-top: calc(50% - 0.8em);
  width: 0;
  height: 0;
}

/* Days in the past in "picker" mode */
.monthly-past-day:after{
  content: '';
  width: 150%;
  height: 2px;
  -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
          transform-origin: left top;
  -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 0;
  top: 0;
}
.monthly-past-day:hover {
  background: #fff!important;
}

/* Current day style */
.monthly-today .monthly-day-number {
  color: #FFF;
  background: #EA6565;
  border-radius: 0.75em;
  top: 0.08em;
  left: 0.05em;
  font-size: 0.9em;
  padding: 0;
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
}
.monthly-day-pick.monthly-today .monthly-day-number {
  padding: 0.15em;
  margin: calc(50% - 0.7em) auto auto auto;
  font-size: 1em;
}

/* Wrapper around events */
.monthly-indicator-wrap {
  position: relative;
  text-align: center;
  line-height: 0;
  max-width: 1.5em;
  margin: 0 auto;
  padding-top: 1.2em;
}

/* Event indicator dots */
.monthly-day .monthly-event-indicator {
  display: inline-block;
  margin: 0.05em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 0.25em;
  vertical-align: middle;
  background: #7BA7CE;
}

.monthly-day .monthly-event-indicator span {
  color: transparent;
}

.monthly-day .monthly-event-indicator:hover {
  cursor: pointer;
}
/* Listing of events under calendar */
.monthly-event-list {
  background: rgba(233, 235, 236, 0.9);
  overflow: auto;
  position: absolute;
  top: 2.5em;
  width: 100%;
  height: calc(100% - 2.5em);
  display: none;
  -webkit-transition: .25s;
  transition: .25s;
  -webkit-transform: scale(0);
    -ms-transform: scale(0);
          transform: scale(0);
}

/* Days in Events List */
.monthly-list-item {
  position: relative;
  padding: 0.5em 0.7em 0.25em 4em;
  display: none;
  border-top: 1px solid #D6D6D6;
  text-align: left;
}

.monthly-list-item:after{
    padding: 0.4em 1em;
    display: block;
    margin-bottom: 0.5em;
 }

.monthly-event-list .monthly-today .monthly-event-list-date {
  color: #EA6565;
}

/* Events in Events List */
.monthly-event-list .listed-event {
  display: block;
  color: #fff;
  padding: 0.4em 1em;
  border-radius: 0.2em;
  margin-bottom: 0.5em;
}

.monthly-list-item a:link, .monthly-list-item a:visited {
  text-decoration: none;
}

.item-has-event {
  display: block;
}

.item-has-event:after{
    display: none!important;
}

.monthly-event-list-date {
  width: 4em;
  position: absolute;
  left: 0;
  top: 1.2em;
  text-align: center;
    font-weight: bold;
    line-height: 1.2em;
}

.monthly-list-time-start,
.monthly-list-time-end {
  font-size: .8em;
  display: inline-block;
}
.monthly-list-time-end:not(:empty):before {
  content: '\2013';
  padding: 0 2px;
}

/* Events List custom webkit scrollbar */
.monthly-event-list::-webkit-scrollbar {width: 0.75em;}

/* Track */
.monthly-event-list::-webkit-scrollbar-track {background: none;}

/* Handle */
.monthly-event-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border: 1px solid #E9EBEC;
  border-radius: 0.5em;
}
.monthly-event-list::-webkit-scrollbar-thumb:hover {background: #555;}

.monthly-reset:after    { content: 'Today'; }
.monthly-cal:after      { content: 'Month'; }
.monthly-list-item:after  { content: 'No Events'; }

.monthly-locale-fr .monthly-reset:after   { content: "aujourd'hui"; }
.monthly-locale-fr .monthly-cal:after   { content: "mois"; }
.monthly-locale-fr .monthly-list-item:after { content: 'aucun événement'; }

@media (min-width: 25em) {
  .monthly-day-event {
    padding-top: 1.3em;
  }
  .monthly-day-event > .monthly-indicator-wrap {
    width: auto;
    max-width: none;
  }
  .monthly-indicator-wrap {
    padding: 0;
  }
  .monthly-day:before {
    padding-top: calc(100% - 1.2em);
  }
  .monthly-day .monthly-event-indicator {
    display: block;
    margin: 0 0 1px 0;
    width: auto;
    height: 1.5em;
    line-height: 1.2em;
    padding: 0.125em 0 0.1em 0.125em;
    border-radius: 0;
    overflow: hidden;
    background-color: #333;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .monthly-day .monthly-event-indicator.monthly-event-continued {
    box-shadow: -1px 0 0 0;
  }
  .monthly-day .monthly-event-indicator span {
    display: block;
    width: auto;
    margin: 0;
    color: #fff;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}