img {
	width: auto;
	height: auto;
	align-self: center;
	max-width: 100%;
}

.art-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.art {
	box-sizing: border-box;
	display: flex;
	max-width: calc(33% - 40px);
	width: 512px;
	flex-direction: column;
	text-decoration: none !important;
	margin-bottom: 20px;
}
.art:hover span,
.art:focus span {
	color: #6B6F73;
}
.art img {
    width: 512px;
}
.art span {
	transition: 250ms;
    display: block;
    text-align: center;
    color: #212529;
    font-size: 17px;
    font-style: italic;
}
.art span:nth-child(3) {
    font-size: 12px;
}

#overlay .background,
#overlay {
	transition: opacity 500ms;
	opacity: 1;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
#overlay .background {
	position: absolute;
	background: rgba(0, 0, 0, 0.75);
}
.big_version {
    display: block;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-style: normal;
	z-index: -1;
}
#overlay .content {
	display: flex;
	flex-direction: column;
	width: calc(512px + 40px);
	max-width: 100%;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 20px;
	text-align: center;
	font-size: 19px;
	font-style: italic;
	color: #212529;
}
#overlay.animate {
	opacity: 0;
}
#overlay:not(.open) {
	right: 10000000px;
	bottom: 10000000px;
	opacity: 0;
    overflow: hidden;
}
#overlay.loads img {
    padding: 50%;
}
#overlay .loading {
	display: none;
}
#overlay.loads .loading {
    display: block;
    position: absolute;
    top: calc((100% - (40px + 57px)) / 2);
    left: 50%;
    transform: translate(-50%, -50%);
}
#padding {
    position: relative;
    width: 100%;
    padding: 50%;
}
#overlay img {
    position: absolute;
    width: calc(100% - 40px);
    left: 50%;
    top: calc((100% - 57px) / 2);
    transform: translate(-50%, -50%);
    transition: 500ms;
    cursor: pointer;
}
#overlay img:hover {
    width: calc(100vh - 40px);
    top: 50%;
    max-height: 100vh;
    max-width: 100vw;
    height: auto;
	box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.6);
}

.back-link {
	display: block;
	text-align: center;
	padding: 20px;
	transition: 250ms;
	color: #73d11d;
	text-decoration: none !important;
}
.back-link:hover {
    color: #469d29;
}
.copy {
	position: absolute;
	bottom: 2px;
	font-size: 11px;
	text-align: center;
	width: 100%;
	left: 0;
	font-style: normal;
	z-index: -1;
}


@media (max-width: 830px) {
	.art {
		max-width: calc(50% - 40px);
	}
}
@media (max-width: 475px) {
	.art {
		max-width: 100%;
	}
	.art-container {
		margin: 0;
	}
}