article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	background: #fff;
}

body {
	--color-link: #e33b0d;
	--grid-columns: 2;
	--details-bg-up: #fff;
	--details-bg-down: #eeeeee;
	--color-product-title: #000;
	--color-product-subtitle: #a09897;
	--color-details-title: #000;
	--color-details-subtitle: #000;
	--color-descr: #000;
	--color-price: var(--color-link);
	--color-close: #000;
	--color-bg-magnifier: #000;
	--color-magnifier: #fff;
	--color-btn-hover: #c1b3b1;
	min-height: 100vh;
	color: #57585c;
	color: var(--color-text);
	background-color: #fff;
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

:focus {
	outline: none;
}


.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
	
}

/* Icons */
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

main {
	position: relative;
	width: 100%;
}

.content {
	position: relative;
	display: block;
}

/* Header */
.codrops-header {
	padding: 2em;
	position: relative;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-items: center;
}

.codrops-header__title {
	font-size: 2em;
	font-weight: bold;
	margin: 0;
	padding: 0.75em 0;
}

.codrops-links {
	position: relative;
	display: flex;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}

.codrops-icon {
	display: inline-block;
	padding: 0.25em;
}

.info {
	color: var(--color-info);
	text-align: center;
}

.github {
	display: block;
}

.grid {
	margin: 10em auto 7em;
	position: relative;
	padding: 0 1em;
	width: 100%;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 1fr);
}

.grid__item {
	padding: 0 4vw;
	margin: 0 0 12vh;
}

.grid__item:nth-child(odd) .product {
	margin-top: -8em;
}

.product {
	height: 100%;
	padding-top: 10em;
	position: relative;
	cursor: pointer;
}

.product__bg {
	height: 20em;
	background: #fafafa;
	position: relative;
	
}

.product__img {
	max-height: 28em;
	margin: 0 auto;
	display: block;
	position: absolute;
	top: 0;
	left: 50%;
	pointer-events: none;
	transform: translate3d(-50%,0,0);
}



.product__title {
	position: relative;
	margin: 0.5em 0 0;
	font-size: 1.75em;
	color: #181818;
	font-weight: 700;
}

.product__subtitle {
	position: relative;
	margin: 0;
	text-transform: uppercase;
	color: var(--color-product-subtitle);
	font-size: 0.85em;
	letter-spacing: 0.115em;
}

.product:hover .product__subtitle {
	color: #f56d48;
}

.product__description,
.product__price {
	opacity: 0;
	position: absolute;
}



.details {
	position: fixed;
	width: 100%;
	height: 100%;
	bottom: 0;
	left: 0;
	padding: 40vh 0 10vh 10vw;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	pointer-events: none;
}

.details--open {
	pointer-events: auto;
}

.details > * {
	position: relative;
	opacity: 0;
	z-index: 999;
}

.details__bg {
	width: 100%;
	position: fixed;
	left: 0;
	
}

.details__bg--up {
	top: 0;
	height: 100vh;
	background-color: #eeeeee;
}

.details__bg--down {
	top: 40vh;
	height: 60vh;
	background-color: #fafafa;
}

.details__img {
	position: absolute;
	top: 10vh;
	right: 10vw;
	height: 80vh;
}

.details__bg,
.details__img {
	transform-origin: 0 0;
}

.details__title {
	margin: -1.5em 0 0.1em;
	font-size: 4.5em;
	color: #181818;
	font-weight: 700;
}

.details__subtitle {
	text-transform: uppercase;
	margin: 0.75em 0 1em 0;
	letter-spacing: 0.115em;
	font-size: 1.75em;
	color: var(--color-details-subtitle);
}

.details__description {
	line-height: 1.5;
	font-weight: bold;
	max-width: 50%;
	margin: 2em 0 0 0;
	color: #181818;
}

.details__price {
	font-size: 3em;
	font-weight: bold;
	color: #e33b0d ;
}


.details__close {
	position: absolute;
	top: 0;
	right: 0;
	border: 0;
	background: none;
	margin: 2em;
	cursor: pointer;
	font-size: 0.85em;
	color: var(--color-close);
}


.details__deco {
	width: 10em;
	height: 20px;
	background-position: 50% 35%;
	background-size: cover;
	visibility:hidden;
}

@media screen and (max-width: 1800px) and (min-width: 426px) {

	.details__bg--down {
		top: 30vh;
		height: 80vh;
	}
	.details__title {
		width:50vw;
		top:-20vh;
	}
	.details__subtitle {
	margin: 0.75em 0 1em 0;
	top:-20vh;
	}
	.details__price {
		top:-20vh;
	}
	.details__description {
		top:-20vh;;
	}
}

@media screen and (max-width: 1030px) and (min-width: 771px) {

	.details__bg--down {
		top: 30vh;
		height: 80vh;
	}
	.details__title {
		font-size: 2.5em;
		width:35vw;
		top:-16vh;
	}
	.details__subtitle {
		font-size: 1.25em;
		margin: 0.75em 0 1em 0;
		top:-16vh;
	}
	.details__price {
		top:-16vh;
		font-size: 1.5em;
	}
	.details__description {
		top:-16vh;
	}
	.details__img {
		right:;
	}
}

@media screen and (max-width: 770px) and (min-width: 426px) {
	
	.details__bg--down {
		top: 30vh;
		height: 80vh;
	}
	.details__title {
		font-size: 2.5em;
		width:35vw;
		top:-22vh;
	}
	.details__subtitle {
		font-size: 1.25em;
		margin: 0.75em 0 1em 0;
		top:-22vh;
	}
	.details__price {
		top:-22vh;
		font-size: 1.5em;
	}
	.details__description {
		top:-22vh;
	}
	.details__img {
		right:-1vw;
	}
}

@media screen and (max-width: 620px) {
	.grid {
		padding: 0 1vw;
	}
	.grid__item {
		padding: 0 2vw;
	}
	.product__bg {
		height: 10em;
	}
	.product__img {
		max-height: 19em;
	}
	.product__title {
		font-size: 1.25em;
	}
	.product__subtitle {
		font-size: 0.75em;
	}
	.details {
		padding: 30vh 0 5vh 10vw;
	}
	.details__bg--down {
		top: 30vh;
		height: 100vh;
	}
	.details__title {
		font-size: 1.2em;
		width:50vw;
		top:-4vh;
	}
	.details__subtitle {
		font-size: 1em;
		width:5vw;
		top:-3vh;
	}
	.details__price {
		font-size: 1em;
		width: 40vw;
		top:-3vh;
	}
	.details__description {
		max-width: 42vw;
		font-size: 0.7em;
		margin: 1em 0 0 0;
		top:-3vh;
	}
	.details__deco {
		height: 7px;
		width: 4em;
	}
	.details__img {
		right: -15vh;
	}
	
	.codrops-header {
		padding: 1em 4em;
	}
	.codrops-header__title {
		font-weight: bold;
		padding-bottom: 0.25em;
		text-align: center;
		font-size: 1.25em;
	}
	
}

@media screen and (min-width: 2400px) {
	.details__bg--down {
		
	}
	.details__title {
		
		font-size: 6em;
	}
	.details__subtitle {
		font-size: 3em;
	}
	.details__price {
		font-size: 2.5em;
	}
	.details__description {
		font-size: 1.5em;
	}

	
}