:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202020;
  background: #fff;
  font-synthesis: none
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: auto
}

body {
  margin: 0
}

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

button {
  font: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #333;
  outline-offset: 5px
}

.shell {
  width: min(1400px, calc(100% - 104px));
  margin: 0 auto
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 42px;
  padding-bottom: 110px
}

.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.04em
}

.wordmark-sub {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: normal;
  letter-spacing: .2em;
  color: #777;
  margin-top: 10px
}

.site-header nav {
  display: flex;
  gap: 35px;
  padding-top: 6px
}

.site-header nav a {
  font-size: 12px;
  color: #777
}

.site-header nav a[aria-current] {
  color: #111
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px
}

.eyebrow,
.page-side {
  font-size: 10px;
  letter-spacing: .15em;
  color: #777
}

.eyebrow {
  margin: 0 0 20px
}

.page-side {
  padding-bottom: 7px
}

h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  letter-spacing: -.05em
}

h1 {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.05;
  margin: 0
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 73px
}

.gallery-item {
  min-width: 0
}

.image-link {
  display: block;
  background: #f4f3f1;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left
}

.gallery.grid .image-link {
  aspect-ratio: 4/3
}

.gallery.grid .image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.gallery.masonry {
  display: block;
  columns: 2;
  column-gap: 28px
}

.gallery.masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 65px
}

.gallery.masonry .image-link img {
  width: 100%;
  height: auto;
  display: block
}

.gallery:not(.masonry) .image-link img {
  display: block
}

.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-top: 15px
}

.item-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  letter-spacing: -.02em
}

.item-caption {
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.4
}

.album-label {
  font-size: 10px;
  letter-spacing: .12em;
  color: #777;
  text-transform: uppercase;
  white-space: nowrap
}

.site-footer {
  margin-top: 135px;
  border-top: 1px solid #e9e9e9;
  padding: 27px 0 45px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #888;
  font-size: 11px
}

.loading,
.empty {
  color: #777;
  font-size: 14px;
  padding: 35px 0
}

.text-page {
  max-width: 640px;
  padding: 0 0 100px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.65;
  color: #353535
}

.text-page p {
  margin: 0 0 1.4em
}

.text-page a {
  text-decoration: underline;
  text-underline-offset: 5px
}

dialog {
  border: none;
  background: #fff;
  padding: 25px;
  width: max-content;
  max-width: min(1100px, 96vw);
  max-height: 96dvh;
  overflow: hidden;
  box-shadow: 0 10px 70px #0002;
}

dialog::backdrop {
  background: rgba(14, 14, 14, .88)
}

.close-lightbox {
  display: block;
  margin-left: auto;
  border: 0;
  background: none;
  cursor: pointer;
  color: #333;
  font-size: 12px;
  padding: 4px 0 16px
}

#lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(96dvh - 135px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
}

#lightbox-content p {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin: 15px 0 4px
}

@media(max-width:760px) {
  .shell {
    width: calc(100% - 40px)
  }

  .site-header {
    padding-top: 24px;
    padding-bottom: 72px;
    display: block
  }

  .site-header nav {
    gap: 26px;
    margin-top: 34px
  }

  .page-heading {
    margin-bottom: 34px
  }

  .page-side {
    display: none
  }

  .gallery {
    grid-template-columns: 1fr;
    row-gap: 40px
  }

  .gallery.masonry {
    columns: 1
  }

  .gallery.masonry .gallery-item {
    margin-bottom: 40px
  }

  .site-footer {
    margin-top: 80px;
    flex-direction: column;
    padding-bottom: 28px
  }

  .item-meta {
    margin-top: 12px
  }

  .wordmark {
    font-size: 22px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }
}

.album-description {
  margin-top: 7px
}
