input::-moz-focus-inner {
	border:0;
	padding:0;
}

html[xmlns^="http"] {
	overflow-y: scroll;
}

html {
	height: 100%;
}

body {
	margin: 0;
	color: #000;
	font-family: 'Courier Prime', Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
	/*font-family: 'Aileron', tahoma, arial, sans-serif;*/
	font-size: 20px;
	line-height: 30px;
}

h1 {
	font-size: 36px;
	line-height: 48px;
	padding: 12px 0;
	margin: 0;
}

h2 {
	font-size: 20px;
	line-height: 30px;
	padding: 6px 0;
	margin: 0;
}

p {
	padding: 6px 0;
	margin: 0;
}

div.h1-link {
	position: absolute;
	top: 0;
	right: 0;
	padding: 12px 0;
}

div.h1-link a {
	text-decoration: none;
	color: #000;
}

div.header {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

div.logo {
	box-sizing: border-box;
	width: 111px;
	padding: 12px 0 12px 12px;
}

div.logo a {
	display: block;
	width: 111px;
	height: 30px;
	background-image: url(logo.svg);
	background-size: 111px 30px;
	background-position: left center;
	background-repeat: no-repeat;
}

div.menu {
	box-sizing: border-box;
	padding: 12px;
	text-align: right;
}

div.menu a {
	text-decoration: none;
	color: #000;
}

div.menu a:not(:last-child)::after {
	content: ' |';
	color: #ccc;
}

div.header div.admin {
	display: none;
	padding: 0 12px 12px 12px;
}

div.header div.admin a {
	text-decoration: none;
	color: #000;
}

div.header div.admin a:not(:last-child)::after {
	content: ' |';
	color: #ccc;
}

div.header:hover div.admin {
	display: block;
}

div.wrapper {
	margin: 12px auto 0 auto;
	width: 100%;
	max-width: 840px;
}

div.content {
	padding: 0 12px;
}

div.images {
	margin: 12px 12px 0 12px;
	line-height: 0;
	column-count: 5;
	column-gap: 12px;
}

div.videos,
div.articles {
	padding: 0 12px;
}

div.images div,
div.videos div,
div.articles div {
	position: relative;
}

div.videos > div,
div.articles > div {
	padding: 24px 0;
}

div.images div img,
div.videos div img,
div.articles div img {
	margin-bottom: 12px;
	width: 100% !important;
	height: auto !important;
	cursor: pointer;
}

div.articles div img {
	padding: 6px 0;
}

div.images div div.links,
div.videos div div.links,
div.articles div div.links {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 12px 6px 18px 6px;
}

div.videos div div.links,
div.articles div div.links {
	padding: 6px;
	margin-top: 24px;
}

div.images div div.links a,
div.videos div div.links a,
div.articles div div.links a {
	text-decoration: none;
	color: #000;
}

@media (min-width: 840px) {
	div.articles div div.image-content,
	div.articles div div.image-image {
		display: inline-block;
		vertical-align: top;
	}

	div.articles div div.image-content {
		width: 65%;
	}

	div.articles div div.image-image {
		width: 30%;
	}
}

div.image {
	position:fixed;
	z-index: 11;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	background-color: #000;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	/*
	background-size: cover;
	*/
	background-size: contain;
	opacity: 0;
	display: none;
	transition: opacity 0.5s linear;
}

div.image div.video {
	width: 100%;
	height: 100%;
}

div.image div.description {
	position: fixed;
	z-index: 10;
	bottom: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 0 12px;
}

div.image div.header,
div.image div.description {
	opacity: 0;
	transition: opacity 0.1s linear;
}

div.image div.header:hover,
div.image div.description:hover {
	opacity: 1;
}

fieldset {
	display: none;
}

input,
select,
textarea {
	box-sizing: border-box;
	font-family: 'Courier Prime', Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
	/*font-family: 'Aileron', tahoma, arial, sans-serif;*/
	font-size: 20px;
	line-height: 30px;
	padding: 6px;
	border: 1px #000 solid;
	background-color: transparent;
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	border: 0;
	padding: 0;
	margin: 0 3px 0 0 !important;
}

input,
textarea,
progress {
	width: 100%;
}

textarea {
	height: 200px;
}

select {
	width: 100%;
	padding: 4px 5px;
}

input[type="submit"],
a.button {
	display: inline-block;
	cursor: pointer;
	padding: 6px 8px 5px 8px;
	text-align: center;
	text-decoration: none;
	background-color: #000;
	color: #fff;
	font-weight: bold;
}

input[type="submit"]:hover,
a.button:hover {
	background-color: #888;
	border-color: #888;
}

div.drop {
	box-sizing: border-box;
	cursor: pointer;
	padding: 6px;
	background-color: #000;
	color: #fff;
	font-weight: bold;
	text-align: center;
}

div.drop.hover {
	background-color: #888;
}

p.progress {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	/*
	padding: 6px;
	border: 1px #000 solid;
	*/
	background-color: transparent;
	overflow: hidden;
}

p.progress span.bar {
	display: inline-block;
	background-color: #ccc;
	width: 1px;
	height: 30px;
	padding: 6px;
}

p.progress span.label {
	display: inline-block;
	width: 100%;
	height: 30px;
	text-align: center;
	overflow: hidden;
	position: relative;
	top: -48px;
	padding: 6px;
}

.sortable-root {
	user-select: none;
}

.sortable-ghost {
	opacity: .4;
}

@media (max-width: 840px) {
	div.logo {
		padding: 12px 12px 0 12px;
		width: 100%;
		text-align: center;
	}

	div.logo a {
		width: 100%;
		background-position: center;
	}

	div.menu {
		width: 100%;
		text-align: center;
	}

	div.wrapper {
		margin: 12px auto 0 auto;
	}
}

@media (max-width: 1200px) {
	div.images {
		column-count: 4;
	}
}
@media (max-width: 1000px) {
	div.images {
		column-count: 3;
	}
}
@media (max-width: 800px) {
	div.images {
		column-count: 2;
	}
}
@media (max-width: 400px) {
	div.images {
		column-count: 1;
	}
}
