/*
Theme Name: Mashallah v4
Version: 1
Text Domain: mashallah
*/


/* Fonts
---------------------------------------------------- */


/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;0,700;1,500;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');


/*

.roboto-mono-<uniquifier> {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.roboto-regular-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: italic;
} */


/* @font-face {
    font-family: patron;
    font-weight: 700;
    src: url("fonts/patron/PatronWEB-Bold.woff2");
}

@font-face {
    font-family: patron;
    font-weight: 400;
    src: url("fonts/patron/PatronWEB-Regular.woff2");
} */

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

:root {
	font-size: 4.4444vw;

	--page-width: 90rem;
	--side-margin: 1rem;
	--yellow: #FFFF00;
}

body {
	margin: 0;
	font-family: "Roboto", times, sans-serif;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2em;

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

body.search-open {
	overflow: hidden;
}

@media (max-width: 899px) {

	body.menu-open {
		overflow: hidden;
	}
}


figure {
	margin: 0;
}

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

strong {}

.hidden {
	display: none !important;
}

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

	.mobile-only {
		display: none !important;
	}
}

@media (min-width: 1620px) {
	:root {
		font-size: 18px;
	}
}

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





/* Header
---------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 3;
	/* padding: 0 var(--side-margin); */
	background-color: var(--yellow);
}

.site-header .header-content {
	width: 100%;

	display: flex;
	align-items: flex-start;
	/* padding: 1rem 0; */

	margin: 0 auto;
	max-width: var(--page-width);
	padding: 1rem var(--side-margin)
}

@media (min-width) {
	.site-header .header-content {
		height: 7rem;
		max-width: calc(var(--page-width) - var(--side-margin)*2);
		padding: 2rem 0;
	}
}

.site-header .header-content .site-logo {
	flex-grow: 1;
	display: flex;
}

.site-header .header-content .site-logo a {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 4;
}

.site-header .header-content .site-logo a svg {
	display: block;
	/* width: 8.6875rem; */
	width: 10rem;
	height: auto;
	transition: width 300ms;
}

body.scroll-down .site-header .header-content .site-logo a svg {
	width: 5rem;
}

.site-header .header-content .site-logo .logo-news {
	margin-bottom: 1.2rem;
	transition: margin-bottom 300ms;
}

body.scroll-down .site-header .header-content .site-logo .logo-news {
	margin-bottom: 0;
}

.site-header .header-content .site-logo .logo-news-content {
	position: absolute;
	opacity: 1;
	transition: opacity 300ms;
}

body.scroll-down .site-header .header-content .site-logo .logo-news-content {
	opacity: 0;
}

.site-header button {
	appearance: none;
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
	border-radius: 0;
	cursor: pointer;
}

.site-header .header-content button.burger {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;


}

.site-header .header-content button.burger svg {
	display: block;
	width: 2rem;
	height: auto;
	/* width: 1.75rem; */
	/* height: 0.8125rem; */
}

.site-header .header-content button.loupe {
	position: fixed;
	top: 1.3rem;
	right: 4.3rem;
}

.site-header .header-content button.loupe svg {
	display: block;
	width: 2.3163rem;
	height: auto;
}

/* Header Menu
---------------------------------------------------- */
.site-header nav {
	position: fixed;
	z-index: 6;
	right: 0;
	top: 0;

	width: 100%;
	height: 100%;
	background-color: #FFFF00;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	gap: 1rem;
	transform: translate(0, -100%);
	transition: transform 300ms;

	font-size: 1.5vw;

	padding: 3rem 0 3rem;
	overflow: auto;
}

@media (min-width: 900px) {
	.site-header nav {
		max-width: 60vh;
		font-size: 1vh;
		justify-content: center;
	}
}

body.menu-open .site-header nav {
	transform: translate(0, 0);
}

.site-header nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.site-header nav ul.menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* justify-content: center; */
	/* flex-grow: 1; */

	gap: 2em;
}

.site-header nav ul.menu li a {
	text-transform: uppercase;
	font-size: 6em;
	line-height: 1.5em;
	display: block;
}

