.calendar {
	display: grid;
}

.calendar .header .month-year {
	padding: 20px 0;
	text-align: center;
}

.calendar .days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.calendar .days .day_name {
	border-right: 1px solid #dd8e16;
	padding: 20px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: bold;
	/* color: #818589; */
	color: #fff;
	background-color: var(--3rdclr);
  display: none;
}

.calendar .days .day_name:nth-child(7) {
    border: none;
}
.calendar .days .day_num {
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 15px;
    font-weight: bold;
    color: #7c878d;
    min-height: 100px;
}
.calendar .days .day_num span {
    display: inline-flex;
    width: 30px;
    font-size: 14px;
}
.calendar .days .day_num .event {
	margin-top: .5rem;
	font-weight: 500;
	font-size: 0.75rem;
	padding: .5rem;
	border-radius: 0;
	background-color: #f7c30d;
	color: #fff;
	word-wrap: break-word;
	line-height: 1.3;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.calendar .days .day_num .event a {
	text-decoration: none;
}

.calendar .days .day_num .event a:hover {
	text-decoration: underline;
}

.calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.calendar .days .day_num .event.red {
	background-color: var(--3rdclr);
}
/* .calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
} */
.calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.calendar .days .day_num.ignore {
    background-color: #fdfdfd;
    color: #ced2d4;
	display: none;
}
.calendar .days .day_num.selected {

    cursor: inherit;
}

.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #ebebeb;
    color: #666666;
}

.masonry-2.buttons {
	grid-template-columns: 1fr 1fr;
}

button.prevbtn, button.nextbtn {
	background: transparent;
	color: #000;
	text-align: left;
	border: 0;
	margin-bottom: -3rem;
	z-index: 1;
	padding: 0;
}

button.nextbtn {
	text-align: right;
}

.prevbtn svg, .nextbtn svg {
	font-size: 1.5rem;
	rotate: 90deg;
}

.nextbtn svg {
	rotate: -90deg;
}

@media (max-width: 810px) {
.calendar .days {
	grid-template-columns: repeat(4, 1fr);
}	
	
.calendar .days .day_name {
	display: none;
}	
}

@media (max-width: 600px) {
.calendar .days {
	grid-template-columns: repeat(1, 1fr);
}	

.day_num:not(:has(.event)) {
	display: none;
}

.calendar .days .day_num:has(.event) {
	display: block;
	border-right: 0;
}

}