body {
    margin: 0;
	padding: 0;
	font-family: sans-serif;
	background: hsl(255, 5%, 98%);
    width: 100%;
}

nav {
	display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsl(255, 5%, 95%);
	position:fixed;
	width:100%;
	top:0;
	z-index: 10;
}

nav ul {
	display: flex;
    list-style: none;
	padding: 0;
	background: hsl(255, 5%, 95%);
	transition: 0.3s;
    justify-content: flex-end;
	}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, hsl(255, 5%, 100%), hsl(255, 5%, 80%), hsl(255, 5%, 100%));
	max-width: 800px;
	margin-bottom: 50px;
}	
	
p {
    display: block;
	position: relative;
	padding-top: 70px;
    font-size: 16px;
    margin: 5rem auto;
    line-height: 1.5;
    max-width: 855px;
	font-family: 'Lato', sans-serif;
	font-weight: 700;
	color: hsl(255, 5%, 45%);

}

nav ul li a{
	display: block;
	color: hsl(255, 35%, 10%);
	text-decoration: none;
	padding: 2.5rem 1rem;
	line-height: 1;
	font-family: 'Lato', sans-serif;
	font-size: 18px;
}

nav ul li {
	border-bottom: 1px solid #ddd;
    transition: .4s;
	}

ul li:hover {
	background: hsl(255, 35%, 75%);
}

/* styling painting filter*/

.controls {
	max-width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: auto;
}

.controls button {
	background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
	display: inline-flex;
	justify-content: center;
	padding: 10px;
	list-style-type: none;
	font-family: 'Lato', sans-serif;
	}
	
/* STYLING NAV */

nav div:first-child {
	background: hsl(255, 5%, 95%);
}

nav div:first-child  h1{
	line-height: 0;
	padding: .8rem 0rem;
	text-align: center;
	}

nav div:first-child img{
	max-width: 200px;
	padding-left: 50px;
    margin: 0;
	}

nav div:first-child h1, nav ul {
	margin: 0;
    padding-right: 50px;
}

.logo {
	width: 10%;
	padding: 50px;
}

/* FOOTER STYLE */

.footer {
	width: 100%;
	text-align: center;
	padding: 10px;
	background: hsl(255, 35%, 10%);
    margin: 0px;
}

.footer p {
	display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0px auto 0px;
    padding-top: 0px;
    padding-bottom: 50px;
    color: hsl(255, 5%, 60%);
	text-align: center;
	font-size: 12px;
	font-weight: 100;
	letter-spacing: 0.5px;
    line-height: 0;
}

.footer ul {
    display: flex;
    width: 100%;
	margin: 0px;
	padding: 50px 0px 50px 0px;
    align-items: center;
    justify-content: center;
    list-style-type: none;

}

.footer ul li {
	margin: 0px 20px 0px 20px;
    display: inline;
    height: 50px;
    padding: 0;
}

.footer ul li a{
	color: hsl(255, 5%, 90%);
}

/* END FOOTER STYLE */

.toggle {
	width: 100%;
	padding: 10px 20px;
	background: hsl(255, 35%, 75%);
	text-align: right;
	box-sizing: border-box;
	color: rgba(255,255,255,0.5);
	font-size: 20px;
	display: none;
}

.container {
	position: relative;
	width: 1200px;
	overflow: auto;
	margin: 80px auto 0;
	padding-bottom: 50px;
}

.container .box {
	position: relative;
	width: calc(400px - 30px);
	height: calc(400px - 30px);
	background: hsl(255, 25%, 98%);
	float: left;
	margin: px;
	box-sizing: border-box;
	overflow: hidden;
}

.container .box:before {
	content:'';
	position: absolute;
	box-sizing: border-box;
	transition: 0.5s;
	transform: scaleX(0);
	opacity: 0;
	z-index: 1;
}

.container .box:hover:before {
	transform: scaleX(1);
	opacity: 1;
}

.container .box:after {
	content:'';
	position: absolute;
	box-sizing: border-box;
	transition: 0.5s;
	transform: scaleY(0);
	opacity: 0;
	z-index: 1;
}

.container .box:hover:after {
	transform: scaleY(1);
	opacity: 1;
}

.container .card {
    position: relative;
	width: calc(400px - 30px);
	height: calc(510px - 30px);
	background: hsl(255, 25%, 98%);
	float: left;
	margin: 15px;
	box-sizing: border-box;

}

.container .card .title {
  text-align: center;
    padding-top: 0px;
    margin: 0px;
    position: relative;
	width: 100%;
	top: 30px;
    font-family: 'Radley', serif;
    color: hsl(255, 5%, 25%);
    letter-spacing: 2px;
}

.container .card .value {
  position: relative;
    text-align: center;
padding: 0px;
    margin: 0px;
	width: 100%;
	top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    color: hsl(255, 5%, 45%);

}