.site-header nav ul.social {
	display: flex;
	font-size: 1vw;
	gap: 3em;
	padding: 2em 0;
}

.site-header nav ul.social li svg {
	width: auto;
	height: 4em;
	display: block;
}

.site-header nav .close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
}

.site-header nav .close svg {
	width: 2rem;
	height: auto;
	display: block;
}

@media (min-width: 900px) {

	.site-header nav ul.social {
		font-size: 1vh;
	}
}


/* Header Search
---------------------------------------------------- */
.site-header .search-dialog {
	position: fixed;
	/* z-index: 5; */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #FFFF00;

	display: flex;
	justify-content: center;
	align-items: center;

	transform: translate(0, -100%);
	transition: transform 300ms;

}

@media (min-width: 900px) {
	.site-header .search-dialog {
		/* max-width: 60vh;
		font-size: 1vh;
		justify-content: center; */
	}
}

body.search-open .site-header .search-dialog {
	transform: translate(0, 0);
}

body .site-header .search-dialog form {
	width: 100%;
	padding: 0 var(--side-margin);
}

body .site-header .search-dialog label {
	display: flex;
	width: 100%;
	border-bottom: 1px solid black;
}

body .site-header .search-dialog svg {
	display: block;
	width: 3.5rem;
	height: auto;
	flex-shrink: 0;
}

body .site-header .search-dialog input {
	appearance: none;
	border: none;
	background-color: transparent;
	font-size: 2.75rem;
	font-family: inherit;
	font-weight: 400;
	color: inherit;
	flex-grow: 1;
	text-align: center;
	min-width: 0;
}

body .site-header .search-dialog input:focus {
	outline: none;
}

@media (max-width: 899px) {
	body .site-header .search-dialog input {
		font-size: 1.25rem;
	}
}

/* Slideshow
---------------------------------------------------- */

.slideshow .viewer {
	position: relative;
}

.slideshow .slide {
	position: absolute;
	/* width: 100%; */
	height: 100%;

	left: -1rem;
	right: -1rem;
	padding: 0 1rem;
}

.slideshow .slide figure {
	margin: 0;
}

.slideshow .slide figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.slideshow .controls {
	display: flex;
	height: 2.5rem;
	align-items: stretch;
	/* gap: 1rem; */
	border: 1px solid black;
	user-select: none;
}

.slideshow .controls ul.pagination {
	display: none;
}

.slideshow .controls a.left-arrow,
.slideshow .controls a.right-arrow {
	flex-grow: 1;
	/* display: flex; */
	align-items: center;
	cursor: pointer;
	padding: 0 2rem;
	background-color: white;

	display: grid;

}

.slideshow .controls a.left-arrow {
	border-right: 1px solid black;
	grid-template-columns: 2px 1fr;
}

.slideshow .controls a.left-arrow::after {
	content: "";
	border-bottom: 1px solid black;
	flex-grow: 1;
	/* grid-area: 1 / 1 / span 1 / span 2; */
}

.slideshow .controls a.right-arrow {
	grid-template-columns: 1fr 2px;
}

.slideshow .controls a.right-arrow::before {
	content: "";
	border-bottom: 1px solid black;
	/* flex-grow: 1; */
	/* grid-area: 1 / 1 / span 1 / span 2; */
}

.slideshow .controls a.left-arrow svg,
.slideshow .controls a.right-arrow svg {
	display: block;
	width: 0.75rem;
	height: 1.3125rem;
	cursor: pointer;
}

.slideshow .controls a.left-arrow svg {
	/* grid-area: 1 / 1 / span 1 / span 1; */
}

.slideshow .controls a.right-arrow svg {
	/* grid-area: 1 / 2 / span 1 / span 1; */
	justify-self: end;
}

