body {
	font-family: Roboto;
	background: #333333;
	color: #dedede;
}

a {
	color: #6aabec;
	text-decoration: none;
}
a.selected {
	color: white;
	background-color: #666;
}
a:hover {
	text-decoration: underline;
}

p {
	line-height: 1.5em;
}

.container {
  display: grid;
  grid-template-areas:
    "header header"
	"menu menu"
    "content content"
    "footer footer";
  grid-template-columns: 1fr;
  gap: 5px;
  background: rgba(0, 0, 0, .5);    /*  70% opaque green */ 
  padding: 5px;
  max-width: 1040px;
  margin: auto;
  
}

@media (min-width: 600px) {
  .container { 
	grid-template-areas:
		"header header"
		"menu content"
		"footer footer";	
	grid-template-columns: 1fr 3fr; 
	
	}
}

.container > div {
  padding: 20px;
}
.container > div.menu {
  grid-area: menu;
  border-right: 1px solid #888;
  line-height: 1.5em;
}
.container > div.content {
  grid-area: content;
}

.header {
  max-width: 1050px;
  margin: auto;
  border-bottom: 1px solid #ccc;
}

h1 {
	text-align: left;
	font-weight: 300;
	letter-spacing: 4px;
	font-size: 2.75em;
	margin-bottom: 1px;
	margin-top: 0px;
}

h2 {
	margin-top: 0;
	font-weight: 300;
}

.menu {
	text-align: right;
}

.menu a {
	display: inline-block;
    border-bottom: 1px solid #888;
    width: 100%;
    padding: 5px;
}

.menu a:hover {
	text-decoration: none;
	color: white;
	background-color: #666;
}

.worktitle {
	color: white;
}

.footer {
  max-width: 1050px;
  margin: auto;
  text-align: center;
  margin-bottom: 2em;
}

.footer p {
	margin-top: 3px;
	font-size: 0.9em;
}

.contentcontainer {
	position: absolute;
	left:0;
	right:0;
	margin-left: auto;
	margin-right: auto;	
	top: 0;
	padding: 20px;
}

.home .contentcontainer {
	position: relative;
}

.downarrow {
	font-size: 4.2em;
	position: relative;
	top: 100px;
	color: #dedede;
	cursor: pointer;	
}

.arrow {
	display: flex;
	justify-content: center; 
	align-items: center;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);	
	font-size: .4em;
    width: 50px;
    height: 50px; 	
	border: 5px solid #ccc;
	color: #ccc;
	border-radius: 30px;
}

.arrow:hover {
	border: 5px solid #fff;
	color: #fff;	
}

#bgcontainer {
	position: fixed;
}

.videocontainer {
  position: relative;
  width: 100%;
  padding-bottom: 50%; /* 2:1 aspect ratio */
}

.videocontainer-yt {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.videocontainer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.videocontainer-yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.splash {
	width: 100%;
	height: 100vh;
	position: relative;
    background-color: rgba(0, 0, 0, 0.35);
    color: white;
	text-align: center;
	display: table; 
	overflow: hidden;
opacity: 1;
transition: opacity 0.8s ease; /* smooth fade */	
}

.splash.fade-out {
  opacity: 0;
}

.splash.hidden {
  display: none !important;
}

.splash .headline {
	display: inline;
	font-size: 4em;	
	
	text-align: left;
	font-weight: 300;
	letter-spacing: 4px;
	margin-bottom: 1px;
	margin-top: 0px;	
	
}

.splash hr {
    height: 1px;
    color: white;
    background: white;
    font-size: 0;
    border: 0;
	margin-bottom: 10px;
	width: 350px;
}

/* VIEW TRANSITIONS */
::view-transition-new(root), 
::view-transition-old(root) {
  animation-duration: 0.5s;
}

::view-transition-old(video) {
  animation-duration: 0s;
}

::view-transition-new(video) {
  animation-delay: 0.3s;
  animation-duration: 0.2s;
}

::view-transition-image-pair(video-image) {
  perspective: 1000px;
}

::view-transition-old(video-image),
::view-transition-new(video-image) {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  mix-blend-mode: normal;
}

::view-transition-old(video-image) {
  animation: flip-old 0.4s both ease-in-out;
}

::view-transition-new(video-image) {
  animation: flip-new 0.4s both ease-in-out;
}

@media (prefers-reduced-motion) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: revert-layer !importnt;
    animation-name: revert !important;
  }
}

/* KEYFRAMES */
@keyframes flip-old {
  0% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(-90deg);
    opacity: 1;
  }
  50.1% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  100% {
    opacity: 0;
    transform: rotateX(0deg);
  }
}

@keyframes flip-new {
  0% {
    opacity: 0;
    transform: rotateX(0deg);
  }
  50% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  50.1% {
    opacity: 1;
    transform: rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

/* THUMBNAIL */
.thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}

.thumbnail__inner {
  contain: layout;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
}

.thumbnail__image {
  display: block;
  contain: layout;
  width: 100%;
  height: 100%;
}

.thumbnail__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* MODAL */
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000cc;
  display: grid;
  place-items: center;
  padding: 5vmin;
}

.modal__inner {
  max-width: 142.22vh;
  max-height: 80vh;
  width: 100%;
  aspect-ratio: 16/9;
}

.modal__iframe {
  margin: 0 auto;
  height: 100%;
  width: 100%;
  align-self: center;
  background: #000000;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4vmin;
}

@media screen and (min-width: 460px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2vmin;
  }
}

@media screen and (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2vmin;
  }
}

button {
  border: none;
  appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  display: block;
  background-color: transparent;
}

button.form-submit {
	padding: 10px;
	border-radius: 5px;
	color: white;
	background-color: #6aabec;
}

button.form-submit:hover {
	background-color: #348ce5;
}

form div {
	margin-bottom: 1em;
}

form label {
	display: block;
	margin-bottom: .5em;
}

form input {
	padding: 5px;
	font-family: Roboto;
}

form textarea {
	width: 95%;
	padding: 5px;
	resize: vertical;
	height: 6em;
	font-family: Roboto;
}

.hidden {
  display: none !important;
}

/* Hamburger button */
.hamburger {
  font-size: 1.8em;
  background: none;
  border: none;
  color: #dedede;
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 20px;
  display: none; /* Only show on mobile */
  z-index: 9999;
}

/* Default: hamburger hidden, menu visible */
.hamburger {
  display: none;
}

@media (max-width: 599px) {
  /* Show hamburger */
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #dedede;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  /* Hide desktop menu */
  .container > .menu {
    display: none;
  }

  /* Show mobile flyout menu */
  .menu.mobile-flyout {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 240px;
    height: 100%;
    background: rgba(0,0,0,0.9);
    padding: 20px;
    z-index: 1000;
    transition: right 0.3s ease;
    text-align: left;
    border-left: 1px solid #888;
	padding-top: 80px;
  }

  .menu.mobile-flyout.show {
    right: 0;
  }

  .container > .content {
    grid-area: content;
  }
}
}