﻿body {
	overflow-y: scroll;
	-ms-overflow-y: scroll;
}

table.calendar {
	border: 0px;
	border-spacing: 0px;
	table-layout: fixed;
	width: 100%;
}

.calendar td
, .calendar th {
	border: 1px solid #ccc;
	border-width: 0px 1px 1px 0px;

	word-wrap: break-word;
	overflow: hidden;
	text-overflow: ellipsis;

	font-family: Roboto, sans-serif;
	font-weight: normal;
	font-size: 15px;
}

.calendar th {
	border-top-width: 1px;
	vertical-align: middle;

	height: 40px;

	background-color: #f2f2f2;

	text-transform: uppercase;
	font-weight: normal;
	font-size: 19px;
	color: #767676;

	padding: 0px 5px;

	white-space: nowrap;
}

.calendar td {
	vertical-align: top;
	height: 85px;
	padding: 10px 20px 10px 10px;

	position: relative;
}

.calendar tr > td:first-child
, .calendar tr > th:first-child {
	border-left-width: 1px;
}

.calendar td em {
	position: absolute;
	top: 0px;
	right: 0px;

	display: inline-block;
	width: 20px;
	height: 20px;

	line-height: 20px;
	text-align: center;
	font-style: normal;
	font-size: 11px;
	color: #767676;

	background-color: #f2f2f2;
}

.calendar td em span { display: none; }

.out_of_month::after {
	content: '';
	display: block;
	
	position: absolute;
	z-index: 1;

	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;

	background-color: rgba(255, 255, 255, 0.75);

	-webkit-pointer-events: none;
	-moz-pointer-events: none;
	-ms-pointer-events: none;
	-o-pointer-events: none;
	pointer-events: none;
}

.calendar tr:nth-child(2n) td { color: #4d4d4d; }
.calendar tr:nth-child(2n+1) td { color: #999; }

.calendar a {
	display: block;

	opacity: 1.0;

	-webkit-transition: opacity 300ms ease-in-out;
	-moz-transition: opacity 300ms ease-in-out;
	-ms-transition: opacity 300ms ease-in-out;
	-o-transition: opacity 300ms ease-in-out;
	transition: opacity 300ms ease-in-out;
}
.calendar a ~ a { margin-top: 0.75em; }
.calendar a:hover { color: #b4252d; }
body.rosette .calendar a:hover { color: #ab1d3f; }

.calendar a span { display: block; }
.calendar a span:last-child { display: none; }

.heading {
	margin-bottom: 10px;
	font-size: 0px;
}

.heading h1 {
	display: inline-block;
	width: 50%;
	vertical-align: bottom;
	font-family: Roboto, sans-serif;
	font-weight: 300;
}

body.rosette .heading h1 { font-family: 'Libre Baskerville'; }

.heading h1:first-child {
	text-align: left;
	font-size: 35px;
}

body.rosette .heading h1:first-child { font-weight: bold; }

.heading h1:last-child {
	text-align: right;
	font-size: 25px;
}

body.rosette .heading h1:last-child { font-style: italic; }

.heading::after {
	content: '';
	display: block;
	clear: both;
}

.popup {
	position: fixed;
	top: 50%;
	left: 50%;
	
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	opacity: 0.0;
	display: none;

	z-index: 99999;

	-webkit-transition: opacity 200ms ease-in-out;
	-moz-transition: opacity 200ms ease-in-out;
	-ms-transition: opacity 200ms ease-in-out;
	-o-transition: opacity 200ms ease-in-out;
	transition: opacity 200ms ease-in-out;

	font-family: Roboto, sans-serif;
	font-weight: normal;
	font-size: 15px;
	color: #767676;

	width: 350px;
	max-height: 95%;
	background-color: #fff;
	padding: 20px;

	-webkit-box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.3333);
	-moz-box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.3333);
	box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.3333);

	overflow: auto;
	overflow-x: hidden;
	overflow-y: auto;
	-ms-overflow-x: hidden;
	-ms-overflow-y: auto;
}

.popup::after {
	content: '';
	display: block;
	clear: both;
}

.popup.open { display: block; }
.popup.visible { opacity: 1.0; }

.popup .splash > span {
	position: relative;
	display: inline-block;
	width: 100%;

	background-color: #fff;
	height: 0px;
	font-size: 0px;

	padding-bottom: 75.8197%;
}

.popup h1 { font-size: 20px; }

body.rosette .popup h1 { font-family: 'Libre Baskerville'; }

.popup p, .popup .info { margin-top: 20px; }
.popup p:empty { display: none; }

.popup span > canvas {
	position: absolute;
	z-index: 1;
	top: 0px;
	left: 0px;

	width: 100%;
	height: 100%;

	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
}

.popup .splash {
	margin-bottom: 10px;

	overflow: hidden;
}

.popup .close {
	width: 40px;
	height: 40px;

	text-align: center;
	line-height: 40px;

	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 999;

	font-family: Roboto, sans-serif;
	font-weight: bold;
	font-size: 35px;
	color: #fff;

	-webkit-text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.75);
	-moz-text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.75);
	text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.75);

	/* Not having this rendered by GPU is making it freak out for some reason. */
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);

	-webkit-touch-action: manipulation;
	-moz-touch-action: manipulation;
	-ms-touch-action: manipulation;
	-o-touch-action: manipulation;
	touch-action: manipulation;
}

