/* eb-garamond-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('../themes/francoishoog/assets/fonts/eb-garamond-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* eb-garamond-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('../themes/francoishoog/assets/fonts/eb-garamond-v32-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../themes/francoishoog/assets/fonts/ibm-plex-sans-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../themes/francoishoog/assets/fonts/ibm-plex-sans-v23-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../themes/francoishoog/assets/fonts/ibm-plex-sans-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 600;
  src: url('../themes/francoishoog/assets/fonts/ibm-plex-sans-v23-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html, body {
	background: #fff url('../themes/francoishoog/assets/img/background.webp');
}

body {
	animation: fadeIn 0.8s ease-out forwards;
}

body.modal-open {
	position: fixed;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: translateY(0) }
}

:root {
	--pico-font-family: "EB Garamond", serif;
}

h1 {
	--pico-font-weight: 400;
}

h3.title,
.post-item__header {
	font-style: italic;
}

/* Logo */
.brand {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	text-decoration: none;
}

.brand > h1 {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-bottom: 0;
}

.brand > p {
	font-style: italic;
	color: var(--pico-contrast);
}
/* End Logo */

/* Menu Mobile */
.sticky-burger {
	position: sticky;
	top: 0;
	height: 0;
}
#burger {
	display: none;
}
#burger + label {
	position: absolute;
	top: .5rem;
	right: 1rem;
	height: 30px;
	width: 30px;
	z-index: 5;
}
#burger + label span {
	position: absolute;
	width: 100%;
	height: 2px;
	top: 50%;
	margin-top: -1px;
	left: 0;
	display: block;
	background: #020304;
	transition: .5s;
}
#burger + label span:first-child {
	top: 3px;
}
#burger + label span:last-child {
	top: 26px;
}
#burger + label:hover {
	cursor: pointer;
}
#burger:checked + label span {
	opacity: 0;
	top: 50%;
}
#burger:checked + label span:first-child {
	opacity: 1;
	transform: rotate(405deg);
}
#burger:checked + label span:last-child {
	opacity: 1;
	transform: rotate(-405deg);
}

#burger ~ nav {
	position: sticky;
	height: 100vh;
	transition: .5s;
	transform: translateY(-100vh);
	background-color: var(--pico-background-color);
	opacity: 0;
}
#burger ~ nav ul {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100vw;
}
#burger ~ nav > ul > li {
	opacity: 0;
	transition: .5s;
	transition-delay: 0s;
}
#burger ~ nav > ul > li > a {
	font-family: "IBM Plex Sans", sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pico-contrast);
}
#burger:checked ~ nav {
	transform: translateY(0);
	transition-delay: 0s;
	opacity: 1;
}
#burger:checked ~ nav > ul > li {
	opacity: 1;
	transition-delay: .3s;
}
/* End Menu Mobile */

/* Menu */
#root aside {
	display: none;
	width: 20vw;
}

#root aside nav {
	margin-top: 2rem;
}

#root aside nav a {
	display: inline;
	position: relative;
	font-family: "IBM Plex Sans", sans-serif;
	text-transform: uppercase;
	color: var(--pico-contrast);
}

#root aside nav a:hover {
	text-decoration: none;
	color: var(--pico-contrast-hover);
}

#root aside nav a::before,
#root aside nav a::after {
  content: "";
  position: absolute;
  display: block;
  border: 0 solid transparent;
  width: 0%;
  height: 0%;
  transition: all 0.5s ease;
}

#root aside nav a::after {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
}

#root aside nav a::before {
  right: 0;
  bottom: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
}

#root aside nav a:hover::before,
#root aside nav a:hover::after {
  width: 100%;
  height: 100%;
  border-color: var(--pico-contrast-hover);
}
/* End Menu */

#root footer {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: .65rem;
	margin-top: 2rem;
	text-align: right;
}

/* Wall */
.wall {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
	grid-auto-rows: 20px;
}
/* End Wall */

/* Frame */
.frame {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.3);
}

