

:root {
	--light-grey: #eeeeee;
	--dark-grey: #aaaaaa;
	--mono: 'Courier Prime', 'Courier New', Courier, monospace;
	--serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	background-color: var(--light-grey);
	overflow: hidden;
}

img,
video {
	display: block;
	width: auto;
	height: calc(66.666vh - 3px * 2);
	max-width: 100%;
}



h1,
h2,
h3,
a {
	display: block;
	font-family: var(--mono);
	letter-spacing: .05em;
	line-height: 1.2em;
	font-weight: normal;
	color: black;
	margin: 0;
	font-size: 10px;
	padding: 0 3px;
	background-color: var(--light-grey);
	width: fit-content;
	white-space: nowrap;
}

em {
	font-style: italic;
	font-family: var(--serif);
	letter-spacing: -.026em;
	line-height: 0;
}

h2,
h3 { color: var(--dark-grey); }

span { background-color: var(--light-grey); }

h2::after { content: '›'; }
h2::before { content: '‹'; }
h3::after { content: '--›'; }
h3::before { content: '‹!--'; }

a { text-decoration: underline; }

::selection { background-color: transparent; }

h1 a { padding: 0; }

:focus-visible {
	outline: 2px solid #000;
	outline-offset: 1px;
	box-shadow: 0 0 0 3px #fff;
}



#view {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 9999;
	padding: 8px;
}

@media (min-width: 1024px) {
	a:hover,
	#view *:hover {
		color: var(--dark-grey);
		cursor: pointer;
	}
}

#view .indent { display: flex; }

#view-shuffle {
	background-color: transparent;
	padding-top: 1.2em;
	cursor: pointer;
}

#view-shuffle span:first-child { padding-left: 3px; }
#view-shuffle span:last-child { padding-right: 3px; }



header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	width: 100vw;
	padding: 8px;
}

header h3 { margin-bottom: 1em; }

main {
	position: absolute;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}



.data {
	position: fixed;
	top: 50dvh;
	left: 0;
	width: calc(100% / 3);
	padding: 0 8px;
	z-index: 999;
}

#fields,
#slide-index > * {
	display: flex;
	align-items: flex-start;
}

#slide-index > * { cursor: pointer; }

#slide-index:hover > *:not(.active) * { color: var(--dark-grey); }
#slide-index > *:hover * { color: black !important; }

#fields > *,
#slide-index > * > * { flex: 1; }

.indent,
#slide-index > * > * { margin-left: 19.5px; }

.multiple > h1 { display: flex; }
.multiple > h1::after { content: '…'; }
.multiple.hide-after > h1::after { content: ''; }

.multiple .indent,
.multiple .more *,
.credits > * { display: none; }

.services a { padding: 0; }



#carousel-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: scroll;
	padding: 3px;
	scrollbar-width: none;
}

#carousel-container::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

.slide {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: start;
	cursor: e-resize;
}

.slide.single-item { cursor: default; }
.slide:not(:last-child) { padding-bottom: 3px; }
.slide:focus-visible { outline: none; box-shadow: none; }
.slide:focus-visible .media {
	outline: 2px solid #000;
	outline-offset: -2px;
	box-shadow: inset 0 0 0 4px #fff;
}

.media {
	height: fit-content;
	width: fit-content;
	display: flex;
	align-items: center;
}

.media picture:not(:first-child),
.media video:not(:first-child) { display: none; }

picture img,
video {
	background-color: #e4e4e4;
	object-fit: cover;
}



.foto { filter: saturate(.94) contrast(1.03); }



.credits {
	position: fixed;
	top: 75dvh;
	left: 8px;
}



.aviso {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 9999;
	margin: 0;
	padding: 8px;
}

.aviso span {
	display: block;
	font-family: var(--mono);
	letter-spacing: .05em;
	font-size: 10px;
	line-height: 1.2em;
	padding: 0 3px;
	color: var(--dark-grey);
}

.aviso a {
	display: inline;
	padding: 0;
	color: black;
}



@media (max-width: 1024px) {
	h1,
	h2,
	h3,
	a,
	.aviso span {
		font-size: 8px;
		padding: 0 2px;
	}

	img,
	video {
		height: auto;
		max-width: 100%;
	}

	.media { width: 100%; }
	.media picture { width: 100%; }
	.media img,
	.media video { width: 100%; }

	.data { width: 100%; }

	#view-shuffle span:first-child { padding-left: 2px; }
	#view-shuffle span:last-child { padding-right: 2px; }

	.indent,
	#slide-index > * > * { margin-left: 15.5px; }

	.credits {
		top: 75dvh;
		left: 8px;
	}
}
