body {
	font-family: 'PT Sans Narrow', sans-serif;
	background-color: white;
	min-height: 100%;
	padding-bottom: 65px;
	box-sizing: border-box;
	position: relative;
}

#header,
#footer,
a {
	color: white;
	text-decoration: none;
}

#headerbar {
	position: relative;
	z-index: 100;
	box-shadow: 2px 1px 5px rgba(0,0,0,0.6);
}

#headerbar,
#footer {
	background-color: #bf050e;
}

.red {
	color: #bf050e;
}

#header {
	max-width: 850px;
	margin: 0 auto;
	height: 80px;
	position: relative;
}

#header #hamburger {
	display: none;
}

#header #logo {
	position: absolute;
	left: 15px;
	top: 0;
}

#header #logo img {
	height: 108px;
}

#header #navigation {
	position: absolute;
	top: 26px;
	right: 0;
	text-transform: uppercase;
}

#header #logo,
#header #navigation {
	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

#header ul,
#footer ul {
	font-size: 0;
}

#header ul li,
#footer ul li {
	font-size: 16px;
}

#header #navigation li {
	font-size: 18px;
}

#header #navigation li.selected {
	background-color: rgba(0,0,0,0.1);
	border-left: 1px solid black !important;
	border-right: 1px solid black !important;
}

#footer li,
#header #navigation li {
	display: inline-block;
	padding: 4px 9px 4px 9px;
	border-right: 1px solid black;
	border-left: 1px solid black;

	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

#header #navigation li:hover {
	background-color: rgba(0,0,0,0.1);
}

#footer li:first-child,
#header #navigation li:nth-child(2) {
	border-left: none;
}

#footer li:last-child,
#header #navigation li:last-child {
	border-right: none;
}

#slider {
	max-width: 1024px;
	margin: 0 auto;
	white-space: nowrap;
	font-size: 0;
	overflow: hidden;
	position: relative;
}

#slider .next,
#slider .prev {
	position: absolute;
	top: 190px;
	height: 29px;
	width: 29px;
	border-radius: 100px;
	background-color: rgba(255,255,255,0.5);
	color: black;
	z-index: 200;
	font-size: 24px;
	text-align: center;
	line-height: 0;
	padding: 14px 0 0 1px;
	box-sizing: border-box;
	cursor: pointer;
}

#slider .next {
	right: 10px;
}

#slider .prev {
	left: 10px;
}

#slider .slide {
	background-size: cover;
	background-position: center center;
	height: 400px;
	position: relative;
	display: inline-block;
	font-size: 16px;
	width: 100%;
}

/*
#slider .slide[href] {
	cursor: pointer;
}
*/

#slider .slide .title {
	background-color: rgba(255, 255, 255, 0.75);
	position: absolute;
	bottom: 15px;
	left: 0;
	padding: 10px 15px 10px 50px;
	font-weight: bold;
	font-size: 1.5em;
	text-transform: uppercase;
	white-space: normal;
}

h1,
h4,
#slider .slide .title a,
#content a {
	color: #bf050e;
}

#slider .slide .title a {
	text-transform: none;
}

#slider .slide .title a {
	font-weight: normal;
}

#content {
	max-width: 850px;
	padding: 30px;
	margin: auto;
}

.narrow {
	max-width: 500px !important;
	margin: auto;
}

#content h1 {
	font-size: 1.5em;
	text-transform: uppercase;
	margin: 15px 0 0;
}

p {
  margin: 10px 0;
}

#footer li {
	vertical-align: middle;
}

#footer_social i {
	color: white;
	font-size: 28px;
	margin: 0 4px;
	vertical-align: middle;

	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

#footer_social a:first-of-type i {
	margin-left: 12px;
}

#footer_social a:hover i {
	opacity: 0.75;
}

/* Homepage mosaic of the newest gallery photos. The first tile spans a 2x2
   block so the grid reads as a collage rather than a row of equal squares. */
.photo_mosaic {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 120px;
	gap: 8px;
	margin: 20px 0 25px;
}

.photo_mosaic a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background-color: #eee;
}

.photo_mosaic a:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.photo_mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	-webkit-transition: transform 0.4s ease;
	-moz-transition: transform 0.4s ease;
	transition: transform 0.4s ease;
}

.photo_mosaic a:hover img {
	transform: scale(1.06);
}

@media only screen and (max-width: 600px) {
	.photo_mosaic {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 110px;
	}
}

/* Shared by the mosaic and the gallery grid; built by scripts/skiteam.js. */
#lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.92);
	z-index: 500;
	cursor: zoom-out;
}

#lightbox.shown {
	display: flex;
	align-items: center;
	justify-content: center;
}

#lightbox img {
	max-width: 94%;
	max-height: 88%;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lightbox .lightbox_close,
#lightbox .lightbox_prev,
#lightbox .lightbox_next {
	position: absolute;
	color: white;
	font-size: 40px;
	line-height: 1;
	padding: 14px 20px;
	cursor: pointer;
	opacity: 0.7;
	user-select: none;
	-webkit-user-select: none;
}

#lightbox .lightbox_close:hover,
#lightbox .lightbox_prev:hover,
#lightbox .lightbox_next:hover {
	opacity: 1;
}

#lightbox .lightbox_close {
	top: 4px;
	right: 8px;
	font-size: 34px;
}

#lightbox .lightbox_prev {
	left: 4px;
}

#lightbox .lightbox_next {
	right: 4px;
}

