/*
Theme Name: RuthChilds v1
Version: 1
Text Domain: ruthchilds
*/


/* Fonts
---------------------------------------------------- */
@font-face {
	font-family: ESSchwarzweiss;
	src: url('fonts/ESSchwarzweiss-Book.woff2');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: ESSchwarzweiss;
	src: url('fonts/ESSchwarzweiss-BookItalic.woff2');
	font-weight: 400;
	font-style: italic;
}

@font-face {
	font-family: ABCDiatypeMono;
	src: url('fonts/ABCDiatypeMono-Medium.woff2');
	font-weight: 400;
	font-style: normal;
}




/* General
---------------------------------------------------- */
* {
	box-sizing: border-box;

}

:root {
	font-size: 4.0712vw;

	--gris1: #efefef;
	--gris2: #9c9c9c;
	--blue: #73ffd7;
}


@media (min-width: 900px) {
	:root {
		font-size: 1.1111vw;
	}
}

@media (min-width: 1440px) {
	:root {}
}

body {
	position: relative;
	margin: 0;
	font-family: ESSchwarzweiss, sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: 1rem;
	/*font-feature-settings: "ss08";*/
	line-height: 1.5;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	background-color: white;
}

body.menu-open {
	overflow: hidden;
}

@media (min-width: 900px) {
	body {
		display: flex;
		flex-direction: column;
		height: 100vh;
	}
	body .main {
		flex-grow: 1;
	}
}

figure {
	margin: 0;
}

svg {
	display: block;
}

a {
	color: inherit;
	text-decoration: inherit;
	/*transition: color 300ms;*/
}

strong {
	font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

sup {
	line-height: 0;
}

.hidden {
	display: none !important;
}

@media (max-width: 899px) {
	.desktop-only {
		display: none !important;
	}
}

@media (min-width: 900px) {
	.mobile-only {
		display: none !important;
	}
}




/* Header
---------------------------------------------------- */

.site-header {
	position: absolute;
	top: 0.9375rem;
	right: 1.3125rem;
}

.nav-site {
	background-color: var(--gris1);
	padding: 0 0.8125rem;
	display: flex;
	align-items: center;
	gap: 1.625rem;
	height: 2.1875rem;

	font-size: 0.875rem;
	line-height: 1;
}

.nav-site .site-title {
	text-transform: uppercase;
}

.nav-site ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.625rem;
}






/* Page Projects - Nav
---------------------------------------------------- */

.nav-project-categories {
	padding: 4.4375rem 1.3125rem 1.125rem 1.6875rem;
}

.nav-project-categories ul {
	padding: 0;
	margin: 0;
	list-style-type: none;

	display: flex;
	gap: 0.625rem;
}

.nav-project-categories ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16.9375rem;
	height: 7.3125rem;
	border: 1px solid var(--gris2);
	border-radius: 0.1875rem;
}

.nav-project-categories ul li.active a,
.nav-project-categories ul li a:hover {
	background-color: var(--blue);
	border-color: var(--blue);
}

/* Page Projects - Grid
---------------------------------------------------- */

.grid-projects {
	border-top: 1px solid var(--gris2);
}

.row-project {
	display: flex;
	padding: 0 1.3125rem 1rem 1.6875rem;
	border-bottom: 1px solid var(--gris2);

}

.cell-project {
	flex-grow: 1;
}

.cell-project .project-thumbnail {
	width: 5.375rem;
	display: inline-block;
}

