.album-heading {
  max-width: 1280px;
}
.album-heading h1 {
  max-width: 1050px;
}
.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.album-content {
  padding-bottom: 96px;
}
.album-description {
  max-width: 744px;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.album-description p {
  margin-bottom: 20px;
}
.album-description a {
  color: var(--teal);
  text-decoration: underline;
}
.photo-grid {
  columns: 3;
  column-gap: 24px;
}
.photo-grid figure {
  break-inside: avoid;
  margin: 0 0 24px;
}
.photo-grid a {
  display: block;
  cursor: zoom-in;
}
.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--soft);
}
.photo-grid figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}
.photo-permission {
  font-size: 12px;
  color: var(--muted);
  margin: 40px 0 16px !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: #211a12;
  border: 1px solid #6a4d2f;
  border-radius: 10px;
  color: #fafafa;
  width: 96vw;
  height: 94dvh;
  max-width: 1600px;
  max-height: 94dvh;
  margin: auto;
  padding: 56px 72px 32px;
}
.lightbox::backdrop {
  background: #211a12ed;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  gap: 16px;
}
.lightbox figure img {
  height: auto;
  max-height: calc(94dvh - 170px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  min-height: 0;
}
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
  font-size: 12px;
  color: #efe6dc;
  width: 100%;
  max-width: 900px;
  line-height: 1.6;
}
.lightbox-count {
  white-space: nowrap;
}
.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid #8e673e;
  background: #47341f;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.lightbox button:hover {
  background: #6a4d2f;
}
.lightbox-close {
  right: 16px;
  top: 16px;
}
.lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 1000px) {
  .photo-grid {
    columns: 2;
    column-gap: 20px;
  }
  .photo-grid figure {
    margin-bottom: 20px;
  }
}
@media (max-width: 700px) {
  .album-meta {
    gap: 12px 24px;
    font-size: 11px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .album-content {
    padding-bottom: 64px;
  }
  .photo-grid {
    columns: 1;
    column-gap: 0;
  }
  .photo-grid figure {
    margin-bottom: 24px;
  }
  .photo-grid img {
    border-radius: 6px;
  }
  .photo-grid figcaption {
    font-size: 12px;
  }
  .photo-permission {
    font-size: 11px;
    margin-top: 32px !important;
  }
  .album-description {
    font-size: 16px;
  }
  .lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    padding: 72px 48px 32px;
  }
  .lightbox figure img {
    max-height: calc(100dvh - 180px);
  }
  .lightbox figcaption {
    font-size: 11px;
    gap: 16px;
  }
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }
  .lightbox-close {
    right: 12px;
    top: 12px;
  }
}

.lightbox button[hidden] {
  display: none;
}