.popup .close > span { display: none; }

.popup .close:hover
, .popup .close:focus
, .popup .close:focus-within
, .popup .close:focus-visible {
	-webkit-text-shadow: 3px 6px 10px rgba(0, 0, 0, 0.75);
	-moz-text-shadow: 3px 6px 10px rgba(0, 0, 0, 0.75);
	text-shadow: 3px 6px 10px rgba(0, 0, 0, 0.75);
}

.popup .close:active {
	margin-top: 2px;
	margin-right: -2px;

	-webkit-text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
	-moz-text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
	text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

.ie9 .popup .close > span {
	position: absolute;
	top: 1px;
	left: 1px;
	z-index: -1;

	display: inline-block;
	width: 40px;
	height: 40px;

	text-align: center;
	line-height: 40px;
	color: #000;

	filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius = '3');
	opacity: 0.75;
}

.ie9 .popup .close:hover > span
, .ie9 .popup .close:focus > span
, .ie9 .popup .close:focus-within > span
, .ie9 .popup .close:focus-visible > span {
	top: 2px;
	left: 2px;
	filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius = '4');
}

.ie9 .popup .close:active > span
, .ie9 .popup .close:active > span {
	top: 0px;
	left: 0px;
	filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius = '2');
}

.nopromos {
	padding: 20px 20% 0px 20%;
	text-align: center;
	font-family: Roboto, sans-serif;
	font-weight: normal;
	font-size: 24px;
	color: #767676;
}

