/* Madib Theme - Homepage Styles */

/***********************
Recent Works Section
***********************/

#recent-works{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: 30px;
	margin-bottom: 60px;
}

.home-titles{
	border-top: #DDD solid 1px;
	text-align: center;
	margin-bottom: 30px;
}

.home-titles h2{
	color: var(--dark-grey-base);;
}

#recent-exhibitions{
	margin-top: 60px;
}

.recent-works-item{
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
}

.recent-works-image-wrap{
	height: auto;
}

.recent-works-image-wrap img{
	height: auto;
    width: 100%;
}

.recent-works-image-wrap img:hover{
	cursor: pointer;
}

.recent-works-Feature{
	width: 90%;
}

.recent-works-Portrait{
	width: 70%;
	display: flex;
    justify-content: center;
}

.recent-works-Landscape{
	width: 100%;
}

.recent-works-Landscape img{
	width: 110%!important;
	position: relative;
	right: 5%;
}

.recent-works-Square{
	width: 90%;
}

.recent-works-meta{
	text-align: center;
	width: 100%;
}

.recent-works-meta h3{
	margin: 20px auto 10px auto;
	font-weight: 500;
	font-size: 1.2rem;
}

.recent-works-meta h4{
	margin: 0 auto;
	font-weight: 100;
	font-size: 1rem;
	line-height: 1.3rem;
}

/***********************
Archive / Biography
***********************/

#archive-cont{
	display: flex;
	align-content: baseline;
	justify-content: center;
}
#home-archive-text{
	display: flex;
	flex-wrap: wrap;
	align-content:end;
}
#home-archive-text p{
	font-size: 1.2rem;
	color: var(--dark-grey-base);
	line-height: 1.8rem;
	margin: 0;
}
#home-archive-perc{
	flex-direction: column;
	flex-wrap: wrap;
	align-content: center;
	margin-bottom: 4px;
	margin-top: 30px;
}
html[lang="zh-Hant"] #home-archive-perc h3, html[lang="en-US"] #home-archive-perc h3{
	font-size: 3rem;
	margin: 0;
	font-family: "Marcellus", serif;
}

html[lang="en-US"] #home-archive-perc p{
	font-size: 0.75rem;
	margin: 1px 0  0 10px;
}

html[lang="zh-Hant"] #home-archive-perc p{
	font-size: 0.8rem;
	margin: 1px 0  0 10px;
}

/***********************
About Section
***********************/

#about-cont{
	display: flex;
	align-self: center;
	margin-top: 30px;
}

#about-heading-cont{
	display: flex;
	flex-grow: 1;
	align-self: center;
	flex-wrap: wrap;
}

#about-heading-cont h3{
	display: block;
	width: 100%;
	margin: 0

}

#about-heading-cont h2{
	display: block;
	width: 100%;
	margin: 0
}

/***********************
Cover Slider
***********************/

.slider-container{
	clear: both;
	margin: 0 auto;
}

.slider-caption-container{
    position: absolute;
    z-index: 2;
	width: 100%;
	bottom: 0;
}

.slider-caption{
	width: auto;
	display: block;
	height: auto;
	position:relative;
 }

.slider-caption a{
	color: var(--dark-grey-base);
	z-index: 2;
	position: relative;
	width: auto;
	display: inline-block;
	background-color:rgba(255, 255, 255, 0.7);
	margin-bottom: 2px;
	text-decoration: none;
 }

.slider-caption summary{
	color: var(--dark-grey-base);
	z-index: 2;
	position: relative;
	width: auto;
	font-weight: 200;
	font-size: 1rem;
	line-height: 10px;
 }

.summary-bg{
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0.7;
	bottom: 0;
	left: 0;
	background: #FFF;
	animation:a 10s ease-in-out infinite alternate;
}

.slider{
	width: 100%;
	max-width: 1400px;
	position: relative;
}

.slider_cover{
	width: 100%;
	height: auto;
	margin: 0 auto;
}

/***********************
Exhibitions
***********************/