.container .box .imgBox {
	position: relative;
	height:100%;
	width:100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.container .box .imgBox img {
	display: inline-block;
	width: 100%;
	transition: 0.5s;
	vertical-align: middle;

}

.container .box:hover .imgBox img {
	opacity: .2;
	transform: scale(1.2);
	
}

.container .box .content {
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	padding: 20px;
	box-sizing: border-box;
	text-align: center;
}

.container .box .content h2 {
	margin: 0;
	padding: 0;
	color: hsl(255, 25%, 20%);
	transition: 0.5s;
	transform: translateY(-50px);
	opacity: 0;
	visibility: hidden;
	font-family: 'Lato', sans-serif;
	font-size: 18px;
}

.container .box .content p {
	margin: 0 0 10px;
	padding: 0;
	color: hsl(255, 25%, 20%);
	transition: 0.5s;
	transform: translateY(50px);
	opacity: 0;
	visibility: hidden;
	font-family: 'Playfair Display', serif;
	font-style: bold;
	font-size: 32px;
}

.container .box:hover .content h2,
.container .box:hover .content p
 {
	opacity: 1;
	visibility: visible;
	transform: translateY(0px);
	transition-delay: 0.2s;
}

.headerImg {
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.headerImg img {
    width: 100%;
}

.bodyText {
    background: hsl(255, 5%, 98%);
    margin-top: 25px;
    padding-top: 0px; 
}

.headerText {
    position: relative;
    display: block;
    font-family: 'Playfair Display', serif;
	font-style: bold;
	font-size: 32px;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 35px;
    padding-top: 0px;
}

/* GALLERY */

.description {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
    overflow: hidden;
}

.paintName {
    display: block;
	position: relative;
	padding: 0px 20% 15px 20%;
    font-size: 54px;
    line-height: 1;
    max-width: 855px;
	font-family: 'Radley', serif;
	font-weight: 700;
	color: hsl(255, 5%, 25%);
	letter-spacing: 1px;
    margin: 0;

}

.paintDes {
    display: block;
	position: relative;
	padding: 15px 20% 0px 20%;
    font-size: 16px;
    line-height: 1.5;
    max-width: 855px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	color: hsl(255, 5%, 55%);
    margin: 0;

}

.backText {
    position: absolute;
    margin: 0px 0px 0px 20px;
    line-height: 1;
    font-family: 'Radley', serif;
    font-size: 25vw;
	color: hsl(255, 5%, 96%);
}


.viewPaint {
	display: flex;
	height: 800px;
	}

.imgWrapper {
	display: flex;
	position: relative;
	float: right;
	justify-content: center;
	align-items: center;
	width: 90%;
	height: 90%;
	overflow: hidden;
	background-color: ;
}
	
img {
	width: 100%;
	justify-content: center;
}	
	
.imgDetail {
	display: flex;
	width: 100%;
	background-color: ;
	overflow: hidden;
	justify-content: flex-end;
	align-items: center;
}

/* LIGHTBOX */
.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: 70%;
	max-height: auto;
	margin-top: 2%;
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

/* GALLERY END */


@media (max-width:1200px)
{
	.toggle {
	display: block;
	}
	ul {
	width: 100%;
	display: none;
	}
	ul li {
	display: block;
	text-align: center;
	}
	.active {
		display: block;
	}
	.container {
	width: 800px;
	height: auto;
	margin: 80px auto 80px;
	}
	.container .box {
	width: calc(400px - 30px);
	height: calc(400px - 30px);

	}
	
}



/* COMMISSION PAGE */

.commission {
    display: flex;
    position: relative;
    height: 600px;
    margin: 0px;
    padding: 0px 10% 0px 10%;;
    background-color: hsl(255, 5%, 96%);

}


.comImg {
    max-height: 60%;
    overflow: hidden;
}

.comCard {
    margin: 5%;
    background-color: hsl(255, 5%, 98%);
}

.comName {
    margin: 15px 0px 0px 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}
.quote {
    margin: 5%;
    padding: 0px;
    font-family: 'Radley', serif;
    font-style: italic;
    font-weight: 100;
    text-align: center;
}

.commission img {
    width: 100%;
}


@media (max-width:800px)
{
	.container {
	width: 100%;
    float: center;
	height: auto;
    margin: 50px auto 50px;
    position: relative;
	}
	
    .container .card {
    width: 50%;
    padding-left: 2.5%;
    padding-right: 2.5%;
    margin: 0px auto 0px;
    height: 320px;
    }
    
    .container .box {
    width: 100%;
	height: 200px;

	}
    
    .container .box img {
        width: 100%;
    }
    
	p {
	max-width: 100%;
    margin: auto;
}

@media (max-width:600px)
{
	.container {
	width: 100%;
	height: auto;
	margin: 80px auto 80px;
	}
	
    .container .card {
    position: relative;
	   width: calc(400px - 30px);
	   height: calc(510px - 30px);
	   background: hsl(255, 25%, 98%);
	   float: left;
	   margin: 15px;
	   box-sizing: border-box;
        
    }
    
    .container .box {
	position: relative;
	width: calc(400px - 30px);
	height: calc(400px - 30px);
	background: hsl(255, 25%, 98%);
	float: left;
	margin: px;
	box-sizing: border-box;
	overflow: hidden;
	}
    
	.card p {
    display: block;
	max-width: 90%;
    position: absolute;
    padding-top: 30px;
	}
	
}

/*nav styling for large devices*/
@media only screen and (min-width: 30em){
	nav {
		display: flex;
		justify-content: space-between;
		min-height: 100px;
		align-items: center;
	}
	
	nav div:first-child h1 {
	padding: 0px;
	}
	
	nav  ul{
		display: flex;
		padding-right: 50px;
	}
	
	nav ul li {
	border-bottom:none;
	}
}