.wall-item .frame {
	cursor: pointer;
}

.mat {
	/*background: #fafafa url('../img/paper.jpg') 0 0 repeat;*/
	background: #F7F7F7;
	border-width: 15px;
	border-style: solid;
	border-color: #2F2D2D #434040 #4F4C4C #434040;
	box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 0.3);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5) inset;
	z-index: -1;
}

.art {
	position: relative;
	/*margin: 10%;*/
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5) inset;
	background: white;
	padding: 5px;
}

.art img {
	width: 100%;
}
/* End Frame */

/* Gallery */
#gallery {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100%;
	background: #fff url('../themes/francoishoog/assets/img/background.webp');
	opacity: 0;
	transition: opacity .3s ease-out;
	pointer-events: none;
}
#gallery .close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	display: block;
	width: 1rem;
	height: 1rem;
	/*background-image: var(--pico-icon-close);*/
	background-image: url('../themes/francoishoog/assets/img/close.png');
	background-position: center;
	background-size: auto auto;
	background-repeat: no-repeat;
	background-color: transparent;
	border: none;
	opacity: .8;
	transition: opacity var(--pico-transition);
}
#gallery .close:focus {
	box-shadow: none;
}
#gallery .close:hover {
	opacity: 1;
}
.modal-open #gallery {
	pointer-events: auto;
	opacity: 1;
}
#gallery .content {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: end;
	padding: 2rem 1rem;
	flex-wrap: wrap;
}
#gallery .image {
	padding: 0 1rem 1rem;
}
#gallery .image img {
	max-height: calc(80vh - 7rem);
}
#gallery .artwork-label {
	font-size: .75rem;
	background: #fff url('../themes/francoishoog/assets/img/paper.jpg');
	box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.3);
	margin-bottom: 1rem;
	padding: 1rem;
	margin: 0 1rem;
}
#gallery .artwork-label p {
	margin-bottom: .5rem;
}
#gallery .artwork-label .artist {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: bold;
}
#gallery .artwork-label .title {
	font-style: italic;
}
#gallery .artwork-label .year {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: .85rem;
}
#gallery .artwork-label .description {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: .65rem;
}
#gallery .prev,
#gallery .next {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	opacity: .5;
}
#gallery .prev {
	left: 0;
	cursor: url('../themes/francoishoog/assets/img/prev.png'), auto;
}
#gallery .next {
	right: 0;
	cursor: url('../themes/francoishoog/assets/img/next.png'), auto;
}
/* End Gallery */

/* Flash message */
.flash-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--pico-ins-color);
	color: white;
	text-align: center;
	padding: .5rem;
}
.flash-message button {
	background-color: transparent;
	border: none;
	float: right;
	margin-bottom: 0;
}
/* End Flash message */

/* Blog */
.post-item__link {
	text-decoration: none;
}
/* End Blog */

@media (min-width: 576px) {
	#gallery .content {
		flex-wrap: nowrap;
	}
	#gallery .image {
		max-width: 80%;
	}
	#gallery .image img {
		max-height: calc(100vh - 7rem);
	}
	#gallery .artwork-label {
		width: 20%;
		margin: 0 0 1rem;
	}
	
	.textbox {
		display: block;
		text-align: justify;
	}
	.position-left {
		float: left;
		margin: 0 1rem 0 0;
		max-width: 250px;
	}
}

@media (min-width: 1024px) {
	.brand > h1 {
		font-size: 1.25rem;
		margin-top:1rem;
	}
	
	.brand > .p {
		font-size: .85rem;
	}
	
	.sticky-burger {
		display: none;
	}
	
	#root .content {
		display: flex;
	}
	
	#root aside {
		display: block;
	}
	
	#root main {
		display: flex;
		flex-direction: column;
		width: 80vw;
	}
	
	#root main.home {
		flex-direction: row;
		justify-content: space-around;
	}
	
	#root .home .art img {
		max-height: calc(100vh - 230px);
	}
}