@media only screen and (max-width: 768px) {
	main .set_width {
		margin: 0px;
	}

	main .set_width .title, main .set_width .heading {
		margin-left: 20px;
		margin-right: 20px;
	}

	table.calendar thead {
		display: none;
	}

	.calendar td.no_items {
		display: none;
	}

	.calendar td.out_of_month {
		display: none;
	}

	.calendar tr, .calendar td {
		display: block;
		padding: 0px;
		border: 0px !important;
		height: auto;
	}

	.calendar tr:nth-child(2n+1) td {
		color: #4d4d4d;
	}

	.calendar td em span {
		display: inline;
	}

	.calendar td em {
		position: relative;
		display: block;
		width: auto;
		height: auto;
		line-height: normal;
		text-align: center;
		background-color: #e6e6e6;
		font-weight: 300;
		font-size: 32px;
		color: #b4252d;
		height: 55px;
		line-height: 55px;
		border-top: 1px solid #000 !important;
	}

	body.rosette .calendar td em { color: #ab1d3f; }

	.calendar td a {
		display: block;
		padding: 0px 60px;
		border-top: 1px solid #000 !important;
	}

	.calendar td a span:first-child {
		font-weight: 300;
		font-size: 26px;
		height: 55px;
		line-height: 55px;
	}

	.calendar a span:last-child {
		display: block;
		margin: 10px 0px;
	}

	.calendar a ~ a {
		margin: 0px;
	}

	.popup {
		position: fixed;
		top: 25px;
		left: 25px;
		right: 25px;
		bottom: 25px;
		padding: 0px;
		-webkit-transform: none;
		-moz-transform: none;
		-ms-transform: none;
		-o-transform: none;
		transform: none;

		overflow: auto;
		overflow-y: auto;
		-ms-overflow-y: auto;
		overflow-x: hidden;
		-ms-overflow-x: hidden;

		-webkit-box-shadow: 7px 7px 16px rgba(0, 0, 0, 0.5);
		-moz-box-shadow: 7px 7px 16px rgba(0, 0, 0, 0.5);
		box-shadow: 7px 7px 16px rgba(0, 0, 0, 0.5);
		width: auto;
		max-height: 100%;
		font-weight: 300;
		font-size: 24px;
	}

	.popup .close {
		position: fixed;

		top: 55px;
		right: 65px;

		font-size: 50px;
	}

	.popup .text { position: relative; }
	.popup > div {
		padding-right: 0px;
		padding-top: 515px;
	}

	.popup > div > *:not(.splash) {
		margin-left: 50px;
		margin-right: 50px;
	}

	.popup .splash {
		width: auto;
		position: fixed;
		top: 25px;
		left: 25px;
		right: 25px;

		z-index: 99;

		height: 430px;

		-webkit-transition: -webkit-box-shadow 300ms ease-in-out;
		-moz-transition: -moz-box-shadow 300ms ease-in-out;
		-ms-transition: box-shadow 300ms ease-in-out;
		-o-transition: box-shadow 300ms ease-in-out;
		transition: box-shadow 300ms ease-in-out;

		pointer-events: none;
	}

	.popup .splash span {
		width: 100%;
	
		-o-object-fit: cover;
		object-fit: cover;

		top: 50%;
		left: 50%;

		-webkit-transform: translate(-50%, -50%);
		-moz-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		-o-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
	}

	.popup h1 {
		font-weight: normal;
		font-size: 24px;
		margin-right: 160px;

		position: absolute;
		top: -100px;
		z-index: 999;

		line-height: 100px;

		-webkit-transition: color 150ms ease-in-out, -webkit-text-shadow 150ms ease-in-out;
		-moz-transition: color 150ms ease-in-out, -moz-text-shadow 150ms ease-in-out;
		-ms-transition: color 150ms ease-in-out, text-shadow 150ms ease-in-out;
		-o-transition: color 150ms ease-in-out, text-shadow 150ms ease-in-out;
		transition: color 150ms ease-in-out, text-shadow 150ms ease-in-out;
	}

	.popup h1 span {
		display: inline-block;
		line-height: normal;
		vertical-align: middle;
	}

	.popup .splash.scrolled {
		height: 100px;
		width: auto;
		position: fixed;
		top: 25px;
		left: 25px;
		right: 25px;

		z-index: 99;

		-webkit-box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.5);
		-moz-box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.5);
		box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.5);
	}

	.popup h1.light {
		color: #fff;

		-webkit-text-shadow: 0px 0px 40px rgba(0, 0, 0, 0.6666), 0px 0px 20px rgba(0, 0, 0, 0.3333), 0px 0px 10px rgba(0, 0, 0, 0.1666);
		-moz-text-shadow: 0px 0px 40px rgba(0, 0, 0, 0.6666), 0px 0px 20px rgba(0, 0, 0, 0.3333), 0px 0px 10px rgba(0, 0, 0, 0.1666);
		text-shadow: 0px 0px 40px rgba(0, 0, 0, 0.6666), 0px 0px 20px rgba(0, 0, 0, 0.3333), 0px 0px 10px rgba(0, 0, 0, 0.1666);
	}

	.popup h1.scrolled {
		position: fixed;
		top: 25px;
	}

	.popup.scrolled > div { padding-top: 100px; }

	.popup.no_image {
		top: 50%;
		bottom: auto;

		-webkit-transform: translate(0px, -50%);
		-moz-transform: translate(0px, -50%);
		-ms-transform: translate(0px, -50%);
		-o-transform: translate(0px, -50%);
		transform: translate(0px, -50%);

		overflow: auto !important;

		padding: 25px 65px 25px 25px;
	}

	.popup.no_image h1 {
		position: static;
		line-height: normal;
		margin-right: 0px;
	}

	.popup.no_image .close {
		position: absolute;
		top: 30px;
		right: 30px;
	}

	.popup.no_image > div { padding: 0px; }
}