:root {
	--white: #fff;
	--light-grey: #a4a4a4;
	--dark-grey: #505050;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Roboto', sans-serif;
}

html {
	font-size: 0.625em;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

ul {
	list-style-type: none;
}

a {
	text-decoration: none;
	color: inherit;
}

#nav-bar {
	background-color: black;
	color: var(--white);
	font-size: 1.5rem;
	text-align: center;
	cursor: pointer;
	position: absolute;
	top: 0;
	width: 100%;
}

#nav-bar-text {
	display: none;
}

.menu-btn {
	padding: 1rem 0;
	width: 100%;
	user-select: none;
}

#main-menu-container {
	display: none;
}

.menu-item a {
	display: inline-block;
	padding: 5px 0;
}

.menu-item a {
	position: relative;
}

.menu-item a span::after {
	content: "";
	position: absolute;
	top: 90%;
	left: 0;
	width: 100%;
	border-top: 1px solid;
	opacity: 0;
	transition: 0.5s;
}

.menu-item a:hover span::after {
	opacity: 100%;
}

/** WORK **/
.active #main-menu-container {
	display: block;
}

.work-galery-item img {
	width: 100%;
	display: block;
}

.work-galery-item figcaption {
	display: none;
}

/** ABOUT **/
#about-container {
	padding: 20px;
	background-color: var(--white);
}

#about-title {
	margin: 40px 0 100px;
	font-size: 4.3rem;
	font-family: 'Source Serif Pro', serif;
	font-weight:  100;
}

#about-title a {
	position: relative;
}

#about-title a::after {
	content: "";
	position: absolute;
	top: 95%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	border-top: 1px solid var(--light-grey);
	opacity: 0;
	transition: 0.5s;
}

#about-title span:hover a::after {
	opacity: 100%;
}

#about-title span:hover a {
	color: var(--light-grey);
}

.about-img,
.about-img img {
	width: 100%;
}

#about-subtitle {
	color: var(--light-grey);
	font-size: 3.3rem;
	font-family: 'Source Serif Pro', serif;
	margin-top: 100px;
}

.about-sections {
	font-size: 1.6rem;
	line-height: 2.9rem;
	color: #676767;
}

.about-sections h2 {
	font-size: 1.6rem;
	margin: 50px 0 25px;
}

#connect a {
	color: #000;
}

#exhibitions {
	font-size: 1.5rem;
}

#exhibitions table {
	border-collapse: collapse;
	margin-bottom: 100px;
}

#exhibitions tr {
	border-top: solid thin #efefef;
	border-bottom: solid thin #efefef;
}

#exhibitions td {
	padding: 5px;
	vertical-align: top;
}


/********* MEDIA QUERIES *********/
/*SEGUNDO TRAMO*/
/** WORK **/
@media (min-width: 640px) {
	#main-menu-container {
		display: inline-block;
		width: 100%;
	}

	.menu-btn {
		display: none;
	}

	#main-menu {
		display: flex;
		justify-content: flex-start;
		padding: 10px 20px;
		position: sticky;
		top: 0;
	}

	#main-menu .menu-item {
		margin: 5px 10px;
	}

	#main-menu a.active span::after {
		opacity: 100%;
	}

	#nav-bar {
		cursor: default;
		position: static;
	}
	
/** ABOUT **/
	#about-container {
		display: flex;
		flex-wrap: wrap;
		padding: 30px;
	}
	
	#about-title,
	.about-img {
		width: 50%;
	}
	
	#about-subtitle {
		margin: 0;	
	}
		
	#about,
	#services,
	#connect,
	#clients,
	#accolades,
	#awards {
		display: flex;
		flex-wrap: wrap;
		margin-top: 50px;
		flex-grow: 1;
	}
	
	#about h2,
	#services h2, 
	#connect h2,
	#clients h2,
	#accolades h2,
	#awards h2 {
		display: block;
		width: 50%;
		margin: 0;
		font-weight: bolder;
	}
	
	#about p,
	#services p,
	#connect p,
	#clients p,
	#accolades p,
	#awards p {
		width: 50%;
	}
	
	#prof-app {
		width: 50%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		margin-left: auto;
	}
	
	#prof-app .about-sections {
		width: 48%;
	}
	
	#exhibitions {
		margin-left: 50%;
	}
	
}

/*TERCERO TRAMO*/
/** WORK **/
@media (min-width: 915px) {
	#work-galery {
		display: flex;
		flex-wrap: wrap;
	}

	.work-galery-item {
		width: 50%;
	}
}

/*CUARTO TRAMO*/
/** WORK **/
@media (min-width: 990px) {
	#body-container {
		position: relative;
	}

	#nav-bar {
		display: flex;
		position: fixed;
		z-index: 1;
		top: 0;
		left: 0;
		height: 100vh;
		background-color: rgba(24, 24, 24, 1);
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.menu-btn-content {
		display: flex;
		align-items: center;
		width: 100%;
		user-select: none;
	}

	.menu-btn {
		display: flex;
		width: 100px;
		height: 100px;
		padding: 0;
		justify-content: center;
		align-items: center;
		font-size: 3rem;
		cursor: pointer;
		background-color: RGBA(24,24,24, 1);
		transition: .5s;
	}

	.menu-btn:hover {
		background-color: RGBA(255,255,255, 0.05);
		cursor: pointer;
	}

	#main-menu-container {
		width: auto;
		margin: 0;
		flex-grow: 2;
	}

	#nav-bar-text {
		display: block;
		text-align: left;
		margin-left: 130px;
		font-size: 2.5rem;
		line-height: 4.5rem;
		font-family: 'Source Serif Pro', serif;
		color: var(--dark-grey);
	}

	#nav-bar-text a {
		position: relative;
		color: var(--white);
	}

	#nav-bar-text a span::after {
		content: "";
		position: absolute;
		top: 90%;
		left: 0;
		width: 100%;
		border-top: 1px solid;
		opacity: 0;
		transition: 0.5s;
	}

	#nav-bar-text a:hover span::after {
		opacity: 100%;
	}

	#site-main {
		position: relative;
		z-index: 2;
		transition: 1s;
		margin-left: 100px;
	}

	.active #site-main {
		transform: translateX(85%);
		transition: 1s;
	}

	#work-galery {
		display: block;
	}

	.work-galery-item {
		width: 100%;
	}


	/*QUINTO TRAMO*/
	@media (min-width: 1030px) {
		#work-galery {
			display: flex;
			flex-wrap: wrap;
		}

		.work-galery-item {
			width: 50%;
		}

		.work-galery-item figure {
			position: relative;
		}

		.work-galery-item figcaption {
			position: absolute;
			top: 0;
			left: 0;
			color: var(--white);
			width: 100%;
			height: 100%;
			background-color: black;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			visibility: hidden;
			opacity: 0;
			transition: 0.5s;
		}

		.work-galery-item a:hover figcaption {
			visibility: visible;
			opacity: 100;
		}

		.figcap-title {
			font-family: 'Source Serif Pro', serif;
			font-size: 2.5rem;
			font-weight: normal;
			position: relative;
		}

		.figcap-title + span {
			color: grey;
			font-size: 1.3rem;
		}

		.menu-item::after {
			content: " • ";
			margin-left: 15px;
			color: var(--dark-grey);
		}

		.menu-item:last-of-type::after {
			content: "";
		}

		#main-menu a.active span::after {
			opacity: 0 !important;
		}

		#main-menu a.active:hover span::after {
			opacity: 100% !important;
		}

	}
}