.calendar.insidepage { width:100%; }

.calendar_holder {
  width: 100%;
}

.calendar_header { display:block; }

.calendar_holder h3 {
  text-align: center;
  color: #000;
  margin: auto;
  padding: 6px 0px;
  width: auto;
  min-width:250px;
}
.calendar_holder .weekday,
.calendar_holder .day,
.calendar_holder .blank {
  font-size: 100%;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 13%;
  min-width: 20px;
  border: 1px solid #000;
  margin: 0 -2px;
  padding: 0;
  outline: 0;
  word-spacing: 0em;
}
.calendar_holder .event {
  overflow: hidden;
}
.calendar_holder .weekday {
  line-height: 26px;
  font-size: 18px;
  font-weight: bold;
  background: #FFFFFF;
  color: #000000;
}
.calendar_holder .day {
  height: 120px;
  text-decoration: none;
}
.calendar_holder .day span {
  display: block;
  text-align: center;
  width: 15px;
  height: 15px;
  font-size: 14px;
  position: absolute;
  margin: 3px;
  color: #000;
  font-weight: bold;
}
.calendar_holder .day span p {
  display: inline;
  margin: 0;
  color: #000;
}
.calendar_holder .day h4 {
  color: #000;
  margin: 20px 0 3px 0;
  font-family: Arial, sans-serif;
  text-transform: none;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}
.calendar_holder .day p {
  color: #0000;
  margin: 5px 2px;
  font-size: .8em;
  overflow: hidden;
  text-align: left;
}
.calendar_holder .blank {
  background: transparent;
}
.calendar_holder .event {
  background: #FFFFFF;
}
.calendar_holder .lastmonth,
.calendar_holder .nextmonth {
  display: block;
  width: 20px;
  height: 20px;
}
.calendar_holder .lastmonth {
    display:inline-block;
  margin-right:15px;
  background: url('/gridmedia/img/__last_month.png') no-repeat;
}
.calendar_holder .nextmonth {
    display:inline-block;
  margin-left:15px;
  background: url('/gridmedia/img/__next_month.png') no-repeat;
}

.day-description {
  display: none;
}

/*--- pop-up ---*/

.event-container {
  display: block;
  z-index: 2000;
  width: 100%;
  top: 50%;
  text-align: center;
}

#calendar-popup {
  width: 50%;
  position: relative;
  display: none;
  margin: 0 auto;
  border-radius: 15px;
  background-clip: border-box;
  background: #fff;
  min-width: 250px;
  border: 4px solid #000;
  z-index: 2000;
  -webkit-box-shadow: 0 0 30px #000;
  box-shadow: 0 0 30px #000;
  behavior:url("/gridmedia/js/pie.htc");
}

.calendar-close {
  background: url('https://static2.apts247.info/images/shared/x.png') no-repeat;
  background-size: cover;
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  z-index: 3000;
}

.calendar-date {
  font-size: 24px;
  width: 100%;
  display: block;
  text-align: left;
  line-height: 24px;
  margin: 5px;
  position: relative;
  color: #666;
}

.calendar-title {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 32px;
  line-height: 30px;
  position: relative;
  padding: 8px 0;
}

#calendar-popup p {
  position: relative;
  display: block;
  text-align: justify;
  font-size: 16px;
  color: #000;
  margin: 0 0 13px;
  padding: 8px;
}

.calendar-image {
  width: 90%;
  max-width: 300px;
  margin: 5px;
}

.calendar-image img {
  border-radius: 15px;
  background-clip: border-box;
  border: 3px solid #000;
  -webkit-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 8px #000;
  behavior:url("/gridmedia/js/pie.htc");
}


/*--- new changes ---*/

p.day-date {display:none;}


@media only screen and (min-width: 768px) and (max-width: 1043px) {
}

@media only screen and (max-width: 767px) {
  .day {
    height: 70px;
  }
  .day h4 {
    font-size: 11px;
    line-height:12px;
  }
  .day p {
    font-size: 9px;
    line-height:10px;
  }
  .day span {
    font-size: 12px;
    line-height:13px;
  }
  .calendar-title {font-size: 26px;}
}

@media only screen and (max-width: 479px){
    h3.calendar_header {
        font-size:16px;
        line-height:16px;
    }
    .calendar_holder .day h4, .calendar_holder .day p {display:none;}
    .calendar_holder div.weekday { font-size:13px; }
    .calendar_holder div.day, .calendar_holder a.day { height:50px; }
    .calendar_holder a.day span {
        font-size:10px;
        line-height:12px;
        margin:1px;
    }
    .calendar_holder a.live-event span {color:#d70f0f; font-size:13px;}
    .calendar_holder a.live-event span:after {content: ' \2022'}
}
