@font-face {
  font-family: "New Rail Alphabet";
  src: url("../fonts/subset-NewRailAlphabet-Medium.woff2") format("woff2"),
    url("../fonts/subset-NewRailAlphabet-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "New Rail Alphabet", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 120%;
  color: white;
  background-color: black;
}

a,
b,
p,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
span,
strong,
blockquote {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  font-weight: inherit;
  text-decoration: none;
}

h1 {
  display: inline-block;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100svh;
  padding: 1rem;
  gap: 4rem;
}

a {
  position: relative;
  color: #7FFFD4;
}

a::after {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
}

body > *:not(header, main, footer) {
  display: none;
}

.grid {
  display: grid;
  gap: 1rem;
}

header {
  grid-template-columns: 1fr 1fr;
}

main {
  min-height: 0; /* Important: allows grid item to shrink below content size */
  overflow: hidden; /* Prevents content from breaking out */
}

media-slideshow {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}

media-slideshow > * {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: contain;
  /* pointer-events: none; */
  object-position: center;
}

media-slideshow > video {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

media-slideshow picture {
  display: block;
  width: 100%;
  height: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

footer {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

footer p:not(:last-child) {
  margin-bottom: 1.05rem;
}

@media (max-width: 1000px) {
  footer {
    position: relative;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 601px) {
  .mobile-only {
    display: none;
  }
}

@media (max-height: 600px) {
  body {
    gap: 0.5rem;
  }

  media-slideshow,
  #index-display {
    visibility: hidden;
  }
}

@media (max-width: 600px) {
  body {
    gap: 1rem;
  }

  .mobile-hidden {
    display: none;
  }

  header {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > *:not(:first-child) {
    position: absolute;
    bottom: 0;
    transform: translateY(calc(100%));
    padding-bottom: 1rem;
  }

  footer > *:not(:first-child) div {
    margin-top: 1.05rem;
  }
}
