/*   
Theme Name: forkk theme
Author: Lucas Hesse
Author URI: https://lucas-hesse.de/
*/

@font-face {
	font-family: 'Retrato';
	src: url('assets/fonts/Retrato-EA042024-SemiBold.woff2') format('woff2'),
		url('assets/fonts/Retrato-EA042024-SemiBold.woff') format('woff');
	font-display: swap;
}


html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
	box-sizing: border-box;
}

:root {
	/* ── COLOR ─────────────────────────────────── */
	--color-white: #EBEBEB;
	--color-blue: #1E1E28;
	--color-grey: #A0A4A8;
	--color-beige: #C4C4C2;
	--color-red: #5D3A40;

	/* ── GRID ─────────────────────────────────── */
	--columns: 9;
	--gap: 30px;
	--gap-bottom: clamp(150px, 14.0625vw, 270px);


	/* ── FONT  ─────────────────────────────────── */
	--font-size-s: max(15px, 0.78vw);
	--font-size-l: max(45px, 3.125vw);
	--line-height-s: max(17px, 0.884vw);
	--line-height-l: max(45px, 3.125vw);


	/* ── MOTION  ─────────────────────────────────── */
	--dur: 0.5s;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);

}


body,
html {
	width: 100vw;
	font-family: 'Retrato', Helvetica, Arial, sans-serif;
	font-size: var(--font-size-s);
	line-height: var(--line-height-s);
	letter-spacing: 0.02em;
}

body.studio,
.studio.menuopen header {
	background: var(--color-blue);
	color: var(--color-white);
}

body.studio ::selection {
	background: var(--color-white);
	color: var(--color-blue);
}

body.studio a {
	color: var(--color-white);
}


body.events,
.events.menuopen header {
	background: var(--color-white);
	color: var(--color-grey);
}

body.events ::selection {
	background: var(--color-grey);
	color: var(--color-white);
}

body.events a {
	color: var(--color-grey);
}


body.retreats,
.retreats.menuopen header {
	background: var(--color-grey);
	color: var(--color-white);
}

body.retreats ::selection {
	background: var(--color-white);
	color: var(--color-grey);
}

body.retreats a {
	color: var(--color-white);
}

.mo {
	display: none;
}

.wo {
	display: none;
}


header,
main,
footer {
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

header.visible,
main.visible,
footer.visible {
	opacity: 1;
}

h1,
h2,
address,
.se4 span {
	font-size: var(--font-size-l);
	line-height: var(--line-height-l);
	letter-spacing: 0;
}

h3 {
	text-transform: uppercase;
	font-size: var(--font-size-s);
	line-height: var(--line-height-s);
}

p:not(:last-child) {
	margin-bottom: var(--line-height-s);
}

a {
	outline: none;
	text-decoration: none;
	transition: opacity var(--dur) var(--ease);

}

a:hover,
a:focus {
	opacity: 0.5;
	outline: none;
}

a.noo:hover,
nav ul li a:hover,
nav ul li a:focus,
a#logo:hover {
	opacity: 1;
}

.button {
	text-decoration: none;
}

.list,
.button {
	align-self: start;
	text-transform: uppercase;
}


img,
#map {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}

section {
	grid-column: 1 / -1;
	margin-bottom: var(--gap-bottom);
}

.grid,
section,
footer,
header {
	display: grid;
	grid-template-columns: repeat(var(--columns), 1fr);
	gap: var(--gap);
	padding: var(--gap);
}

.sg,
.list .row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
}

/* Start-Klassen */
.s1 {
	grid-column-start: 1;
}

.s2 {
	grid-column-start: 2;
}

.s3 {
	grid-column-start: 3;
}

.s4 {
	grid-column-start: 4;
}

.s5 {
	grid-column-start: 5;
}

.s6 {
	grid-column-start: 6;
}

.s7 {
	grid-column-start: 7;
}

.s8 {
	grid-column-start: 8;
}

.s9 {
	grid-column-start: 9;
}

/* Span/End-Klassen */
.e1 {
	grid-column-end: span 1;
}

.e2 {
	grid-column-end: span 2;
}

.e3 {
	grid-column-end: span 3;
}

.e4 {
	grid-column-end: span 4;
}

.e5 {
	grid-column-end: span 5;
}

.e6 {
	grid-column-end: span 6;
}

.e7 {
	grid-column-end: span 7;
}

.e8 {
	grid-column-end: span 8;
}

.e9 {
	grid-column-end: span 9;
}

/* -- HEADER -- */

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	grid-row-gap: 0 !important;
	z-index: 100;
}

nav {
	grid-column: 1 / span 4;
	display: grid;
	grid-template-columns: subgrid;
	margin-top: var(--line-height-s);

}

nav ul li {
	margin-right: calc(var(--gap) * -1);
}

#logo {
	position: absolute;
	top: var(--gap);
	transition: left var(--dur) var(--ease);
}

/* -- MAIN -- */
main {
	position: relative;
	z-index: 50;
}

