.gallery-main {
  padding-top: 72px;
  padding-bottom: 80px;
  min-height: calc(100vh - 202px);
}
.gallery-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 55px;
}
.gallery-intro h1 {
  margin: 0;
  font-size: clamp(45px, 5.4vw, 73px);
}
.gallery-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  max-width: 400px;
  margin-bottom: 5px;
}
.gallery-divider {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 30px;
}
.photo-state {
  padding: 50px 0 30px;
  max-width: 550px;
}
.photo-state-number {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 20px;
}
.photo-state h2 {
  font-size: 32px;
}
.photo-state p {
  color: var(--muted);
  font-size: 16px;
}
.photo-grid {
  columns: 3;
  column-gap: 25px;
}
.photo-card {
  break-inside: avoid;
  margin: 0 0 30px;
}
.photo-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  overflow: hidden;
  border-radius: 5px;
  cursor: zoom-in;
}
.photo-image-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}
.photo-image-button:hover img {
  transform: scale(1.025);
}
.photo-card figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.photo-card strong {
  color: var(--text);
  font-weight: 500;
}
.photo-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 50px 35px 25px;
  border: 0;
  border-radius: 0;
  background: #0d1110;
  color: #f2f4f1;
}
.photo-viewer figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 55px);
  gap: 15px;
}
.photo-viewer img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100% - 60px);
  object-fit: contain;
}
.photo-viewer figcaption {
  font-size: 14px;
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  color: #b9c7bf;
}
.photo-close {
  position: absolute;
  right: 17px;
  top: 10px;
  background: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 10px;
}
.photo-controls button {
  min-height: 44px;
  padding: 5px 12px;
  background: none;
  font-size: 14px;
  color: #f2f4f1;
}
.photo-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.photo-controls span {
  font-size: 13px;
  color: #b9c7bf;
}
.photo-preview {
  columns: 3;
  column-gap: 24px;
  margin-top: 35px;
}
.photo-preview .photo-image-button {
  cursor: pointer;
}
.photo-preview .photo-image-button img {
  height: 240px;
  object-fit: cover;
}
.photography-preview {
  border-top: 1px solid var(--line);
  padding-top: 50px;
  padding-bottom: 60px;
}
.photography-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.photography-preview h2 {
  font-size: 38px;
}
.photography-preview p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 0;
}
.photography-preview .button {
  border: 1px solid var(--line);
  white-space: nowrap;
}
.photography-preview .button:hover {
  border-color: var(--accent);
}
.gallery-note {
  font-size: 14px !important;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 15px;
  margin-top: 25px !important;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .gallery-intro {
    gap: 35px;
  }
  .gallery-intro h1 {
    font-size: 46px;
  }
  .gallery-lead {
    font-size: 16px;
  }
  .photo-grid {
    columns: 2;
  }
  .photo-preview {
    columns: 2;
  }
  .photo-preview .photo-card:last-child {
    display: none;
  }
  .gallery-main {
    padding-top: 50px;
  }
  .photography-preview-head {
    align-items: flex-start;
  }
}
@media (max-width: 550px) {
  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
  }
  .gallery-intro h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .gallery-lead {
    max-width: 100%;
    margin-top: 0;
  }
  .gallery-divider {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .gallery-main {
    padding-block: 40px 60px;
  }
  .photo-grid {
    columns: 1;
  }
  .photo-state {
    padding-top: 30px;
  }
  .photo-state h2 {
    font-size: 28px;
  }
  .photo-viewer {
    padding: 65px 15px 20px;
  }
  .photo-viewer figure {
    justify-content: center;
  }
  .photo-controls {
    gap: 10px;
  }
  .photography-preview-head {
    display: block;
  }
  .photography-preview .button {
    margin-top: 25px;
  }
  .photography-preview h2 {
    font-size: 32px;
  }
  .photo-preview {
    columns: 1;
  }
  .photo-preview .photo-card:last-child {
    display: block;
  }
  .photo-preview .photo-image-button img {
    height: auto;
  }
}


.photo-card figcaption {
  flex-wrap: wrap;
}
.photo-credit {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.photo-credit:hover {
  text-decoration: underline;
}
.photo-viewer .photo-credit {
  color: #b9c7bf;
}
.gallery-main > .gallery-note {
  max-width: 750px;
  margin-bottom: 32px !important;
}
