#calendar {
	display: none;
	background: #fff;
	width: 100%;
	margin: 0 auto;
	overflow: auto;
	position: absolute;
	z-index: 400;
	top: 110%;
	left: 0;
	background-color: #000;
}
#event-calendar {
	position: relative;
	z-index: 500;
}
#cal-events {
	border: 1px solid #bbb;
	background-color: #fff;
}
#cal-years {
	background-color: #8FA0B4;
	color: #fff;
}
#cal-years ul {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 14px;
}
#header #cal-years ul li {
	cursor: pointer;
	padding: 0.5em 1.2em;
	margin: 0;
}
#header #cal-years ul li.on,
#header #cal-years ul li:hover {
	background: #002E5F;
}
#cal-months {
	background-color: #8FA0B4;
	color: #fff;
	border-bottom: 1px solid #779;
}
#cal-months ul {
	margin: 0;
	padding: 0;
	display: none;
	font-size: 14px;
	line-height: 14px;
}
#cal-months ul.open {
	display: block;
}
#header #cal-months ul li,
#header #cal-months ul li:last-child {
	cursor: pointer;
	padding: 0.5em 1.2em;
	margin: 0;
	border-right: none;
}
#header #cal-months ul li.on,
#header #cal-months ul li:hover {
	background: #2d5c8a;
}
#cal-days {
	min-height: 200px;
}
.cal-month {
	display: none;
	width: 100%;
	table-layout: fixed;
}
.cal-month.open {
	display: table;
}
.cal-month thead {
	background: #758ba3;
	color: #fff;
}
.cal-month th {
	text-align: center;
	padding: 0.6em;
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: bold;
}
.cal-month tr {
	border-bottom: 1px solid #bbb;
}
.cal-month tr:last-child {
	border: none;
}
.cal-month thead tr:first-child,
.cal-month thead tr:last-child {
	border: none;
}
.cal-month td {
	border-left: 1px solid #bbb;
}
.cal-month td.past {
	background-color: #ddd;
}
.cal-month td.today {
	border: 1px solid #002E5F;
}
.cal-month tr td:first-child {
	border-left: none;
}
.cal-month td .title {
	background: #f9f9f9;
	color: #666;
	font-size: 12px;
	padding: 0.5em;
}
.cal-month td.blank {
	background: #ddd;
}
.cal-month td.past .title {
	background-color: #dcdcdc;
	border-bottom: none;
}
.cal-month td.today .title {
	background-color: #002E5F;
	color: #fff;
}
.cal-month td .info {
	min-height: 80px;
	min-height: 9.5vh;
}
.cal-month td .event {
	background-color: #ddd;
	border-bottom: 1px solid #bbb;
	padding: 0.3em;
	display: block;
}
.cal-month td .event:hover {
	text-decoration: none;
	background-color: #8b2512 !important;
	color: #fff;
}
.cal-month td .event h4 {
	margin: 0;
	padding: 0;
	font-size: 16px;
}
.cal-month td .event:hover h4,
.cal-month td .event:hover p {
	color: #fff;
}
.cal-month td .event p {
	margin: 0;
	padding: 0;
	font-size: 13px;
}


