/*INTRO*/
.intro {
	width: 100vw;
	height: 100vh;
	background-color: #008c96;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;	
	justify-content: center;
	pointer-events: none;
	opacity: 1;
	transition: opacity .5s;
	z-index: 1000;
}

.intro h1 {
	font-family: Lars Medium;
	font-size: 6vw;
	color: white;
}

.intro.fade{
	opacity: 0;
	pointer-events: none;
}

/*CATEGORY MENU*/
.category-menu {
	font-family: Lars Medium;
	font-size: 1.2vw;
}

.category-menu a:hover {
    border-bottom: 1px solid #008c96;
}

.category-menu a.current {
    border-bottom: 1px solid #008c96;
	display: inline;
}

.category-menu a.category-item {
	display: none;
}

.category-menu a.category-item:after {
    content: ",";
    /*color: #000000 !important;*/
}

.category-menu a.category-item:last-child:after {
    content: "";
}

.category-menu a.category-item.open {
	display: inline;
}

a.category-button {
	cursor: pointer;
}

.spanish a.category-button.close:before {
	content: "Cerrar";
}

.english a.category-button.close:before {
	content: "Close";
}

a.category-button.close:hover {
	border-bottom: 0;
}

a.category-button.close:hover:before {
	border-bottom: 1px solid #008c96 !important;
}

a.category-button.close:after {
	content: " — ";
    /*color: #000000 !important;*/
}

a.category-button.close span {
	display: none;
}

/*THUMBNAILS*/
.thumbnail-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 4vw;
	grid-row-gap: 72px;
	padding-top: 4vw;
}
.thumb {
	width: 100%;
	align-self: center;
	justify-self: center;
}
.thumb-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}
.thumb-img img {
	width: 100%;
	max-width: 100%;
	height: auto;
	transition: opacity .15s;
	pointer-events: auto !important;
	cursor: none;
	margin: auto;
	transition: opacity 1s !important;
}
.thumb-img img.loaded {
	opacity: 1;
}
.thumb-img img:not([src]) {
	visibility: hidden;
}
.thumb-img img:hover {
	opacity: 0.8;
}
.thumb-title {
	opacity: 0;
	position: absolute;
	pointer-events: none;
	transform: translateX(-67.5%);
	margin-top: -11vw;
	font-size: 24px;
	color: #000000;
}
.thumb:hover .thumb-title {
	opacity: 1;
}

/*DATA SHEET*/
.data-sheet {
	font-family: Lars Medium;
	font-size: 1.8vw;
	padding-top: 4vw;
}
a.data-row {
	width: calc(100% - 1vw);
	display: grid;
	grid-gap: 1.2vw;
	grid-template-columns: [col] 4.5% [col] 4.5% [col] 72.3% [col] 15%;
	/*grid-template-columns: repeat(4, 10%);*/
	padding: 0.2vw 0.5vw;
	border-top: 1px solid black;
	transition: .15s;
}
a.data-row:hover {
	color: white;
	background: black;
}
a.data-row p:last-child {
	text-align: right;
}

/*PROJECT*/
.project-grid {
	width: 100%;
}
.project-images {
	display: flex;
	height: 45vh;
	width: auto;
	overflow-x: scroll;
	cursor: grab;
}

.project-images img {
	height: 100%;
	width: auto;
	cursor: pointer;
	transition: opacity .15s;
	margin-right: 1vw;
	/* pointer-events: none; */
}
.project-images img:hover {
	opacity: 0.8;
}
.project-images img::selection {
	background-color: transparent;
}
.project-body {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4vw;
	margin-top: 2vw;
}
.project-brief p {
	padding-bottom: 1rem;
}
.project-info h1 {
	font-size: 1.6vw;
	text-transform: uppercase;
}
p.drawings {
	cursor: pointer;
	transition: .15s;
}
p.drawings:hover {
	color: #008c96;
}
button.pdf {
	border: 1px solid black;
	border-radius: 0;
	padding: 1vw 1vw;
	background: transparent;
}
button.pdf {
	border: 0;
	border-radius: 0;
	padding: 0;
	font-size: 1.4vw;
	font-family: Lars Regular;
	background: transparent;
	cursor: pointer;
	transition: .15s;
}
button.pdf:hover {
	color: #008c96;
}

/*TABLET*/
@media (max-width:1024px) {
	/*PROJECT*/
	.project-images {
		height: 60vh;
	}
	.project-info h1 {
		font-size: 2.4vw;
	}

	.thumbnail-grid {
		grid-row-gap: 120px;
		grid-template-columns: repeat(2, 1fr);
	}
	.thumb {
		width: 100%;
		height: 100%;
		aspect-ratio: 1 / 1;
	}
	.thumb-img {
		width: 100%;
		height: 100%;
	}
	.thumb-img img {
		height: 100%;
		object-fit: contain;
	}
	.thumb-title {
		pointer-events: all;
		position: relative;
		opacity: 1;
		transform: translateX(0);
		font-size: 2.5vw;
		margin-top: 16px;
	}
}

/*MOBILE*/
@media (max-width:600px) {

	/*INTRO*/
	.intro h1 {
		font-family: Lars Medium;
		font-size: 8vw;
		transform: translateY(-50%);
	}

	/*CATEGORY MENU*/
	.category-menu {
		font-size: 3.6vw;
		padding-block: .5rem;
	}

	/*THUMBNAILS*/
	.thumbnail-grid {
		display: block;
	}
	.thumb {
		margin-block: 16px 48px;
		aspect-ratio: unset;
	}
	.thumb-img {
		aspect-ratio: initial;
	}
	.thumb-title {
		font-size: 6vw;
	}

	/*PROJECT*/
	.project-body {
		display: block;
		padding-block: 4vw 8vw;
	}

	.project-images img {
		cursor: pointer;
		transition: opacity .15s;
	}

	.project-images img:hover {
		opacity: 0.8;
	}

	.project-info h1 {
		padding-bottom: 6vw;
	}

	.project-info h1 {
		font-size: 4.2vw;
		text-transform: uppercase;
	}

	button.pdf {
		font-size: 3.6vw;
		margin-bottom: 2.5vw;
	}

	/*DATA SHEET*/
	.data-sheet {
		font-family: Lars Medium;
		font-size: 3.6vw;
		padding-top: 4vw;
	}

	a.data-row {
		display: grid;
		grid-gap: 1.2vw;
		grid-template-columns: [col] 10% [col] 10% [col] 51.5% [col] 25%;
		padding: 0.2vw 0.5vw;
		border-top: 1px solid black;
		transition: .15s;
	}

	a.data-row p:last-child {
		text-align: right;
	}

}
