/* Small only */
@media screen and (max-width: 39.9375em) {}

/* Medium and up */
@media screen and (min-width: 40em) {}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {}

/* Large and up */
@media screen and (min-width: 64em) {}

/* Large only */
@media screen and (min-width: 64em) and (max-width: 74.9375em) {}


/* Header */

div:focus { outline: 0; }

a{
	font-size: italic;
	text-decoration: underline;
}

a:hover{
	color: #5c5956;
}

.uppercase{
	text-transform: uppercase;	
}

.logo-background{
	width: 250px;
	height: auto;
	margin-top: 10px;
}

.logo-heading{
	position: absolute;
    top: 40px;
    padding-left: 20px;
    font-size: 1.6rem;
}

nav ul {
    list-style: none;
    margin: 0;
    position: absolute;
    top: 122px;
}

nav a{
	text-decoration: none;
}

nav li{
	display: inline;
	padding: 6px;
}

/* Medium and up */
@media screen and (min-width: 40em) {
	nav ul{
    padding-left: 76px;
    top: 105px;
}
}

@media screen and (min-width: 1400px) {
	.logo-background{
		margin-bottom: 40px;
	}
}

/* Carousel */

.carousel-container{
	overflow: hidden;
    padding-top: 70px;
    padding-bottom: 70px;
    margin: 10px auto 40px auto !important;
}

@media screen and (min-width: 1400px) {
	.carousel-container{
	    margin: 10px auto 60px auto !important;
	}
}

.top-container{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 16vh;
    margin-bottom: -100px;
}

@media screen and (max-width: 600px) {
	.top-container{
	 margin-bottom: 0;
	 height: auto;
	 padding-bottom: 20vh;
	}
}

@media screen and (max-height: 700px) {
	.top-container{
	 margin-bottom: 0;
	 height: auto;
	}
}

@media screen and (max-height: 350px) {
	.carousel-container{
    padding-top: 40px;
    padding-bottom: 20px;
}
}

@media screen and (max-width: 600px) {
	.top-container{
	 padding-bottom: 0vh;
	}
}

@media only screen and (min-width:87.5em) and (min-height:56.25em) { 
	.logo-background{
	    width: 380px;	
	}
	
	.logo-heading{
		top: 61px;
		padding-left: 44px;
		font-size: 2rem;
	}
	
	nav ul {
	   padding-left: 118px;
	   top: 151px; 
	}
	.top-container{
	    padding-bottom: 22vh;
		margin-bottom: -100px; 	
	}
}

.slick-slide{
	position:relative;
}

.carousel .slick-list{
	overflow: visible !important;
}

.carousel img{
    position: relative;
    text-align: center;
    height: auto;
    width: 58vw;
    max-height: 55vh;
    object-fit: cover;
    margin-left: auto;
}

.carousel div:focus{
	outline: 0;
}

.slick-slide img{
	transform: scale(1);
	transition: all 800ms ease;
}

.slick-center img{
	transform: scale(1.2);
	z-index: 2000;
}

/* Home Gallery */

.gallery-image-thumb{
	margin-bottom: 30px;
}

/* Medium and up */
@media screen and (min-width: 40em) {
	.wider-image{
		width: 64.1% !important;
	}
}

.instagram{
	display: inline-block;
	transition: opacity 400ms ease;
}

.instagram:hover{
	opacity: 0.8;
}

/* Exhibitions */

.exhibitions{
	list-style: none;
	margin: 0;
}

.date{
	font-size: 110%;
	padding-right: 10px;
}

.exhibitions li{
	padding-bottom: 10px;
}

@media screen and (min-width: 1400px) {
	h2,h3,h4,h5,h6{
		margin-bottom: 35px;
	}
	p{
		margin-bottom: 35px;
	}
}

.animate-in{
	opacity: 0;
	position: relative;
	transform: translatey(100px);
	transition: opacity 800ms ease-in-out, transform 800ms ease-in-out;
}

.fade-in-up{
	opacity: 1;
		transform: translatey(0px);
}

/* Curtains */

.curtains{
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 200;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -ms-transform: scale(1,0);
    -webkit-transform: scale(1,0);
    transform: scale(1,0);
    background-color: white;
    transition: all 400ms ease !important;
}

.curtains-open{
    -ms-transform: scale(1,1);
    -webkit-transform: scale(1,1);
    transform: scale(1,1);
}

.fade-page{
	opacity: 0;
}

/* Gallery */

.gallery-content{
	position:relative;
	z-index: 500;
	transition: opacity 400ms linear;
}

.gallery-hover{
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	background-color: rgba(127, 124, 120, 0.8);
	opacity: 0;
	transition: opacity 300ms ease;
}

.gallery-hover span{
	position: absolute;
	bottom: 20px;
	right: 30px;
	text-transform: uppercase;
	color: #f3f2f2;
	text-align: right;
}

.gallery-link:hover .gallery-hover{
	opacity: 1;
}

.gallery-slider{
	    overflow-y: hidden;
}

.gallery-title{
	position:relative;
	top:10px;
	left: 20px;
	font-size: 1rem;
	text-transform: uppercase;
	z-index: 2000;
	max-width: 300px;
}

.close-button{
	position:absolute;
	top:10px;
	right: 20px;
	height: 32px;
	width: 32px;
	background-image: url('../images/close.png');
	background-size: contain;
	z-index: 2200;
	transition: all 300ms ease;
}

.close-button:hover{
	transform: rotate(90deg);
}

/* Small only */
@media screen and (max-width: 39.9375em) {
	.close-button{
		height: 25px !important;
		width: 25px !important;
	}
}

.image-title, .image-number{
	font-size: 1rem;
	margin-bottom: 0;
}

.image-title:first-of-type, .image-number{
	margin-top: 20px;
}

.gallery-image{
	max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-height: 85vh;
    margin-top: 10px;
}

#gallery-desc{
	margin-top: 25px;
}

.hide-desc{
	display: none;
}

/* Small only */
@media screen and (max-width: 39.9375em) {
	.gallery-slide{
		min-height: 100vh !important;
		display: flex !important;
    flex-direction: column;
    justify-content: center;
    
	}
	.gallery-info{
		    width: 100%;
		    margin-bottom: 65px;
	}
	.gallery-image{
		margin-top: 80px;
	}
}


@media only screen and (max-width: 39.9375em) and (orientation: landscape) {

.gallery-image{
		margin-top: 0;
	}
}

/* Medium and up */
@media screen and (min-width: 40em) {
	.gallery-image-desc{
		max-height: 55vh;
	}
}

/* Height Queries */
@media screen and (max-height: 850px) {
	.gallery-image{
	   max-height: 80vh;
	   margin-top: 30px;
	}
	.gallery-image-desc{
		max-height: 55vh;
	}
}

/* Height Queries */
@media screen and (max-height: 680px) {
	.gallery-image{
	    max-height: 550px;
	}
	.gallery-image-desc{
		max-height: 55vh;
	}
}

/* Height Queries */
@media screen and (max-height: 580px) {
	.gallery-image{
	    max-height: 450px;
	}
	.gallery-image-desc{
		max-height: 55vh;
	}
}

/* Height Queries */
@media screen and (max-height: 380px) {
	.gallery-image{
	    max-height: 100vh;
	    margin-top:0;
	    margin-bottom: -25px;
	}
	.gallery-image-desc{
		max-height: 55vh;
	}
}

/* Medium and up */
@media screen and (min-width: 40em) {
	.first-image{
		max-width: 50vw;
	}
}

.relative{
	position: relative;
}

.vertical-center{
	display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

img {
    pointer-events: none;
}