.cal-month td .exhibition {
	background-color: #7a9ccc; /*#99c2ff; */
	border-bottom: 1px solid #bbb;
	padding: 0.5em;
	display: block;
	opacity: 0.8;
}
.cal-month td .exhibition:hover {
	text-decoration: none;
	background-color: #8b2512 !important;
	color: #fff;
	opacity: 1;
}
.cal-month td.past .event,
.cal-month td.past .exhibition,
.cal-month td.past .exhibition h4,
.cal-month td.past .event h4 {
	background-color: #dcdcdc !important;
	color: #666 !important;
}
.cal-month td .exhibition h4 {
	margin: 0;
	padding: 0;
	font-size: 12px;
	text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.cal-month td .exhibition:hover h4,
.cal-month td .exhibition:hover p {
	color: #fff;
}
.cal-month td .exhibition p {
	margin: 0;
	padding: 0;
	font-size: 10px;
}


.childrens-activities,
.cal-month td .event.childrens-activities {
	background-color: #cc7a7a; /*#ff9999;*/
}
.family-events,
.cal-month td .event.family-events {
	background-color: #ccaa7a; /*#ffd699;*/
}
.lectures,
.cal-month td .event.lectures {
	background-color: #bdcc7a; /*#ebff99;*/
}
.community-events,
.cal-month td .event.community-events {
	background-color: #8bcc7a; /*#adff99;*/
}
.arts-and-crafts-adult,
.cal-month td .event.arts-and-crafts-adult {
	background-color: #7acc9b; /*#99ffc2;*/
}
.gallery-talks,
.cal-month td .event.gallery-talks {
	background-color: #7acccc; /*#99ffff;*/
}
.exhibitions,
.cal-month td .event.exhibitions {
	background-color: #7a9ccc; /*#99c2ff;*/
}
.tours-and-demonstrations,
.cal-month td .event.tours-and-demonstrations {
	background-color: #887acc; /*#ad99ff;*/
}
.film-music,
.cal-month td .event.film-music {
	background-color: #ba7acc; /*#eb99ff;*/
}
#cal-key {
	background-color: #A20A2E;
	border-top: 1px solid #bbb;
}
#cal-key table {
	width: 100%;
	text-align: center;
}
#cal-key td {
	padding: 10px 20px;
	font-size: 12px;
}
#cal-key td:last-child {
	border-right: none;
}

#calendar {
	display: none;
	background: #fff;
	width: 100%;
	margin: 0 auto;
	overflow: auto;
	position: absolute;
	z-index: 400;
	top: 110%;
	left: 0;
	background-color: #000;
}
#event-calendar {
	position: relative;
	z-index: 500;
}
#cal-events {
	border: 1px solid #bbb;
	background-color: #fff;
}
#cal-years {
	background-color: #8FA0B4;
	color: #fff;
}
#cal-years ul {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 14px;
}
#header #cal-years ul li {
	cursor: pointer;
	padding: 0.5em 1.2em;
	margin: 0;
}
#header #cal-years ul li.on,
#header #cal-years ul li:hover {
	background: #002E5F;
}
#cal-months {
	background-color: #8FA0B4;
	color: #fff;
	border-bottom: 1px solid #779;
}
#cal-months ul {
	margin: 0;
	padding: 0;
	display: none;
	font-size: 14px;
	line-height: 14px;
}
#cal-months ul.open {
	display: block;
}
#header #cal-months ul li,
#header #cal-months ul li:last-child {
	cursor: pointer;
	padding: 0.5em 1.2em;
	margin: 0;
	border-right: none;
}
#header #cal-months ul li.on,
#header #cal-months ul li:hover {
	background: #2d5c8a;
}
#cal-days {
	min-height: 200px;
}
.cal-month {
	display: none;
	width: 100%;
	table-layout: fixed;
}
.cal-month.open {
	display: table;
}
.cal-month thead {
	background: #758ba3;
	color: #fff;
}
.cal-month th {
	text-align: center;
	padding: 0.6em;
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: bold;
}
.cal-month tr {
	border-bottom: 1px solid #bbb;
}
.cal-month tr:last-child {
	border: none;
}
.cal-month thead tr:first-child,
.cal-month thead tr:last-child {
	border: none;
}
.cal-month td {
	border-left: 1px solid #bbb;
}
.cal-month td.past {
	background-color: #ddd;
}
.cal-month td.today {
	border: 1px solid #002E5F;
}
.cal-month tr td:first-child {
	border-left: none;
}
.cal-month td .title {
	background: #f9f9f9;
	color: #666;
	font-size: 12px;
	padding: 0.5em;
}
.cal-month td.blank {
	background: #ddd;
}
.cal-month td.past .title {
	background-color: #dcdcdc;
	border-bottom: none;
}
.cal-month td.today .title {
	background-color: #002E5F;
	color: #fff;
}
.cal-month td .info {
	min-height: 80px;
	min-height: 9.5vh;
}
.cal-month td .event {
	background-color: #ddd;
	border-bottom: 1px solid #bbb;
	padding: 0.3em;
	display: block;
}
.cal-month td .event:hover {
	text-decoration: none;
	background-color: #8b2512 !important;
	color: #fff;
}
.cal-month td .event h4 {
	margin: 0;
	padding: 0;
	font-size: 16px;
}
.cal-month td .event:hover h4,
.cal-month td .event:hover p {
	color: #fff;
}
.cal-month td .event p {
	margin: 0;
	padding: 0;
	font-size: 13px;
}