section.intro {
	height: 100vh;
}

.studio .intro h1 {
	align-self: end;
}

#map {
	aspect-ratio: 1020 / 679;
	width: 100%;
	pointer-events: none;
	filter: grayscale(1);
}

.maplibregl-ctrl-attrib a {
	color: rgba(0, 0, 0, .75) !important;
}

.maplibregl-ctrl-attrib-button:focus,
.maplibregl-ctrl-group button:focus {
	box-shadow: none;
}

.list {
	display: grid;
	grid-template-columns: subgrid;
	column-gap: var(--gap);
	row-gap: 0;
}

.list .row.gl {
	margin-bottom: var(--line-height-s);
}

.list .row div:nth-child(1) {
	grid-column: span 1;
}

.list .row div:nth-child(2),
.list .row ul {
	grid-column: 2 / -1;
}


.list .text {
	grid-column: 1 / -1;
	text-transform: none;
}

.events .intro .sg {
	align-self: end;
}

.events .se4 span:not(:last-of-type)::after {
	content: ", ";
}

.tp img {
	margin-bottom: var(--line-height-s);
}


.tp h3,
.team h3 {
	text-align: center;
}



.retreats .current-retreat {
	position: fixed;
	z-index: 150;
	top: var(--gap);
	right: var(--gap);
	width: calc((100vw - (3 * var(--gap))) / 2);
	text-align: right;
}

.retreats .intro {
	margin-bottom: 0;
}

.retreats .intro .sg {
	align-self: center;
}

.retreats .intro img:nth-child(1) {
	grid-column-start: 4;
	grid-column-end: span 1;
}

.retreats .intro img:nth-child(2) {
	grid-column-start: 5;
	grid-column-end: span 1;
}

.retreats .intro img:nth-child(3) {
	grid-column-start: 6;
	grid-column-end: span 1;
}


.retreats .tp .sg img:nth-child(1) {
	grid-column-start: 3;
	grid-column-end: span 2;
}

.retreats .tp .sg img:nth-child(2) {
	grid-column-start: 5;
	grid-column-end: span 2;
}

.retreats .tp .sg img:nth-child(3) {
	grid-column-start: 7;
	grid-column-end: span 2;
}

.retreats .sr3 img {
	grid-column-start: 1;
	grid-column-end: span 4;
}

.imprint {
	margin-top: var(--gap-bottom);
}



/* --- FOOTER --- */

footer .instagram {
	margin-bottom: var(--gap-bottom);
}

footer .img-holder img:nth-child(1) {
	grid-column-start: 4;
	grid-column-end: span 2;
}

footer .img-holder img:nth-child(2) {
	grid-column-start: 6;
	grid-column-end: span 2;
}

footer .img-holder img:nth-child(3) {
	grid-column-start: 8;
	grid-column-end: span 2;
}

footer .imprint {
	margin-top: var(--gap-bottom);
	align-self: end;
}


/* --- GALLERY --- */
.gallery {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: pointer;
}

.gallery-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.gallery-img.active {
	display: block;
}

.control-bar {
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 100%;
	display: flex;
	gap: 10px;
	padding: 0 10px;
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
	pointer-events: none;
}

.gallery:hover .control-bar {
	opacity: 1;
	pointer-events: all;
}

.control-dot {
	flex: 1;
	height: 4px;
	background: var(--color-white);
	opacity: 0.2;
	cursor: pointer;
	box-shadow: var(--color-blue);
	box-shadow: 0 0 50px 0 var(--color-blue);
	transition: opacity var(--dur) var(--ease);
}

.control-dot.active {
	opacity: 1;
}

.gallery.single {
	cursor: inherit;
}

.gallery.single .control-bar {
	display: none;
}


/* -- RESPONSIVE -- */