/*
.slideshow .controls {
  display: flex;
  height: 4rem;
  align-items: center;
  gap: 1rem;
}
.slideshow .controls a.left-arrow svg {
  display: block;
  width: 0.75rem;
  height: 1.3125rem;
  cursor: pointer;
}
.slideshow .controls a.right-arrow svg {
  display: block;
  width: 0.75rem;
  height: 1.375rem;
  cursor: pointer;
}
.slideshow .controls ul.pagination {
  flex-grow: 1;
  display: flex;
  list-style-type: none;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.slideshow .controls ul.pagination li {
  height: 0.25rem;
  background-color: #e8ebf2;
  cursor: pointer;
  flex: 1 0 0;
}
.slideshow .controls ul.pagination li.active {
  background-color: black;
}
*/

/* Home - Main
---------------------------------------------------- */

main {
	width: 100%;
	max-width: var(--page-width);
	padding: 1rem var(--side-margin);
	margin: 0 auto;
}

main h1,
main h2 {
	font-size: 2rem;
	line-height: 1em;
	font-weight: inherit;
	text-transform: uppercase;
	margin: 1em 0 1em;
}


body {
	background: linear-gradient(180deg,
			rgba(255, 255, 0, 1) 0,
			rgba(255, 255, 0, 1) 10rem,
			rgba(255, 255, 255, 1) 20rem);
	min-height: 100vh;
}

body.index {
	background: linear-gradient(180deg,
			rgba(255, 255, 0, 1) 0,
			rgba(255, 255, 0, 1) 10rem,
			rgba(0, 0, 0, 0) 20rem,
			rgba(0, 0, 0, 0) 92rem,
			rgba(255, 255, 0, 1) 102rem,
			rgba(255, 255, 0, 1) 112rem,
			rgba(0, 0, 0, 0) 122rem);
}


/* Home - General
---------------------------------------------------- */
main.page-index section {}

/* Home - News
---------------------------------------------------- */

.news-slideshow {
	margin: 0 0 6rem;
	position: relative;
}

.news-slideshow::before {
	content: "";
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 16rem;
	background: linear-gradient(180deg, rgba(255, 255, 0, 1) 0, rgba(255, 255, 255, 0) 16rem);
	pointer-events: none;
}



.news-slideshow .slideshow {}

.news-slideshow .slideshow .viewer {
	width: 100%;
	height: 37.896rem;
	overflow: hidden;
}

.news-slideshow .slideshow .viewer .slide {
	/* pointer-events: none; */
}

.news-slideshow .slideshow .viewer .slide:not(:first-child) {
	transform: translate(100%, 0);
}

.news-slideshow .slideshow .slide figure {
	width: 100%;
	height: 100%;
}

.news-slideshow .slideshow .viewer img {}

