.gallery-page {
  width: min(89%, 1280px);
  margin-inline: auto;
  padding-block: clamp(30px, 4vw, 58px) clamp(36px, 5vw, 70px);
}
.gallery-heading {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.gallery-heading h1 {
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.06;
  overflow-wrap: normal;
  word-break: normal;
}
.gallery-heading .divider {
  margin: 16px auto;
  max-width: 250px;
}
.gallery-intro {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.5;
}
.gallery-page .gallery-status {
  text-align: center;
}
.gallery-page .album-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin-top: clamp(28px, 4vw, 46px);
}
.gallery-page .album-card {
  width: 100%;
  max-width: none;
  border: 1px solid #b38b47;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.gallery-page .album-card > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.gallery-page .album-card-info {
  padding: 11px 12px;
  gap: 5px 12px;
  border-top: 1px solid #b38b47;
}
.gallery-page .album-card strong {
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 400;
  line-height: 1.2;
}
.gallery-page .album-card-info > span {
  font-size: 15px;
}
.gallery-page .album-card:hover {
  border-color: var(--site-ink);
  box-shadow: 0 4px 17px #12251023;
}
.gallery-page .album-card:focus-visible {
  outline: 3px solid var(--site-line);
  outline-offset: 5px;
}
.public-viewer .viewer-header h2 {
  font-style: normal;
  font-weight: 400;
}
.public-viewer figcaption {
  font-size: 15px;
  line-height: 1.45;
  color: #e7ddcb;
}
.public-viewer .photo-count {
  font: 14px/1.3 system-ui, sans-serif;
}
.viewer-thumbnails {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  gap: 8px;
  max-width: 100%;
  width: max-content;
  overflow-x: auto;
  margin-inline: auto;
  padding: 5px 3px;
}
.viewer-thumbnails[hidden] { display: none; }
.public-viewer .viewer-thumbnails .viewer-thumbnail {
  display: block;
  min-width: 78px;
  min-height: 0;
  width: 78px;
  height: 58px;
  padding: 3px;
  border: 1px solid #877455;
  border-radius: 4px;
  background: #252321;
  opacity: .72;
}
.public-viewer .viewer-thumbnails .viewer-thumbnail[aria-pressed="true"] {
  border-color: #e6bf76;
  box-shadow: 0 0 0 1px #e6bf76;
  opacity: 1;
}
.public-viewer .viewer-thumbnails .viewer-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}
.public-viewer .viewer-thumbnails .viewer-thumbnail:hover,
.public-viewer .viewer-thumbnails .viewer-thumbnail:focus-visible {
  opacity: 1;
}
html[data-theme] .admin-shell .admin-page .public-viewer button {
  background: #252321;
  color: #fff4df;
  border-color: #877455;
}
@media (max-width: 1199px) {
  .gallery-page .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .gallery-page .album-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-heading .divider { max-width: 220px; }
  .gallery-intro { max-width: 32ch; margin-inline: auto; }
  .viewer-thumbnails { display: none; }
}