/* Mobile */
@media (max-width: 680px) {

	:root {
		--columns: 6;
		--gap: 20px;
		--font-size-s: clamp(15px, 2.36vw, 17px);
		--line-height-s: clamp(17px, 2.64vw, 19px);
		--font-size-l: clamp(32px, 6.25vw, 45px);
		--line-height-l: clamp(32px, 6.25vw, 45px);
	}

	.mo {
		display: block;
	}

	header {
		width: 100vw;
		z-index: 200;
	}


	header #logo,
	header nav li a,
	.toggle-menu {
		font-size: var(--font-size-l);
		line-height: var(--line-height-l);
	}

	#logo {
		position: relative;
		top: 0;
		left: 0 !important;
	}

	header .links {
		grid-column: 1 / -1;
		align-self: end;
		display: none;

	}

	nav {
		display: block;
		grid-column: 1 / -1;
		margin-top: inherit;
		align-self: center;
		display: none;
	}

	nav li#instagram {
		margin-top: var(--line-height-l);
	}

	.toggle-menu {
		position: absolute;
		top: var(--gap);
		right: var(--gap);
		cursor: pointer;
	}

	.menuopen {
		position: fixed;
	}


	.menuopen header {
		width: 100vw;
		height: 100vh;
		position: fixed;
	}

	.menuopen nav,
	.menuopen .links {
		display: block;
	}

	.s1,
	.s2,
	.s3,
	.s4,
	.s5,
	.s6,
	.s7,
	.s8,
	.s9 {
		grid-column-start: 1;
	}

	.e1,
	.e2,
	.e3,
	.e4,
	.e5,
	.e6,
	.e7,
	.e8,
	.e9 {
		grid-column-end: -1;
	}

	.list .row div:nth-child(1) {
		grid-column: span 2;
	}

	.list .row div:nth-child(2),
	.list .row ul {
		grid-column: 3 / -1;
	}

	.studio .intro .gallery {
		grid-column-start: 3;
		grid-column-end: span 4;
	}

	.ss2 .button,
	.se2 .button {
		grid-row: 3;
	}

	.ss3 .list {
		grid-column-start: 3;
	}

	/*.events .intro div div {
		grid-column-start: 3;
		grid-row: 1;
		margin-bottom: var(--gap);
	} */


	.events .intro .gallery {
		grid-column-start: 1;
		grid-column-end: span 6;
	}

	.events .intro .s8 {
		grid-column-start: 3;
		grid-column-end: span 4;
		grid-row: 1;
		margin-bottom: var(--gap);
	}

	.retreats .intro img:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.retreats .intro img:nth-child(2) {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	.retreats .intro img:nth-child(3) {
		grid-column-start: 5;
		grid-column-end: span 2;
	}

	.retreats .current-retreat {
		top: inherit;
		right: inherit;
		bottom: var(--gap);
		left: var(--gap);
		width: calc((100vw - (2 * var(--gap))));
		opacity: 1;
		transition: opacity var(--dur) var(--ease);

	}

	.current-retreat.hide {
		opacity: 0;
		pointer-events: none;
	}

	.retreats .tp div {
		grid-column-start: 1;
	}

	.retreats .tp .sg img:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.retreats .tp .sg img:nth-child(2) {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	.retreats .tp .sg img:nth-child(3) {
		grid-column-start: 5;
		grid-column-end: span 2;
	}


	.retreats .team {
		grid-column-start: 4;
	}

	.retreats .sr3 img {
		grid-column-end: span 6;
	}


	footer .instagram p {
		grid-column-start: 3;
	}

	footer .img-holder img:nth-child(1) {
		grid-column-start: 1;
	}

	footer .img-holder img:nth-child(2) {
		grid-column-start: 3;
	}

	footer .img-holder img:nth-child(3) {
		grid-column-start: 5;
	}

	footer .contact address {
		margin-bottom: var(--line-height-l);
	}



}


/* Tablet */
@media (min-width: 681px) and (max-width: 1080px) {
	:root {
		--columns: 6;
	}

	.e7,
	.e8,
	.e9 {
		grid-column-end: span 6;
	}

	.ss2 .s4 {
		grid-column-start: 3;
	}

	.ss2 .e6 {
		grid-column-end: span 4;
	}

	.ss2 .button {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.ss2 .list.s6 {
		grid-column-start: 3;
	}

	.ss2 .list.e7 {
		grid-column-end: span 3;
	}

	.ss3 .e5 {
		grid-column-end: span 4;
	}

	.ss3 .list {
		grid-column-start: 5;
		grid-column-end: span 2;
	}



	footer .instagram p {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	footer .img-holder img:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	footer .img-holder img:nth-child(2) {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	footer .img-holder img:nth-child(3) {
		grid-column-start: 5;
		grid-column-end: span 2;
	}

	/*.events .intro div div {
		grid-row: 1;
		margin-bottom: var(--gap);
		grid-column-start: 5;
		grid-column-end: span 2;
	}*/

	.events .intro .gallery {
		grid-column-start: 1;
		grid-column-end: span 4;
	}

	.events .intro .s8 {
		grid-column-start: 5;
	}

	.events .se4 div {
		grid-column-start: 3;
		grid-column-end: span 4;
	}

	.retreats .current-retreat {
		width: calc((100vw - (4 * var(--gap))) / 3);
	}

	.retreats .intro img:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.retreats .intro img:nth-child(2) {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	.retreats .intro img:nth-child(3) {
		grid-column-start: 5;
		grid-column-end: span 2;
	}

	.retreats .tp .sg img:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.retreats .tp .sg img:nth-child(2) {
		grid-column-start: 3;
		grid-column-end: span 2;
	}

	.retreats .tp .sg img:nth-child(3) {
		grid-column-start: 5;
		grid-column-end: span 2;
	}

	.retreats .tp img {
		grid-column-end: span 2;
	}

	.retreats .tp img.s3 {
		grid-column-start: 1;
	}

	.retreats .tp img.s5 {
		grid-column-start: 3;
	}

	.retreats .tp img.s7 {
		grid-column-start: 5;
	}


	.retreats .team {
		grid-column-end: span 2;
	}

}