#content .follow_button {
	display: inline-block;
	background-color: #bf050e;
	color: white;
	font-weight: bold;
	text-transform: uppercase;
	padding: 11px 28px;
	border-radius: 100px;

	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

#content .follow_button:hover {
	background-color: #99040b;
}

#content .follow_button i {
	font-size: 1.2em;
	margin-right: 6px;
	vertical-align: middle;
}

#gallery_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 10px 30px;
}

#gallery_grid img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

#contact_form label {
	display: block;
	margin-bottom: 15px;
	font-weight: bold;
}

#contact_form input,
#contact_form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: 5px;
	padding: 8px;
	border: 1px solid #ccc;
	font-family: inherit;
	font-size: 1em;
}

#contact_form button {
	padding: 10px 25px;
	border: none;
	background-color: #bf050e;
	color: white;
	font-family: inherit;
	font-size: 1em;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
}

#contact_form button:hover {
	background-color: #99040b;
}


#footer {
	position: absolute;
	bottom: 0;
	padding: 10px 0;
	text-align: center;
	width: 100%;
}

#footer ul {
	padding: 0;
}

.secondary {
	background-color: #EEE;
	padding: 10px 30px;
}

/* The intro paragraphs above the show order; act descriptions are nested
   deeper and keep their own size. */
.secondary .narrow > p {
	font-size: 1.25em;
}

h3 {
	display: inline-block;
	margin: 5px 3px;
}

h4 {
	margin: 5px 3px;
}

#profiles {
	text-align: center;
}

#profiles .profile {
	display: inline-block;
	margin: 5px 5px 10px;
	overflow: hidden;
	cursor: pointer;
}

#profiles .profile .photo {
	background-size: cover;
	background-position: center center;
	width: 200px;
	height: 125px;
}

#profiles .profile .name {
	color: #bf050e;
	margin-top: 3px;
	font-size: 1.3em;
}

.member_description {
	margin: -5px 0 21px 0;
}

.act {
	padding: 10px;
	margin: 10px 0;
	border: 1px solid #CCC;
	background-color: #F0F0F0;
}

.act h2 {
	margin: 0 0 10px 0;
}

.act p {
  font-style: italic;
  margin: 10px 10px 20px 10px;
}

.act .skiers {
	text-align: center;
}
.act .pyramid {
	display: inline-block;
	margin: 0 15px;
}

.act .pyramid .tier {
	min-height: 20px;
}

.act .pyramid .skier {
	background-size: cover;
	background-position: center center;
	position: relative;
	display: inline-block;
	height: 40px;
	width: 40px;
	border-radius: 1000px;
}

.highlight .skier.unknown {
	/*background-image: url(/images/members/unknown200.jpg) !important;*/
	opacity: 0.2;

	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.highlight .act:hover .skier.unknown {
	opacity: 1;
}

.act .pyramid .skier .name {
	display: none;
}

.act .pyramid .skier .shortname {
	display: none;
}

.printable {
	background-color: white !important;
}

.printable .act {
	background-color: #F6F6F6;
}

.printable .act.condensed h2 {
	height: 0;
}

.printable .act h2 {
	font-size: 1.2em;
}

.printable .act > p { 
	display: none;
}

.printable .act .pyramid .skier {
	background: none !important;
	height: auto;
}

.printable .act .pyramid {
	margin-bottom: 5px;
}

.printable .act .pyramid .tier {
	min-height: 0 !important;
}

.printable .act .pyramid .skier .shortname {
	display: inline-block;
	color: black;
}

@media (min-width: 646px) {
	.show-mobile {
		display: none !important;
	}
}

@media (max-width:645px) {
	.act .pyramid {
		display: inline-block;
		margin: 0 5px;
	}

	.act .pyramid .skier {
		height: 33px;
		width: 33px
	}

	.show-mobile {
		display: inherit;
	}

	#headerbar {
		box-shadow: 2px 1px 5px rgba(0,0,0,0.6);
	}

	#header {
		height: auto;
		text-align: center;
	}

	#header #logo {
		position: relative;
		left: 0;
		background-color: white;
		height: 51px;
		box-shadow: 4px 0px 4px rgba(0,0,0,0.7);
	}

	#header #logo img {
		height: 70px;
	}

	#header #navigation {
		position: relative;
		top: 0;
		font-size: 1em;
		padding: 0;
		display: inline-block;
		margin: 0;

		max-height: 5px;
		overflow: hidden;
	}

	#header.shown #logo {
		margin: 0 auto 15px;
	}

	#header.shown #navigation {
		max-height: 500px;
		padding: 8px 0 10px;
	}

	#header #navigation li {
		display: block;
		padding: 5px 40px;
		border-right: none;
		border-left: none;
		margin: 5px;
		background-color: rgba(0,0,0,0.1);
		border-radius: 3px;
	}

	#header #hamburger {
		display: block;
		position: absolute;
		top: 21px;
		right: 10px;
		z-index: 150;
		color: #bf050e;
		font-size: 4em;
		cursor: pointer;
		line-height: 0;
	}

	#slider .slide {
		height: 300px;
	}

	#slider .slide.short {
		height: 220px;
	}

	#slider .next,
	#slider .prev {
		top: 140px;
	}

	#slider .slide .title {
		padding: 10px 10px;
		text-align: center;
		width: 100%;
		box-sizing: border-box;
		font-size: 1.3em;
	}
}
