  /* MIT License */
/* Copyright (c) 2021 91Ö±²¥  <https://elementarysoftware.com> */
/* Forked from: */
/* Copyright (c) 2021 by rachelandrew (https://codepen.io/rachelandrew/pen/PNwaZe) */
/* Forked from: */
/* Copyright (c) 2021 by Justin Avery (https://codepen.io/justincavery/pen/epBPKj) */
/* see calendar_demo.lc for full license text */


/* declare a 7 column grid on the table */
#calendar {
	width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

#calendar tr, #calendar tbody {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
 width: 100%;
}

caption {
	text-align: center;
  grid-column: 1 / -1;
  /* requires a 400 weight font */
  font-weight: 400;
  font-size: 1.9em;
  padding: 10px 0;
}

#calendar a {
	color: #8e352e;
	text-decoration: none;
}

#calendar td, #calendar th {
	padding: 5px;
	box-sizing:border-box;
	border: 1px solid #ccc;
}

#calendar .weekdays {
	background: rgb(150, 148, 148);
	border-radius: 4px;
}


#calendar .weekdays th {
	text-align: center;
	text-transform: uppercase;
	line-height: 20px;
	border: none !important;
	padding: 10px 6px;
	color: #fff;
	font-weight: 300;
	font-size: 14px;
}

#calendar td {
  min-height: 130px;
  display: flex;
  flex-direction: column;
}

/*
.post .date .month {
}

.post .date .day {
}

.post .date .year {

.event-time {

}

} */


#calendar .days li:hover {
	background: #d3d3d3;
}

/* DAY NUMBERS */
#calendar .date {
	/* text-align: center; */
	/* margin-bottom: 5px; */
	/* padding: 4px; */
    /* colored backdrop for each number */
	/* background: #333; */
	color: rgb(124, 124, 124);
	/* width: 20px; */
	/* border-radius: 50%; */
  /* flex: 0 0 auto; */
  align-self: flex-end;
}

/* EVENTS */
#calendar .event {
  flex: 0 0 auto;
	font-size: 1px;
	border-radius: 4px;
	padding: 5px;
	margin-bottom: 5px;
	line-height: 14px;
	background: #f8ede5;
	border: 1px solid #dcc1b5;
	color:  rgb(245, 113, 6);
	text-decoration: none;
}

#calendar .event-desc {
	color: #666;
	margin: 3px 0 7px 0;
	text-decoration: none;
}

#calendar .other-month {
	background: #f5f5f5;
	color: #666;
}


/* OTHER MONTH EVENTS */
#calendar .other-month .event {
	background: #f8ede5;
	border: 1px solid #dcc1b5;
	color:  rgba(245, 114, 6, 0.664);
}

#calendar .other-month .event-desc {
	color: rgba(102, 102, 102, 0.664);
}

.elso-calendar-sidebar {
	background-color: rgb(233, 231, 231);
	border-style: solid; border-width: 1px;
	border-color: rgb(212, 209, 209); border-radius: 4px;

}
/* LARGE VIEWPORT */
@media (min-width: 992px) {
	/* When the sidebar is actually on the side */
	/* make sidebar the minimum height of a 5 week month */
	.elso-calendar-sidebar {
		min-height: 692px;
	}
}

.elso-calendar-sidebar-title {
	font-size: 1.2em;
	color: rgb(65, 64, 64);
}

.elso-calendar-sidebar-event {
	font-size: 0.8em;
	color: rgb(109, 108, 108);
}

/* hanging sidebar image that denotes each event */
.elso-calendar-sidebar-event .eventimage {
	width: 24px;
	height: 24px;
    opacity: 0.7;
}


.hangingindent {
	padding-left: 24px;
	text-indent: -32px;
  }

/* ============================
	  Mobile Responsiveness
   ============================*/


@media(max-width: 768px) {

	#calendar .weekdays, #calendar .other-month {
		display: none;
	}

	#calendar li {
		height: auto !important;
		border: 1px solid #ededed;
		width: 100%;
		padding: 10px;
		margin-bottom: -1px;
	}

  #calendar, #calendar tr, #calendar tbody {
    grid-template-columns: 1fr;
  }

  #calendar  tr {
    grid-column: 1 / 2;
  }

	#calendar .date {
		align-self: flex-start;
	}
}

/* @media(min-width: 992px) { */
 /* make the calendar sidebar match the height of the calendar */
/* min-height = 130 px per calendar row plus 42 px for the month/year */
/* unfortunately, the calendar height can change dynamically as events are added */
	/* .elso-calendar-sidebar {
		min-height: 692px;
	} */

/* } */
