/* Homepage galleries: enlargeable photos and the viewer dialog, in the original charcoal and gold. */
.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.gallery-photo:focus-visible {
  outline: 3px solid #c4a882;
  outline-offset: -3px;
}
.fcm-enlarge-note {
  margin: -1.6rem 0 .8rem;
  color: #6b6b6b;
  font-size: .9rem;
  font-style: italic;
}
#fcm-features .fcm-enlarge-note { margin-top: -1.4rem; }

.photo-viewer {
  width: min(1100px, 96vw);
  max-height: 94svh;
  border: 1px solid rgba(196,168,130,.45);
  background: #1c1c1c;
  color: #fff;
  padding: 1rem 1.3rem;
}
.photo-viewer::backdrop { background: rgba(10,10,10,.88); }
.photo-viewer-toolbar,
.photo-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.photo-viewer h2 {
  margin: 0;
  color: #fff;
  font: 400 1.4rem/1.2 'Playfair Display', Georgia, serif;
}
.photo-viewer button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(196,168,130,.6);
  padding: .65rem 1rem;
  font: 600 .72rem/1 'Raleway', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo-viewer button:hover { background: rgba(196,168,130,.15); }
.photo-viewer :focus-visible { outline: 2px solid #c4a882; outline-offset: 3px; }
.photo-viewer figure { margin: 1rem 0; }
.photo-viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65svh;
  object-fit: contain;
}
.photo-viewer figcaption {
  margin-top: .7rem;
  color: #ddd;
  font: .9rem/1.5 'Raleway', Arial, sans-serif;
}
.photo-count {
  color: #c4a882;
  font: 600 .8rem/1 'Raleway', Arial, sans-serif;
  letter-spacing: .1em;
}
@media (max-width: 600px) {
  .photo-viewer { padding: .8rem; }
  .photo-viewer img { max-height: 58svh; }
  .photo-viewer button { padding: .6rem .7rem; }
}
