@charset "UTF-8";
/* CSS Document */

div::selection {
    color: none;
    background: none;
}
/* For Mozilla Firefox */
div::-moz-selection {
    color: none;
    background: none;
}

#popup {
	display: none;
	background: white;
	position: fixed;
	left: 50%;
	top: 50%;
	height: 0%;
	width: 0%;
}

#paintings {
	height: 100%;
	width: 100%;
	margin: 0 auto;
	display: table;
}

#works {
	display: table-cell;
	vertical-align: middle;
	width: 80%;
	height: 100%;
}

#pictures {
	position: relative;
}

#pictures img {
	position: absolute;
	margin: auto;
	height: auto;
	width: auto;
	max-height: 100%;
	max-width: 100%;
	display: none;
}

#captions {
	padding: 0.5em 1em;
	text-align: center;
	height: auto;
}

#captions span {
	display: none;
}

.chosenPainting, .chosenCaption {
	display: block;
}

.arrows {
	width: 10%;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	font-size: 2em;
	cursor: pointer;
}

.arrows:hover {
	color: #FF6633;
}

#closepopup {
	background-color: #FC3;
	color: white;
	padding: 0.5em;
	font-size: 1.5em;
	font-weight: bolder;
	position: absolute;
	top:0px;
	right: 0px;
	cursor: pointer;
}

#closepopup:hover {
	background-color: #FF9933;
}

/* DEVICES */

/* close button:*/

@media (min-width: 360px) and (min-height: 449px) {
	#closepopup {
		font-size: 2em;
	}
}

/* Portrait: */

/* paintings:*/

@media (orientation: portrait) {
	#pictures {
		margin-top: 2em;
		height: 50%;
	}

	#pictures img {
		top:0px;
		left:0px;
		bottom: 0px;
		right: 0px;
	}
}

@media (orientation: portrait) and (min-width: 312px) {
	#pictures {
		height: 60%;
	}
}

@media (orientation: portrait) and (min-width: 324px) {
	#pictures {
		height: 65%;
	}
}

@media (orientation: portrait) and (min-width: 368px) {
	#pictures {
		height: 70%;
	}
}

@media (orientation: portrait) and (min-width: 768px) {
	#pictures {
		height: 82%;
	}
}

@media (orientation: portrait) and (min-width: 800px) {
	#pictures {
		height: 85%;
	}
}

/* Landscape:*/

/* paintings:*/

@media (orientation: landscape) {
	#pictures {
		margin-top: 1em;
		height: 70%;
	}

	#pictures img {
		left:0px;
		bottom: 0px;
		right: 0px;
	}
}

@media (orientation: landscape) and (min-width: 500px) {
	#pictures {
		height: 75%;
	}
}

@media (orientation: landscape) and (min-width: 640px) {
	#pictures {
		height: 80%;
	}
}

@media (orientation: landscape) and (min-width: 1024px) {
	#pictures {
		height: 85%;
	}
}