/* CSS Document */

:root {
  --light-color: #eeeeee;   /* almost white */
  --dark-color:  #000000;   /* pure black */
  --medium-color: #7f8a96;  /* cool gray with a hint of blue */
}

body {
	margin: 0;
	color: var(--dark-color);
	background-color: var(--light-color);
	overflow-x: hidden;
	font-family: "Nunito Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-variation-settings:
		"wdth" 100,
		"YTLC" 500;
}

h1, h2, h3, p {
	margin-top: 0;
}

h1, h2, h3 {
	margin-bottom: 0;
}

h1 {
	font-size: 4rem;
}

img.img-icon {
	width: 1.5vw;
	height: 1.5vw;
	margin-left: 1vw;
}

a:link, a:visited {
	color: var(--medium-color);
	text-decoration: none;
	border-bottom: 1px solid var(--light-color);
	transition: border-color 0.3s ease;
}

a:hover:not(:has(*)) {
	border-bottom: 2px solid var(--medium-color);
}

/* Header and Navigation bar ------------------------------------------ */

header {
	position: fixed;
	top: 0;
	min-height: 10vh;
	width: 100vw;
	padding: 1vw 15vw;
	display: flex;
	flex-direction: row;
	align-content: center;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	background-color: var(--light-color);
}

div.div-logo {
	min-width: 8vh;
	min-height: 8vh;
}

div#div-logo {
	background-image: url("../images/logo.svg");
	background-position: left center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: opacity(1);
	transition: filter 0.3s ease;
}

div#div-logo:hover {
	filter: opacity(0.6);
}

div#div-icons {
	display: flex;
	flex-direction: row;
	align-content: flex-end;
	align-items: center;
}

div#div-icons img {
	filter: opacity(1);
	transition: filter 0.3s ease;
}

div#div-icons img:hover {
	filter: opacity(0.6);
}

nav {
	display: flex;
	flex-direction: row;
	align-content: center;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	letter-spacing: 1.1;
}

nav > a:link, nav > a:visited {
	color: var(--dark-color);
	margin: 0 1vw;
	text-decoration: none;
	border-bottom: 3px solid var(--light-color);
	transition: border-color 0.3s ease;
}

nav > a:hover {
	border-bottom: 3px solid var(--medium-color);
}


/* Footer ------------------------------------------------------------- */

footer {
	min-height: 2rem;
	margin-top: 5vh;
	width: 100vw;
	font-size: 1rem;
	font-weight: normal;
	display: flex;
	flex-direction: row;
	align-content: center;
	align-items: center;
	justify-content: center;
}

footer.footer-home {
	position: fixed;
	bottom: 0;
}


/* Homepage ----------------------------------------------------------- */

div.div-homepage {
	padding: 1vw 15vw;
	margin-top: 15vh;
	display: flex;
	flex-direction: row;
	align-content: flex-start;
	align-items: flex-start;
	justify-content: space-between;
	font-weight: bold;
}

div.div-homepage > div:first-child {
	font-size: 4rem;
	width: 75%;
}

div.div-homepage > div:last-child {
	font-size: 1.3rem;
	width: 25%;
}

div#div-intro span {
	opacity: 0;
	display: inline-block; /* required for opacity animation */
	animation: fadeIn 0.5s ease forwards;
}

div#div-intro span:nth-child(1) {
	animation-delay: 0.5s;
}

div#div-intro span:nth-child(2) {
	animation-delay: 1.5s;
}

div#div-intro span:nth-child(3) {
	animation-delay: 2.5s;
}

div#div-right-text {
	text-align: end;
	opacity: 0;
	display: inline-block; /* required for opacity animation */
 	animation: fadeIn 0.5s ease forwards;
	animation-delay: 3.5s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Image carousel */

.carousel {
	width: 100vw;
	height: 50vh;
	overflow: hidden;
}

.carousel_track {
	height: 100%;
	display: flex;
	align-items: stretch;
	gap: 1vw;
	will-change: transform;
}

.carousel_track img {
	height: 100%;
	width: auto;
	display: block;
	flex: 0 0 auto;
	object-fit: cover;
	border: 1px solid var(--medium-color);
}

@media (prefers-reduced-motion: reduce) {
	.carousel_track { animation: none !important; }
}


/* Pages -------------------------------------------------------------- */

section.sec-title {
	position: fixed;
	top: 12vh;
	padding: 0 15vw;
	width: 100%;
	background: linear-gradient(
		to bottom,
		var(--light-color) 0%,
		var(--light-color) 90%,
		rgba(0, 0, 0, 0) 100%
		);
}

div.div-photo-container {
	width: 100%;
	margin-top: calc(12vh + 4rem + 5vh);
	padding: 0 15vw;
	z-index: -1;
	box-sizing: border-box;
}

div.div-photo {
	display: flex;
	flex-direction: column;
	align-content: center;
	align-items: center;
	margin-top: 5vh;
}

figure {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	align-content: flex-end;
	justify-content: space-between;
}

figure > figcaption {
	width: 20%;
	margin-left: 2vh;
	padding-right: 2vh;
	border-right: 1px solid var(--medium-color);
}

img.img-in-page-one {
	border: 1px solid var(--medium-color);
	width: 80%;
	cursor: pointer;
	box-sizing: border-box;
}

img.img-in-page-two {
	border: 1px solid var(--medium-color);
	width: calc(40% - 1vh);
	cursor: pointer;
	box-sizing: border-box;
}

img.img-in-page-two:nth-child(1) {
	margin-right: 2vh;
}

/* Image overlay ------------------------------------------------------ */

/* Fullscreen overlay */
.fs-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0, 0, 0);
  display: none;              /* hidden by default */
  z-index: 9999;
  padding: 24px;              /* margin on all sides */
  box-sizing: border-box;
}

/* when open */
.fs-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the enlarged image */
.fs-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Close button (top-right, outside image area) */
.fs-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}

.fs-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.fs-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}