* {
	margin: 0;
	padding: 0;
	font-family: TimesNow-ExtraLight;
	font-style: normal;
	font-weight: normal;
	font-size: 20px;
}

*::selection {
	background-color: rgba(200,200,200,0.99);
	color: #111;
}

.container {
	position: relative;
	display: block;
	height: 100%;
	float: left;
	width: calc(100vw - 100px);
	padding: 50px;
}

.works {
	height: calc(100vh - 100px);
	width: auto;
	position: relative;
	float: left;
	display: block;
	margin-bottom: 100px;
	/*background-color: red;*/
	display: flex;
	align-content: flex-start;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	padding: 0;
	flex-wrap: wrap;
}

.works:hover {
	z-index: 999 !important;
}

.works:nth-of-type(2n) {
	float: right;
}

img {
	max-width: calc(100% - 100px);
	max-height: calc(100vh - 250px);
	width: auto;
	height: auto;
	display: block;
	float: left;
	position: relative;
}
.caption {
	position: relative;
	display: block;
	float: left;
	margin-top: 10px;
	height: auto;
	white-space: pre-line;
}

.quotes {
	position: relative;
	display: block;
	float: left;
	width: 100%;
}
.quote {
	margin: 50px auto;
	position: relative;
	display: block;
	float: none;
	width: auto;
	max-width: 1200px;
	font-size: 40px;
	line-height: 48px;
	color: #111;
	height: auto;
	margin-bottom: 100px;
	align-self: center;
}

body {
	transition: all 1s;
}
body.work-0 {
	background-color: #EADCD8;
	transition: all 1s;
}
body.work-1 {
	background-color: #E8EFF1;
	transition: all 1s;
}
body.work-2 {
	background-color: #F3E9F7;
	transition: all 1s;
}
body.work-3 {
	background-color: #E6F3FF;
	transition: all 1s;
}
body.work-4 {
	background-color: #86969F;
	transition: all 1s;
}
body.work-5 {
	background-color: #5F6076;
	transition: all 1s;
}
body.work-6 {
	background-color: #A9A4B7;
	transition: all 1s;
}
body.work-7 {
	background-color: #C3C4C9;
	transition: all 1s;
}
body.work-8 {
	background-color: #F4E5EB;
	transition: all 1s;
}
body.work-9 {
	background-color: #B8B9B7;
	transition: all 1s;
}
body.work-10 {
	background-color: #D9DAE1;
	transition: all 1s;
}
body.work-11 {
	background-color: #C2CAC8;
	transition: all 1s;
}
body.work-12 {
	background-color: #E3EEE3;
	transition: all 1s;
}
body.work-13 {
	background-color: #BEC6D5;
	transition: all 1s;
}
body.work-14 {
	background-color: #EADCD8;
	transition: all 1s;
}

button {
	display: block;
	cursor: pointer;
	background-color: white;
	color: #333;
	border-radius: 15px;
	padding: 20px 25px;
	border: none;
	outline: none;
}

@media (min-width: 769px) and (max-width: 1080px) {
	.container {
		width: calc(100vw - 50px);
		padding: 25px;
	}
	.works {
		width: calc(100vw - 50px);
		height: auto;
		margin-bottom: 25px;
		clear: both;
	}
	img {
		max-width: calc(100% );
		max-height: calc(100vh - 200px);
	}
	.quotes {
		height: auto;
		width: 100%;
	}
	.caption {
		word-break: break-word;
	}
	.quote {
		margin: 0px auto 25px;
		font-size: 30px;
		line-height: 1.3;
	}
	.works:nth-of-type(2n) {
		float: left;
	}
}
@media (max-width: 768px) {
	.container {
		width: calc(100vw - 30px);
		padding: 15px;
	}
	.caption {
		word-break: break-word;
	}
	.works {
		width: calc(100vw - 30px);
		height: auto;
		margin-bottom: 15px;
		clear: both;
	}
	img {
		max-width: calc(100% );
		max-height: calc(100vh - 100px);
	}
	.quotes {
		height: auto;
		width: 100%;
	}
	.quote {
		margin: 0px auto 15px;
		font-size: 20px;
		line-height: 1.3;
	}
	.works:nth-of-type(2n) {
		float: left;
	}
}

@media print {

	@page {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-content: flex-start;
		margin: 2cm;
		size: portrait;

	}

	body {
		font-family: 'TimesNow-ExtraLight', Times, serif;
		font-size: 12pt;
		line-height: 1.3;
		background-color: transparent !important;
	}
	
	.container {
		padding: 0;
		width: 100%;
	}

	.quote {
		font-family: 'TimesNow-ExtraLight', Times, serif;
		font-size: 20pt;
		line-height: 1.3;
		page-break-inside: avoid;
		page-break-after: always;
		height: 22cm;
	}

	.caption {
		font-family: 'TimesNow-ExtraLight', Times, serif;
		font-size: 12pt;
		line-height: 1.3;
	}

	.works:nth-of-type(2n) {
		float: left !important;
	}
	
	.works, .quotes {
		/*height: 29.7cm;*/
		clear: both;
		width: 100%;
		height: 100%;
		page-break-inside: avoid;
		page-break-after: always;
	}


	img {
		width: auto;
		height: auto;
		min-height: auto;
		max-height: 20cm;
		/*max-height: 20cm;*/
		min-width: auto;
		max-width: auto;
	}

	footer {
		display: none !important;
	}
	footer .caption {
		display: none !important;
	}

	
}

