* {
	box-sizing: inherit;
}
html {
	font: 16px/1.4 source-sans-pro, sans-serif;
	color: #BBB;
	background: #222;
	margin: 1rem .6rem;
	box-sizing: border-box;
}
body {
	margin: 0;
}

a, a:link {
	color: #5986B2;
	text-decoration: none;
}
a:hover {
	color: #2D80C1;
}

header {
	padding-bottom: .5rem;
	display: flex;
	align-items: center;
}
h1 {
	flex: 1;
	color: #2D80C1;
	font-size: 1.5rem;
	margin: 0;
	line-height: 1.2;
	text-align: center;
	white-space: pre-line;
}
h2 {
	color: #5986B2;
	font-size: 1.2rem;
	font-weight: normal;
	margin: 0;
	padding-bottom: .5rem;
}
h3 {
	font-size: 1.2rem;
	font-weight: normal;
	margin: 0;
	padding-bottom: .5rem;
}
p {
	margin: .5rem 0;
}

:focus {
	outline: none;
}

.svg-definitions {
	display: none;
}

/* Page structure */
article {
	margin: auto;
	max-width: 150vmin;
	padding: 0 .5rem;
}
section {
	margin: 0 -.6rem;
	padding: .6rem;
	background: #1A1A1A;
	margin-bottom: 1rem;
}

footer {
	margin-top: 2rem;
	text-align: center;
	font-size: .8rem;
	color: #444;
}
footer > a {
	color: inherit;
}

/* Photo listing */
.photo-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.photo-item {
	padding: 1vmin 1vmin;
	position: relative;
	display: flex;
	align-items: center;
	transition: opacity .5s;
}
.photo-item .photo {
	display: block;
	max-width: 100%;
	max-height: 100vh;
}
.photo-item.status-hidden .photo {
	outline: 2px solid #B2A359;
}
.photo-item.status-removed .photo {
	outline: 2px solid #B25959;
}

@media (min-width: 1000px) {
	html {
		font-size: 18px;
		line-height: 1.4;
	}
	article {
		max-width: 900px;
	}
	.photo-list .photo-item {
		padding: .3rem;
		max-width: 50%;
	}
}
@media (min-width: 1700px) {
	.photo-list .photo-item {
		max-width: 33.3%;
	}
}
@media (min-width: 2200px) {
	.photo-list .photo-item {
		max-width: 25%;
	}
}

.lazyload,
.lazyloading {
	opacity: 0;
}
.lazyloaded {
	opacity: 1;
	transition: opacity .5s;
}
.hidden {
	opacity: 0;
	visibility: collapse;
	transition: opacity 1s, visibility 0s 1s;
}

.photo-controls {
	position: absolute;
	display: flex;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #222;
	padding: .3rem;
	opacity: .9;
	transition: opacity .2s;
}
:not(.controls-visible) > .photo-controls {
	opacity: 0;
	visibility: collapse;
	transition: opacity .5s, visibility 0s .5s;
}
.photo-button {
	display: block;
	fill: #BBB;
	background: none;
	border: 0;
	border-radius: 3px;
	padding: .5rem;
	margin: .3rem;
	cursor: pointer;
}
.photo-button > svg {
	display: block;
	width: 30px;
	height: 30px;
}
.photo-button:hover {
	background: #444;
}

/* Controls and forms */
.controls {
	margin-top: .5rem;
	display: flex;
	align-items: baseline;
	justify-content: end;
}
.controls.centered {
	justify-content: center;
}
.controls > .info {
	flex: 1;
}
.links > a {
	margin-left: .5rem;
}

.admin-mode {
	position: absolute;
	right: .5rem;
	padding: 5px;
	border-radius: 3px;
	fill: #1A1A1A;
}
.admin-mode > svg {
	display: block;
	width: 20px;
	height: 20px
}
.admin-mode.active {
	fill: #2D80C1;
}
.admin-mode:hover {
	background: #444;
}

.form-field {
	font: inherit;
	color: inherit;
	background: transparent;
	padding: .2rem .5rem;
	width: 100%;
	border: 1px solid #5986B2;
}
.form-field:focus {
	border: 1px solid #2D80C1;
}

.button {
	font: inherit;
	color: #5986B2;
	background: none;
	border: 1px solid #2D80C1;
	padding: .2rem 1.5rem;
	margin: 0 .2rem;
	min-width: auto;
	cursor: pointer;
}
.button:hover, .button:active {
	color: #1A1A1A;
	background: #5986B2;
	border-color: #2D80C1;
}

/* Detail list */
.detail-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.detail-list > li {
	display: grid;
	grid-template-columns: 100px 1fr;
	background: #1A1A1A;
	padding: .6rem;
	margin-bottom: .5rem;
	grid-gap: .5rem;
}
.detail-list img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}
.detail-list .controls {
	grid-column: 1 / span 2;
	margin: 0;
}
