@font-face {
  font-family: "bebasneue";
  src:
    url("../fonts/bebasneue-regular-webfont.woff2") format("woff2");
}

@font-face {
  font-family: "libreBaskerville";
  src:
    url("../fonts/LibreBaskerville-VariableFont_wght.woff2") format("woff2");
}

/* Header */
header {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

  /* Navigation bar */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    background-color: #ffffff;
  }

  nav a {
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 0.95em;
  }

  nav a:hover {
      color: #000000;
      text-shadow: 0.03em 0.01em #000000;
      }

  nav a.active {
      background-color: #000000;
      color: white;
      border-radius: 0.3em;
  }


/* Body */
  body {
    background-color: #ffffff;
    margin-left: 4em;
    margin-right: 4em;
  }

  main {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  main.loaded {
    opacity: 1;
  }

  .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  h1 {
      color: #000000;
      font-family: bebasneue;
      font-size:2.4em;
      font-kerning: auto;
      text-align: center;
      margin-right: 2em;
  }

  h2 {
      color: #000000;
      font-family: libreBaskerville;
      font-size: 2.2em;
      margin-top: 0;
      margin-left: 0.7rem;
  }

  p {
      color: #000000;
      font-family:Georgia, 'Times New Roman', Times, serif;
      font-size:1.1em;
      font-kerning: auto;
      line-height: 1.7em;
      margin-top: 0.7em;
      margin-left: 0.7rem;
      max-width: 60em
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  a:hover {
      color: #000000;
      text-shadow: 0.03em 0.01em #000000;
  }

/* Home */
  .bio-section {
    display: flex;
    align-items: stretch;
    gap: 40px;
  }

  .bio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .links {
    display: flex;
    gap: 8px;
    margin-top: 24px;
  }

  .links img {
    width: 50px;
    height: 50px;
    display: block;
  }

  .bio-text .links {
    margin-top: auto;
    padding-top: 16px;
    align-self: flex-end;
  }

  .profile-photo {
    width: 400px;
    max-width: 40vw;
    height: auto;
    border-radius: 0.5em;
    flex-shrink: 0;
    object-fit: cover;
  }

  @media (max-width: 700px) {
    .bio-section {
      flex-direction: column;
    }

    .profile-photo {
      width: 100%;
      max-width: 100%;
    }

    .links {
      align-self: flex-start;
    }
  }

/* Photography */
  #gallery {
    columns: 4 280px;
    column-gap: 16px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #gallery.loaded {
    opacity: 1;
  }

  #gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
    break-inside: avoid;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #gallery img.loaded {
    opacity: 1;
  }

  #lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }

  #lightbox.active {
    display: flex;
  }

  #lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
  }

/* Contact */
  .contact-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1em;
  }

  .contact-list .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
