body {
        margin: 0;
        background: black;
        color: white;
  font-family: "Faustina", serif;
        font-weight: 200;
      }

      .highlight {
        font-style: italic;
      }

      img {
        display: block;
      }

      header {
        font-size: 1.7rem;
        padding: 5vw 8vw;
        box-sizing: border-box;
      }

      footer {
        font-size: 1rem;
        padding: 0vw 8vw 3vw 8vw;
        box-sizing: border-box;
      }

      nav {
padding: 3vw 8vw 1.5vw 8vw;
        box-sizing: border-box;
      }


      h1 {
        margin: 0;
        font-size: inherit;
        font-weight: 400;
        line-height: 1;
        max-width: 65%;
      }

      .portfolio {
        padding: 3vw 8vw;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.6vw;
      }

      .portfolio img {
        display: block;
        width: 100%;
        height: auto;
      }

      .lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}

body:has(img:target) .lightbox-backdrop {
  display: block;
}

img:target {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1000;
  cursor: zoom-out;
}

.thumb-link {
  display: block;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1; /* keeps the cell's shape even with nothing inside */
}

      