.exhibition-cont{
	margin: 50px auto 0 auto;
	max-width: 700px;
	width: 100%;
	display: block;
}

.exhibition-cont img{
	width: 100%;
}

html[lang="en-US"] .exhibition-cont h3{
	font-weight: 600;
	margin: 20px 0 10px 0;
	font-size: 1.4rem;
}

html[lang="zh-Hant"] .exhibition-cont h3{
	font-weight: 500;
	margin: 20px 0 10px 0;
	font-size: 1.4rem;
}

html[lang="en-US"] .exhibition-cont h4{
	margin: 0 0 5px 0;
	font-weight: 600;
	font-size: 1rem;
}

html[lang="zh-Hant"] .exhibition-cont h4{
	margin: 0 0 5px 0;
	font-weight: 200;
	font-size: 1rem;
}

html[lang="en-US"] .exhibition-cont p{
	margin: 0;
	font-weight: 100;
	font-size: 0.8rem;
	color: var(--dark-grey-base);
}

html[lang="zh-Hant"] .exhibition-cont p{
	margin: 0;
	font-weight: 100;
	font-size: 0.9rem;
	color: var(--dark-grey-base);
}

/***********************
Archive / About Responsive
***********************/

@media screen and (min-width: 791px){
	#archive-cont{
		margin-bottom: 50px;
	}
	#home-archive-perc{
		min-width: 200px;
		justify-content: right;
		align-content:end;
	}

	html[lang="zh-Hant"] #home-archive-perc h3, html[lang="en-US"] #home-archive-perc h3{
		text-align: right;
	}

	html[lang="en-US"] #home-archive-perc p, html[lang="zh-Hant"] #home-archive-perc p{
		text-align: right;
	}

	#about-heading-cont h3{
		font-size: 26px;
		line-height: 46px;
		font-weight: 100;
	}

	#about-heading-cont h2{
		font-size: 32px;
		line-height: 48px;
		font-weight: 500;
	}

	#about-cont{
		flex-wrap: nowrap;
	}
	#about-cont img{
		width: 40%;
		margin-top: 30px;
		margin-right: 5%;
	}
	#about-text {
		margin-top: 40px;
	}
}

@media screen and (max-width: 790px){
	#archive-cont{
		flex-direction: column;
		margin-bottom: 40px;
	}
	#home-archive-perc{
		flex-direction: column;
		align-content: center;
		margin-top: 30px;
	}

	html[lang="zh-Hant"] #home-archive-perc h3, html[lang="en-US"] #home-archive-perc h3, html[lang="en-US"] #home-archive-perc p, html[lang="zh-Hant"] #home-archive-perc p{
		text-align: center;
	}
	#about-heading-cont h3{
		font-size: 22px;
		line-height: 34px;
		font-weight: 100;
	}

	#about-heading-cont h2{
		font-size: 28px;
		line-height: 36px;
		font-weight: 500;
	}

	#about-cont{
		flex-wrap: wrap;
	}
	#about-cont img{
		width: 60%;
		clip-path: inset(5% 0);
		margin: 10px auto 0 auto;
		min-width: 330px;
	}
	#about-text {
		margin-top: 30px;
	}
}

/***********************
Recent Works Responsive
***********************/

@media screen and (min-width: 920px){
	.recent-works-item{
		width: 32%;
		margin: 10px 0;
	}
}
@media screen and (min-width: 625px) and (max-width: 920px){
	.recent-works-item{
		width: 45%;
		margin: 10px auto;
	}
}
@media screen and (max-width: 624px){

	.recent-works-item{
		width: 85%;
		margin: 10px auto;
	}
}

/***********************
Desktop ≥1181px
***********************/

