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

:root {
  --background-color: #000;
  --text-color: #edb046;
  --grid-line: #ffffff0f; }

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.05;
  color: var(--text-color);
  transition: color 1s; }

main {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-size: 32px 32px;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-position: center center; }
  main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    transition: backround-color 1s;
    z-index: -5; }

section {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw * 2);
  display: grid;
  padding: 20vh;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 30vh;
  touch-action: none; }
  @media only screen and (max-width: 1024px) {
    section {
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(4, 1fr);
      gap: 30vw;
      width: calc(100vw * 3); } }
  @media only screen and (max-width: 767px) {
    section {
      gap: 18vw;
      grid-template-columns: repeat(3, 1fr);
      padding: 18vw; } }
  section a {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color); }
  section img {
    transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 16px #00000000;
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
    height: 100%; }

h1 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  font-size: 10vw;
  white-space: nowrap; }
  @media only screen and (max-width: 980px) {
    h1 {
      font-size: 12vw; } }
  @media only screen and (max-width: 767px) {
    h1 {
      font-size: 15vw; } }

body.hovered main::before {
  opacity: 0.95; }
body.hovered img {
  opacity: 0.1; }

body.hovered a.hovered img {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 16px #00000033; }
  @media only screen and (max-width: 767px) {
    body.hovered a.hovered img {
      transform: scale(1.05); } }

.credit {
  position: fixed;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 15;
  color: #7f7f7f; }
  .credit a {
    text-decoration: none;
    color: var(--text-color); }

/*# sourceMappingURL=main.css.map */