.cell-project .project-thumbnail img {
	/*width: 100%;*/
	width: 5.375rem;
	height: 4.125rem;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cell-project .project-title {
	display: inline;
	font-size: 5.625rem;
	line-height: 1;
	letter-spacing: -3%;
}

.cell-category {
	flex-shrink: 0;
	font-size: 0.875rem;
	line-height: 1.27;
	letter-spacing: -1%;
	text-transform: uppercase;
	padding: 0.5rem 0;
}





/* Single Projects - Cover
---------------------------------------------------- */
.single-project .section-cover {
	height: 100vh;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
}

.single-project .section-cover img {
	width: 100%;
	height: 100vh;
	object-fit: cover;
	object-position: center;
}

.single-project-title {
	font-size: 8.75rem;
	line-height: 1;
	letter-spacing: -3%;
	padding: 1.8125rem 1.1875rem;
}


/* Single Projects - Description
---------------------------------------------------- */

.section-description {
	display: flex;



	border-top: 1px solid var(--gris2);


}

.single-project .left-column {
	width: 25.4375rem;
	min-width: 0;
	flex-shrink: 0;
}

.single-project .project-header {
	flex-shrink: 0;
	display: flex;
	padding: 0 0 0 1.875rem;

	font-family: ABCDiatypeMono;
	font-size: 0.75rem;
	line-height: 1.27;
	letter-spacing: -1%;

	padding: 1rem 1.875rem;
	position: sticky;
	top: 0;


	/*mix-blend-mode: difference;*/
	/*color: white;*/

}

.single-project .right-column {
	flex-grow: 1;
	padding: 0 1.875rem 0 0;
	min-width: 0;
}

.project-credits {
	font-family: ABCDiatypeMono;
	font-size: 0.75rem;
	line-height: 1.27;
	letter-spacing: -1%;

	padding: 1rem 0;
}

.project-category {
	width: 6.6875rem;
	flex-shrink: 0;
	text-transform: uppercase;
}

.project-year {
	flex-grow: 1;
	text-transform: uppercase;
}

.project-credits {
	column-count: 3;
	column-gap: 1rem;
}

.project-credits .credit-title {
	text-transform: uppercase;
}

.project-credits .project-credit {
	margin-bottom: 1.25em;
	break-inside: avoid-column;
}



/* Single Projects - Content
---------------------------------------------------- */


.project-content a {
	color: var(--gris2);
}


.project-content img {
	margin-top: 4rem;
	margin-bottom: 4rem;
}

.project-content .gallery {
	padding: 0 1.875rem;
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 4rem 0;
}

.project-content .gallery img {
	margin: 0;
}

.project-content .gallery-item {
	flex: 1 0 50%;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.project-content .gallery-item img {
	width: 100%;
	height: auto;
	display: block;
}

.project-content .gallery-item:nth-child(2) img {
	width: 70%;
	height: auto;
	display: block;
}


@media (min-width: 900px) {

	.project-content {
		/*overflow: hidden;*/
	}

	.project-content p {
		font-size: 2rem;
		line-height: 1.24;
		letter-spacing: -1%;
		/*padding-left: 25.4375rem;*/
		padding-right: 10.5625rem;
	}

	.project-content p img.aligncenter {
		width: 68.875rem;
		height: auto;
		display: block;
		margin-left: -14.875rem;

	}

	.project-content p img.alignnone {
		width: 100vw;
		height: auto;
		display: block;
		margin-left: -25.4375rem;
		margin-right: -10.5625rem;

	}

	.project-content .gallery {
		margin-left: -25.4375rem;
	}



}


/* Single Projects - Shows
---------------------------------------------------- */

.past-shows-title {
	font-size: 5.625rem;
	line-height: 1;
	letter-spacing: -3%;
	margin: 7rem 1.375rem 3rem;
	text-transform: uppercase;
}

.shows-grid {
	display: grid;
	grid-template-columns: 12.1875rem 17.5625rem 1fr;
	/*grid-auto-rows: 2.1625rem;*/

	font-family: ABCDiatypeMono;
	font-size: 0.875rem;
	line-height: 0.87;

	border-top: 1px solid var(--gris2);
	margin-bottom: 3rem;
}

.shows-row {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: 1 / -1;
	grid-template-rows: 2.1625rem;
	align-items: center;
	border-bottom: 1px solid var(--gris2);
}

a.shows-row:hover {
	background-color: var(--gris1);
}

.shows-cell {
	padding: 0 1.375rem;
}






/* Footer
---------------------------------------------------- */

.site-footer {
	padding: 1rem;
}

.footer-content {
	border-radius: 0.75rem;
	background-color: var(--blue);
}

.nav-footer {
	padding: 2.0625rem 1.6875rem 1.6875rem;
	display: flex;
}

.nav-footer ul {
	padding: 0;
	margin: 0;
	list-style-type: none;

	display: flex;
	gap: 0.5625rem;
}

.nav-footer ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gris2);
	border-radius: 0.1875rem;
}

.nav-footer .menu-newsletter {
	flex: 1 0 50%;
}

.nav-footer .menu-newsletter a {
	width: 21.125rem;
	height: 5.6875rem;
}

.nav-footer .menu-social {
	flex: 1 0 50%;
}

.nav-footer .menu-social li {
	flex: 1 0 0;
}

.nav-footer .menu-social a {
	/*width: 14.5rem;*/
	height: 5.6875rem;
}

.footer-pages {
	font-size: 0.8125rem;
	line-height: 1.2;
}

.footer-pages table {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	padding: 1.6875rem;
	height: auto !important;
}

.footer-pages table tbody,
.footer-pages table tr {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: 1 / -1;
	height: auto !important;
}

.footer-pages table tr td {
	width: auto !important;
	height: auto !important;
}

.footer-credits {
	padding: 1.6875rem;
	display: flex;

	font-size: 0.625rem;
	line-height: 1.0;
}

.footer-credits .footer-credit-column {
	flex: 1 0 50%;
}
