body.fortyone-days {
  color: #78b601;
}

.subtitle {
  margin: 0.5rem 0 0;
  font-style: italic;
}

.calendar-container {
  max-width: 52em;
  margin: 0 auto;
  border-radius: 8px;
}

.calendar-header {
  padding: 1rem 0 0;
}
@media (min-width:768px) {
  .calendar-header {
    padding: 1rem 0;
  }
}

.month-year {
  font-size: 1.5rem;
  font-family: "futura-pt", sans-serif;
  font-weight: 800;
  font-style: normal;
  text-align: center;
  margin-bottom: 1rem;
}

.day-names {
  font-family: "BostonSkylineSansClean";
  font-style: normal;
  font-stretch: normal;
  font-weight: 400;
  color: #9bc13b;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.5rem 0;
}
@media (max-width: 767px) {
  .day-names {
    font-size: 1.8125vw;
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr)!important;
  gap: 1em 0;
}
/*
.panel-open .calendar-grid {
  padding-bottom: 16em;
}*/

.calendar-day {
  font-family: "BostonSkylineSansClean";
  font-style: normal;
  font-stretch: normal;
  font-weight: 400;
  height: 0;
  padding: 0.5rem;
  padding-bottom: 6.625em;
  background-color: #000;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  color: #9bc13c;/*
  box-shadow: 0 0 1em #9500ff;
  border-radius: .75em;*/
  position: relative;
}
.calendar-day.empty {
  pointer-events:none;
}
.calendar-day:before,
.calendar-day:after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 120%; height: 0; padding-bottom: 131%;
  background-image: url(../_img/bg-day-purple.png);
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity .5s ease-out;
}
.calendar-day:after {
  background-image: url(../_img/bg-day.png);
  opacity: 0;
}
.calendar-day:not(.empty):hover:before {
  opacity: 0;
}
.calendar-day:not(.empty):hover:after {
  opacity: 1;
}

.day-number,
.day-event {
  position: relative;
  z-index: 1;
  transition: color .3s ease-out;
}

.calendar-day:hover .day-event {
  color: #fff;
}

.day-number {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.day-event {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "EarlyEditionJNL";
  max-width: 6em;
  margin: 0 auto;
}


.extended-day {
  
}

.event-details {
  max-width: 1200px;
  margin: 2em auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  display: none;
}

.event-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
}

.close-btn:hover {
  color: #333;
}

.event-item {
  margin-bottom: 1.5rem;
  padding: 0 0 1em;
  width: 46em;
  max-width: calc(100vw - 4em);
  margin: 0 auto;
  gap: 2em;
  align-items: center;
}
@media (max-width:1023px) {
  .event-item {
    padding: 0 1em 2em;
  }
}

.event-image {
  flex: 0 0 14.5em;
}
.event-image img {
  max-width: 240px;
}
@media (max-width: 767px) {  
  .event-image img {
    margin-top: -1em;
    margin-bottom: .75em;
  }
}

.event-item:not(.sponsor) {
  text-align: center;
}
@media (min-width: 533px) {
  .event-item:not(.sponsor) {
    min-width: 0px;
    width: calc(100%);
  }
}
.event-item:not(.sponsor) .event-image {
  display: none;
}

.event-text {
  max-width: 27.5em;
  margin: 0 auto;
}

.event-item h3 {
  font-size: 1.875em;
  margin-top: 0;
  color: #ff00d8;
  margin-bottom: .125em;
  letter-spacing: normal;
}

.event-sponsor {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.event-content {
  line-height: 1.6;
}
.event-content p {
  font-size: 1.25em;
}

@media (max-width: 767px) {
  .calendar-grid {
    gap: 0;
  }
  .calendar-day {
    min-height: 0;
    padding-bottom: 100%;
  }

  .day-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  
  .day-event {
    font-size: 0.7rem;
    display: none;
  }
}
@media (min-width: 768px) {

  .event-item {
    display: flex;
    flex-flow: row;
    text-align: left;
    align-items: center;
    justify-content: center;
  }
}

/* Add these to your existing styles.css */
.all-events-panel-wrapper {
  position: relative;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: calc(82vh - 4em);
  transition: bottom 1s ease-in-out;
  z-index:3;
}/*
.all-events-panel-wrapper:after {
  content: '';
  background: #8d01f1;
  height: 100%;
  width: 100%;
  position: absolute;
  top: .625em;
  left: 0;
  filter: blur(.5em);
  border-radius: 70%;
  overflow: visible;
  z-index: 1;
}*/
.all-events-panel {
  position: absolute;
  left: 0; top: 0;
  width:100%;
  height: 100%;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  transition: bottom 0.3s ease-out;
  padding: 1.5rem 0;
  box-sizing: border-box;
  mask-image: url("../_img/41days-bottomframe-mask.png");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-position: left top;

      min-width: 1200px;
    transform: translate(-50%);
    position: relative;
    left: 50%;
}
@media (max-width:1199px) {
  .all-events-panel {
    mask-size:1200px 100%;
    mask-position: center top;
  }
}

.all-events-panel-wrapper.visible {
  bottom: 0;
}

.close-panel-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  z-index: 1001;
}

.close-panel-btn:hover {
  color: #333;
}

.date-section {
  padding: 1.25em 2em;
  margin-bottom: 1px;
  position: relative;
  min-height: 16em;
  min-width: 41em;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translate(-50%);
}

.date-section.odd {
  background-color: transparent;
  color: #000;
  padding: 2.75em 2em;
}
@media (min-width:768px) {
  .date-section.odd {
    padding: 2em;
  }
}
.date-section.odd:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 113%;
  background-image: url(../_img/41days-event-bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  transform: translate(-50%);
}
@media (max-width:1199px) {
  .date-section.odd:after {
    background-size: 1200px 100%;
  }
}
.webp .date-section.odd:after {
  background-image: url(../_img/41days-event-bg.webp);
}

.date-section.even {
  background-color: transparent;
}

.date-section h2 {
  color: #78b601;
  margin-top: 0;
  padding-bottom: 1em;
  font-family: "futura-pt", sans-serif;
  font-weight: 800;
  font-style: normal;
}

/* Make sure calendar days are clickable */
.calendar-day {
  cursor: pointer;
}