@media screen and (min-width: 1181px) {

	.home-wrap{
		max-width: 1000px;
		width: 100%;
		margin: 40px auto 0 auto;
	}

	#home-top-filler{
		width: 100%;
		height: 120px;
	}

	#logged-home-top-filler{
		width: 100%;
		height: 108px;
	}

	.slider-container{
		width: 100%;
	}

	.slider{
		margin: 0 auto;
	}
	.caption-wrap{
		position: relative;
		margin: 0 auto;
		display: block;
		max-width: 1000px;
		width: 100%;
	}

	.slider-caption a{
		padding: 15px 25px;
	}

	 html[lang="zh-Hant"] .slider-caption a{
		font-size: 1.6rem!important;
		line-height: 16px!important;
		font-weight: 200;
	 }

	 html[lang="en-US"] .slider-caption a{
		font-size: 1.4rem!important;
		line-height: 16px!important;
		font-weight: 200;
	}
	.home-titles h2{
		font-size: 1.8rem;
	}

	html[lang="zh-Hant"] .home-titles h2{
		font-weight: 300;
	}
}

/***********************
Tablet 783-1180px
***********************/

@media screen and (min-width: 783px) and (max-width: 1180px){
	#home-top-filler{
		width: 100%;
		height: 145px;
	}

	#logged-home-top-filler{
		width: 100%;
		height: 130px;
	}
}

/***********************
Tablet 581-782px
***********************/

@media screen and (min-width: 581px) and (max-width: 782px){
	#home-top-filler{
		width: 100%;
		height: 145px;
	}

	#logged-home-top-filler{
		width: 100%;
		height: 127px;
	}
}

/***********************
Tablet/Desktop 581-1180px
***********************/

@media screen and (min-width: 581px) and (max-width: 1180px){

	.home-wrap{
		max-width: 1000px;
		width: 85%;
		margin: 60px auto;
	}

	html[lang="zh-Hant"] .slider-caption a{
		font-size: 1.4rem!important;
		line-height: 16px!important;
		font-weight: 200;
	}

	html[lang="en-US"] .slider-caption a{
		font-size: 1.2rem!important;
		line-height: 16px!important;
		font-weight: 200;
	}

	.slider-container{
		width: 100%;
	}

	.caption-wrap{
		position: relative;
		margin: 0 auto;
		display: block;
		max-width: 800px;
		width: 100%;
	}

	.slider-caption a{
		padding: 15px 25px;
	}
	.home-titles h2{
		font-size: 1.6rem;
	}

	html[lang="zh-Hant"] .home-titles h2{
		font-weight: 200;
	}
}

/***********************
Desktop/Tablet ≥581px
***********************/

@media screen and (min-width: 581px){

	#portrait_cover_slider{
		display: none;
	}

	#about-text p{
		font-size: 1.2rem;
		line-height: 1.8rem;
		text-align: left;
		margin-left:  30px;
		margin-right:  30px;
		font-weight:100;
	}
}

/***********************
Mobile ≤580px
***********************/

@media screen and (max-width: 580px) {

	.home-wrap{
		max-width: 480px;
		width: 90%;
		margin: 60px auto;
	}

	#home-top-filler{
		width: 100%;
		height: 85px;
	}

	#logged-home-top-filler{
		width: 100%;
		height: 70px;
	}

	.caption-wrap{
		position: relative;
		margin: 0 auto;
		display: block;
		max-width: 70%;
		width: 100%;
	}

	#landscape_cover_slider{
		display: none;
	}


	#portrait_cover_slider{
		display: block;
	}

	.slider-caption{
		position: relative;
		display: flex;
		justify-content: center;
	}

	.slider-caption a{
		padding: 10px 25px 25px 25px;
	}

	html[lang="zh-Hant"] .slider-caption a{
		font-size: 1.5rem!important;
		line-height: 2rem!important;
		font-weight: 400;
	}

	html[lang="en-US"] .slider-caption a{
		font-size: 1.3rem!important;
		line-height: 2rem!important;
		font-weight: 400;
	}
	.home-titles h2{
		font-size: 1.4rem;
	}

	html[lang="zh-Hant"] .home-titles h2{
		font-weight: 100;
	}

	#about-text p{
		font-size: 1rem;
		line-height: 1.6rem;
		text-align: left;
		margin-left: 5px;
		margin-right: 5px;
		font-weight: 100;
	}
}