.day-name {
	display: none;
}

.cal-month td .exhibition {
	background-color: #7a9ccc; /*#99c2ff; */
	border-bottom: 1px solid #bbb;
	padding: 0.5em;
	display: block;
	opacity: 0.8;
}
.cal-month td .exhibition:hover {
	text-decoration: none;
	background-color: #8b2512 !important;
	color: #fff;
	opacity: 1;
}
.cal-month td.past .event,
.cal-month td.past .exhibition,
.cal-month td.past .exhibition h4,
.cal-month td.past .event h4 {
	background-color: #dcdcdc !important;
	color: #666 !important;
}
.cal-month td .exhibition h4 {
	margin: 0;
	padding: 0;
	font-size: 12px;
	text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.cal-month td .exhibition:hover h4,
.cal-month td .exhibition:hover p {
	color: #fff;
}
.cal-month td .exhibition p {
	margin: 0;
	padding: 0;
	font-size: 10px;
}


.childrens-activities,
.cal-month td .event.childrens-activities {
	background-color: #cc7a7a; /*#ff9999;*/
}
.family-events,
.cal-month td .event.family-events {
	background-color: #ccaa7a; /*#ffd699;*/
}
.lectures,
.cal-month td .event.lectures {
	background-color: #bdcc7a; /*#ebff99;*/
}
.community-events,
.cal-month td .event.community-events {
	background-color: #8bcc7a; /*#adff99;*/
}
.arts-and-crafts-adult,
.cal-month td .event.arts-and-crafts-adult {
	background-color: #7acc9b; /*#99ffc2;*/
}
.gallery-talks,
.cal-month td .event.gallery-talks {
	background-color: #7acccc; /*#99ffff;*/
}
.exhibitions,
.cal-month td .event.exhibitions {
	background-color: #7a9ccc; /*#99c2ff;*/
}
.tours-and-demonstrations,
.cal-month td .event.tours-and-demonstrations {
	background-color: #887acc; /*#ad99ff;*/
}
.film-music,
.cal-month td .event.film-music {
	background-color: #ba7acc; /*#eb99ff;*/
}
#cal-key {
	border-top: 1px solid #bbb;
}
#cal-key table {
	width: 100%;
	text-align: center;
}
#cal-key td {
	padding: 10px 20px;
	font-size: 12px;
}
#cal-key td:last-child {
	border-right: none;
}

@media screen and (max-width: 768px) {
	
	#cal-key td {
		display: inline-grid;
	} 

	#cal-key table {
		display: inline-grid;
	}
	
	table thead th {
        display: table-cell;
    }

    #cal-years ul li,
    #cal-months ul li {
        display: block;
        width: 100%;
        text-align: center;
        border-right: none;
    }

    #cal-months ul,
    #cal-months ul.open {
        display: block;
    }

    .cal-month {
        margin-bottom: 20px; 
    }

	.cal-month thead {
		display: none;
	}

	.cal-month td.past {
		display: none;
	}

    .cal-month th,
    .cal-month td {
        display: block;
        width: 100%;
        text-align: center;
        border: none;
    }

    .cal-month td {
        border-bottom: 1px solid #bbb; 
    }

    .cal-month td .title,
    .cal-month td .info {
        text-align: left;
        padding: 10px;
    }


    .cal-month td .title {
        background: #f9f9f9;
        color: #666;
        font-size: 16px;
        font-weight: bold;
    }

    .cal-month td .info {
        min-height: auto; 
    }

	.cal-month td.blank {
		display: none;
	}
}
