/* A small photographic field album, with the original frame a tap away. */
.detail-photo.photo-album {
  height: auto;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  min-width: 0;
}
.photo-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ded9cc;
  cursor: zoom-in;
}
.photo-main img,
.photo-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.photo-main:hover img {
  transform: scale(1.025);
}
.photo-corner {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  background: #fcf9f0ed;
  padding: 8px 10px;
  font: 500 11px/1.2 var(--body);
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.photo-strip button {
  position: relative;
  padding: 0;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ded9cc;
  cursor: zoom-in;
}
.photo-strip button:hover img {
  transform: scale(1.06);
}
.photo-strip button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #31281e70;
  color: white;
  font-size: 20px;
}
.photo-album > figcaption {
  position: static;
  display: grid;
  gap: 4px;
  padding: 11px 0 0;
  color: var(--ink);
  background: none;
  font: 400 12px/1.4 var(--body);
}
.photo-scope {
  color: var(--accent);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.photo-byline {
  color: var(--muted);
  font-size: 10px;
}
.photo-byline .source-link {
  font-size: inherit;
}
.detail-head .photo-inspiration {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.photo-inspiration .source-link {
  font-size: 11px;
}
#modal:has(.photo-viewer) {
  width: min(1020px, calc(100% - 28px));
  padding: 20px;
}
#modal:has(.photo-viewer) .modal-head h2 {
  font-size: clamp(23px, 3vw, 32px);
}
#modal:has(.photo-viewer) .modal-head {
  position: sticky;
  top: -20px;
  padding: 6px 0 10px;
  background: var(--white);
  z-index: 2;
}
.photo-viewer figure {
  margin: 0;
}
.photo-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e9e3d6;
  width: 100%;
  height: min(46vh, 500px);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.photo-stage img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}
.photo-viewer figcaption {
  margin-top: 15px;
}
.photo-viewer h3 {
  margin: 5px 0 10px;
  font: 500 clamp(22px, 3vw, 30px)/1.1 var(--display);
}
.photo-viewer figcaption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.photo-controls:has(button[hidden]) {
  justify-content: center;
}
#album-position {
  color: var(--muted);
  font: 400 11px/1.4 var(--mono);
}
.photo-attribution {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.photo-attribution > span:nth-child(2) {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.photo-attribution small {
  font-size: 10px;
  line-height: 1.45;
}
@media (max-width: 690px) {
  .detail-photo.photo-album { margin-top: 22px; }
}
@media (max-width: 600px) {
  .photo-main { aspect-ratio: 16 / 10; }
  .photo-strip button { height: 62px; }
  #modal:has(.photo-viewer) { padding: 14px; }
  #modal:has(.photo-viewer) .modal-head { top: -14px; }
  .photo-stage { height: 40vh; }
  .photo-controls .btn { padding: 10px; }
  .photo-controls .btn span { display: none; }
  #album-position { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-main img, .photo-strip img { transition: none; }
}