.news-slideshow .slideshow .preview {
	position: absolute;
	left: 0;
	right: 0;
	width: 20.5rem;
	bottom: 2.5rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

@media (max-width: 899px) {
	section.news-slideshow {
		margin: 0 -1rem 4rem;
	}

	.news-slideshow .slideshow {
		display: flex;
		flex-direction: column;
		height: calc(100dvh - 6.9rem);
		gap: 0;
	}

	.news-slideshow .slideshow .viewer {

		height: auto;
		flex-grow: 1;
	}
}

@media (min-width: 900px) {
	.news-slideshow .slideshow .preview {
		width: 43.6rem;
	}
}

.news-slideshow .slideshow .preview .preview-header {
	display: flex;
	align-items: flex-end;
	width: 100%;
	font-family: "Roboto Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.2em;
}

.news-slideshow .slideshow .preview .preview-header .preview-header-tab.block {
	width: 12rem;
	background-color: white;
	padding: 0.6rem 1rem 0;
	flex-shrink: 0;
	border-top: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.news-slideshow .slideshow .preview .preview-header .preview-header-tab.placeholder {
	flex-grow: 1;
	border-bottom: 1px solid black;
}

.news-slideshow .slideshow .preview .preview-body {
	width: 100%;
	background-color: white;
	display: flex;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

.news-slideshow .slideshow .preview .preview-body .left-column {
	flex-grow: 1;
	padding: 1rem 1rem;
}

.news-slideshow .slideshow .preview .preview-body .right-column {
	width: 16rem;
	padding: 1rem 1rem;
	flex-shrink: 0;
}

@media (max-width: 899px) {
	.news-slideshow .slideshow .preview .preview-body .right-column {
		display: none;
	}

	.news-slideshow .slideshow .controls {
		margin: 0;
	}
}

.news-slideshow .slideshow .preview h2 {
	padding: 1rem 0;
	margin: 0;
	text-transform: uppercase;
	font-weight: inherit;
	line-height: 1em;
}

.news-slideshow .slideshow .preview .subtitle {
	border-top: 1px solid black;
	padding: 1rem 0;
}

.news-slideshow .slideshow .preview .excerpt {
	font-size: 0.9375rem;
	line-height: 1.25rem;
}


/* Home Cards Slideshow
---------------------------------------------------- */

.cards-slideshow {
	user-select: none;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.cards-slideshow .viewer {
	width: 100%;
	height: 30rem;
	overflow: hidden;
}

.cards-slideshow .viewer .slide {
	/* pointer-events: none; */
}

.card {
	width: 100%;
	flex-shrink: 0;
	display: flex;
}

.card-content {
	border: 1px solid black;
	background-color: white;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

@media (min-width: 900px) {
	.card {
		transform: none !important;
	}

	.cards-slideshow .viewer {
		height: 37.896rem;
	}

	.cards-slideshow .viewer .slide:not(:first-child) {
		transform: translate(100%, 0);
	}

	.cards-slideshow .viewer .slide {
		display: flex;
		gap: 2rem;
	}

	.card {
		width: 23.6rem;
		/* (90 - 7.6*2 - 2*2)/3 */
	}
}


@media (max-width: 899px) {


	.cards-slideshow {
		margin: 0 -1rem;
	}

	.cards-slideshow .slide {
		position: static;
		height: auto;
		left: 0;
		right: 0;
		padding: 0;
		transform: none !important;
	}

	.cards-slideshow .card {
		position: absolute;
		height: 100%;
		padding: 0 1rem;
		/* left: -1rem;
    right: -1rem; */
	}

	.cards-slideshow .controls {
		margin: 0 1rem;
	}
}

.card a {
	flex-shrink: 0;
}

.card figure {
	width: 100%;
	/* height: 21.7772rem; */
	height: 17rem;
}

@media (min-width: 900px) {

	.card figure {
		height: 21.7772rem;
	}
}

.card figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.card .preview {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card .preview-header {
	font-family: "Roboto Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.2em;
}

.card .preview h2 {
	margin: 1rem 0;
	padding: 0;
	/* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5rem; */
}

.card .preview-body {
	/* height: 9.5rem; */
	overflow: hidden;
	flex-grow: 1;
}

.card .preview-body .subtitle {
	border-top: 1px solid black;
}

.card .preview-body .subtitle-content {
	margin: 1rem 0;
	/* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5rem; */
}

.author-links a:not(:last-child)::after {
	content: ", ";
}



/* Home Series
---------------------------------------------------- */
section.stories {
	margin: 0 0 6rem;
}


/* Home Series
---------------------------------------------------- */
section.series {
	margin: 0 0 6rem;
}

/* @media (max-width: 899px) {
  section.series {
    padding: 0 1rem;
  }
} */


/* Home Projects
---------------------------------------------------- */

section.projects {
	border-top: 1px solid black;
	margin: 0 0 4rem;
}

/* @media (max-width: 899px) {
  section.projects {
    padding: 0 1rem;
  }
} */
.projects-cards {
	display: flex;
	gap: 2rem;
	flex-direction: column;
}

.project-card {
	width: 100%;
}

@media (min-width: 900px) {
	.projects-cards {
		flex-direction: row;
		gap: 2rem;
	}

	.project-card {
		width: 23.6rem;
		/* (90 - 7.6*2 - 2*2)/3 */
	}
}

.project-card figure {
	margin: 0;
}

.project-card figure img {
	width: 100%;
	height: 13.5rem;
	display: block;
	object-fit: cover;
	object-position: center;
}

.project-card h3 {
	font-size: 2rem;
	line-height: 1em;
	font-weight: inherit;
	text-transform: uppercase;
	margin: 1rem 0;
}

.project-card .excerpt {
	font-size: 0.9375rem;
	line-height: 1.2em;
}


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

main.projects h1 {
	margin-bottom: 1rem;
}

.projects-header {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.projects-header {
		width: 40rem;
	}
}

.projects-header img {
	max-width: 100%;
	height: auto;
	display: block;
}

.projects-body {
	margin: 0 auto;
}

.projects-body section:not(:last-child) {
	padding: 0 0 3rem;
	border-bottom: 1px solid black;
	margin: 0 0 3rem;
}

.projects-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

@media (min-width: 900px) {
	.projects-body {
		width: 40rem;
	}
}

.projects-body .project {
	border-top: 1px solid black;
	padding: 3rem 0 0;
	margin: 0 0 6rem;
}




/* Home Pages Preview
---------------------------------------------------- */
.pages-preview {
	display: flex;
	gap: 4rem;
	margin-bottom: 4rem;
}

.page-preview {
	width: 100%;
	border-top: 1px solid black;
	display: flex;
	flex-direction: column;
}

@media (max-width: 899px) {
	section.pages-preview {
		/* padding: 0 1rem; */
		flex-direction: column;
	}
}

@media (min-width: 900px) {
	.page-preview {
		width: 50%;
	}
}


.page-preview-body {
	flex-grow: 1;
}

.page-preview h3 {
	font-size: 2rem;
	line-height: 1em;
	font-weight: inherit;
	text-transform: uppercase;
	margin: 1rem 0;
}

.page-preview figure img {
	display: block;
	width: 100%;
	height: 20rem;
	object-fit: contain;
	object-position: center;
}

.page-preview a {
	font-family: "Roboto Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.2em;
	background-color: var(--yellow);
	padding: 0.2rem 0.3rem;
	display: inline-block;
	margin: 0 -0.3rem;
}





/* Single news
---------------------------------------------------- */

.single-news-header {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.single-news-header {
		width: 40rem;
	}
}

.single-news-header img {
	max-width: 100%;
	height: auto;
	display: block;
}

.single-news-body {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.single-news-body {
		width: 40rem;
	}
}

.single-news-body h1 {}

.single-news-body .subtitle {
	font-size: 1.25rem;
	line-height: 1.1em;
	padding: 1rem 0;
	margin: 0 0 1rem;
	border-top: 1px solid black;
	border-bottom: 1px solid black;

	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.content .wp-caption {
	max-width: 100%;
	margin: 2.5rem 0;
}

.content .wp-caption .wp-caption-text,
.single-news-header figure figcaption {
	font-family: "Roboto Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.2em;
	background-color: var(--yellow);
	padding: 0.2rem 0.5rem;
	display: inline-block;
	margin: 0.75rem -0.5rem;
}

.content p {
	line-height: 1.25em;
	text-align: justify;
}

.content img {
	max-width: 100%;
	height: auto;
}

.content .wp-caption img,
.content p img {
	display: block;
	max-width: 100%;
	height: auto;
	min-width: 0;
}

.content .wp-caption img.aligncenter,
.content p img.aligncenter {
	margin: 0 auto;
}

.content .wp-caption img.size-full,
.content p img.size-full {
	max-width: calc(100% + 2rem);
	width: calc(100% + 2rem);
	margin: 0 -1rem;
}

@media (min-width: 900px) {

	.content .wp-caption img.size-full,
	.content p img.size-full {
		max-width: 140%;
		width: 140%;
		margin: 0 -20%;
	}
}

.content .gallery dl dt img {
	width: 100%;
	display: block;
	height: 30rem;
	object-fit: cover;
	object-position: center;
}

.content .gallery dl:first-child dt img {
	object-position: center left;
}

.content .gallery dl:last-child dt img {
	object-position: center right;
}

.content blockquote {
	margin: 3.5rem 2.5rem;
}

.content blockquote p {
	background-color: var(--yellow);
	padding: 1.5rem;


	font-family: "Roboto Mono", monospace;
	font-size: 1.25rem;
	line-height: 1.25em;

	text-align: left;
}

.content p a {
	background-color: var(--yellow);
}

.single-infos {
	display: flex;
	flex-direction: column;
	font-family: "Roboto Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.2em;
	margin-bottom: 2rem;
	gap: 1rem;
}

@media (min-width: 900px) {
	.single-infos {
		flex-direction: row;
	}
}

.single-infos .left-column {
	flex-grow: 1;
}

.single-infos .theme {
	display: flex;
	gap: 0.5rem;
}

.single-infos .theme a {
	text-transform: uppercase;
	border: 1px solid black;
	padding: 0.1rem 0.5rem;
}

.single-infos .city a:not(:last-child)::after {
	content: ", ";
}

ul.language-switch {
	list-style-type: none;
	padding: 0;
	margin: 0.2rem 0;
	display: flex;
	gap: 0.2rem;
	justify-content: flex-end;
}

ul.language-switch li {}

ul.language-switch li a {
	display: block;
	border-radius: 50%;
	text-transform: uppercase;
	padding: 0.2rem;
	border: 1px solid transparent;
}

ul.language-switch li.active a,
ul.language-switch li a:hover {
	background-color: var(--yellow);
	border: 1px solid black;

}

/* .content .wp-caption img.size-full {
  display: block;
  width: 200%;
  height: auto;
  min-width: 0;
} */
.single-news-body .wp-caption .wp-caption-text {
	/* align-self: flex-start; */
}

.single-news-footer {
	border-top: 1px solid black;
	margin-top: 2rem;
}

.single-news-footer .same-topic-cards {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.single-news-footer .same-topic-cards .stories-grid {
	display: grid;
	grid-template-columns: auto;
	gap: 1rem;
}

@media (min-width: 900px) {
	.single-news-footer .same-topic-cards .stories-grid {
		grid-template-columns: auto auto auto;
		gap: 2rem;
	}
}




/* Single News slideshow
---------------------------------------------------- */
.content .gallery {
	position: relative;
	overflow: hidden;

	width: 100%;
	height: 1em;
	font-size: 40rem;
	user-select: none;
}

@media (max-width: 899px) {
	.content .gallery {
		font-size: 20.5rem;
	}
}

.content .gallery .gallery-item {
	position: absolute;
	width: 100%;
	height: 100%;

}

.content .gallery .gallery-item a {
	pointer-events: none;
}

.content .gallery .gallery-item img {
	pointer-events: none;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center !important;
}

.content .gallery .gallery-item:not(:first-child) {
	transform: translateX(100%);
}


/* Single Serie
---------------------------------------------------- */

.single-serie-header {
	margin: 0 auto;
}

.single-serie-header img {
	max-width: 100%;
	height: auto;
	display: block;
}

.single-serie-body {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.single-serie-body {
		width: 40rem;
	}
}

.serie-stories {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.serie-stories .stories-grid {
	display: grid;
	grid-template-columns: auto;
	gap: 1rem;
}

@media (min-width: 900px) {
	.serie-stories .stories-grid {
		grid-template-columns: auto auto auto;
		gap: 2rem;
	}
}


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

main.stories.loading {
	opacity: 0.8;
}

.stories-header {
	/* display: flex;
  flex-direction: column;
  gap: 1rem; */
	margin-bottom: 1rem;
}

.stories-taxonomy {
	border: 1px solid black;
	margin-bottom: 1rem;
	display: grid;
	grid-template-rows: min-content 0fr;
	transition: grid-template-rows 300ms;
	background-color: white;
}

.stories-taxonomy.open {
	grid-template-rows: min-content 1fr;
}

.stories-taxonomy-header a {
	display: flex;
	cursor: pointer;
	padding: 1rem;
}

.stories-taxonomy-header a .title {
	flex-grow: 1;
	text-transform: uppercase;
	font-weight: bold;
}

.stories-taxonomy-header a .handle svg {
	width: 1.2rem;
	height: auto;
	display: block;
}

.stories-taxonomy.open .stories-taxonomy-header a .handle svg path:first-child {
	display: none;
}

.stories-taxonomy-body {
	overflow: hidden;
}

.stories-taxonomy-body ul {
	list-style-type: none;
	padding: 1rem;
	margin: 0;
}

.stories-taxonomy-body li {
	display: inline;
}

.stories-taxonomy-body li:not(:first-child)::before {
	content: " – ";
}

.stories-taxonomy-body li a {
	cursor: pointer;
}

.stories-taxonomy-body li a.active,
.stories-taxonomy-body li a:hover {
	text-decoration: underline;
}


/* Series
---------------------------------------------------- */

.series-header {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.series-header {
		width: 40rem;
	}
}

.series-header img {
	max-width: 100%;
	height: auto;
	display: block;
}

.series-body {
	margin: 0 auto;
}

.series-body section:not(:last-child) {
	padding: 0 0 3rem;
	border-bottom: 1px solid black;
	margin: 0 0 3rem;
}

.series-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

@media (min-width: 900px) {
	.series-body {
		width: 40rem;
	}
}


/* Stories Body
---------------------------------------------------- */

.stories-body {
	margin-bottom: 2rem;
}

.stories-body .stories-grid {
	display: grid;
	grid-template-columns: auto;
	grid-gap: 2rem;
}

.stories-body .stories-empty,
.stories-body .stories-search-result {
	margin: 1rem 0;
}

@media (min-width: 900px) {
	.stories-body .stories-grid {
		grid-template-columns: 23.6rem 23.6rem 23.6rem;
		/* (90 - 7.6*2 - 2*2)/3 */
	}
}

.stories-footer {
	text-align: center;
}

.stories-footer button {
	appearance: none;
	background: transparent;
	border: none;
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: 0;
	cursor: pointer;
	border: 1px solid black;
	text-transform: uppercase;
	color: black;
	font-weight: inherit;
	font-size: inherit;
	font-family: "Roboto Mono", monospace;
}




/* Author Page
---------------------------------------------------- */

main.author h1 {
	margin: 4em 0 1em;
}

.author-page-cards .stories-grid {
	display: grid;
	grid-template-columns: auto;
	grid-gap: 2rem;
}

.author-card {
	width: 100%;

}

@media (min-width: 900px) {

	.author-page-cards .stories-grid {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-gap: 2rem;
	}


	.author-card {
		/*width: 23.6rem;*/
		width: auto;
		/* (90 - 7.6*2 - 2*2)/3 */
	}
}

.author-card figure {
	width: 100%;
	height: 21.7772rem;
}

.author-card figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}


.author-card .content {

	padding: 1rem 0;
}


/* Single page
---------------------------------------------------- */

.single-page-header {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.single-page-header {
		width: 40rem;
	}
}

.single-page-header img {
	max-width: 100%;
	height: auto;
	display: block;
}

.single-page-body {
	margin: 0 auto;
}

@media (min-width: 900px) {
	.single-page-body {
		width: 40rem;
	}
}

.single-page-footer {}



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

footer {
	width: 100%;
	max-width: var(--page-width);
	padding: 0 var(--side-margin);
	margin: 0 auto;
}

@media (max-width: 899px) {
	footer {
		padding: 0 1rem;
	}
}

footer .footer-content {}

ul.social {
	display: flex;
	gap: 1rem;
	list-style-type: none;
	margin: 0;
	padding: 1rem 0;
}

footer ul.social {
	border-bottom: 1px solid black;
}

footer ul.social li svg {
	display: block;
	width: auto;
	height: 1.5rem;
}

footer .credits {
	font-family: "Roboto Mono", monospace;
	margin: 1rem 0;
}

footer .credits p {
	margin: 0;
}

@media (min-width: 900px) {
	footer .credits {
		display: flex;
		justify-content: space-between;
	}

}

/* ----------- */
