#photoTools {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: flex;
  gap: 0;
  overflow: hidden;
  border: 1px solid #849b9d73;
  border-radius: 5px;
  background: #101a20e8;
  pointer-events: auto;
}
#photoTools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  font-size: 12px;
  color: #eef2e8;
}
#photoTools button+button { border-left: 1px solid #758a8c68; }
#photoTools button:hover, #photoTools button:focus-visible { background: #304249; }
#photoTools button:focus-visible { outline-offset: -2px; }
#photoTools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; }
#photoDialog {
  width: min(850px,calc(100vw - 28px));
  max-height: min(820px,calc(100dvh - 30px));
  margin: auto;
  padding: clamp(16px,3vw,27px);
  overflow: auto;
  border: 1px solid #869b9a80;
  border-radius: 7px;
  background: #101a20;
  color: #eff1e8;
  box-shadow: 0 16px 60px #04090dc9;
}
#photoDialog::backdrop { background: #041017a8; }
.photo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.photo-heading h2 { font: 560 clamp(26px,4vw,36px)/1.03 Geist,Arial,sans-serif; letter-spacing: -.05em; margin: 0; }
.photo-heading p { margin: 8px 0 0; color: #abbcbc; font: 12px var(--mono); }
#photoDialog .quiet { min-height: 34px; padding: 0 11px; font-size: 13px; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px 14px; }
.photo-card { color: inherit; background: none; border: 0; padding: 0; display: grid; align-content: start; text-align: left; }
.photo-card img, .photo-detail img { display: block; width: 100%; height: auto; object-fit: contain; background: #080f13; }
.photo-card img { aspect-ratio: 1.66; border: 1px solid #647a7b75; border-radius: 2px; }
.photo-card:hover img, .photo-card:focus-visible img { border-color: #a5d5cb; }
.photo-card strong { font-size: 15px; font-weight: 560; margin-top: 8px; }
.photo-caption { font: 11px/1.55 var(--mono); color: #b2c7c4; }
.photo-card .photo-caption { margin-top: 3px; }
.photo-detail img { max-height: min(59dvh,560px); border: 1px solid #536866; }
.photo-detail h3 { font-size: 21px; font-weight: 560; letter-spacing: -.025em; margin: 12px 0 0; }
.photo-detail .photo-caption { margin: 4px 0 0; }
.photo-actions { display: flex; justify-content: space-between; margin-top: 16px; gap: 12px; }
.photo-empty { grid-column: 1/-1; margin: 14px 0 10px; color: #c1ceca; line-height: 1.5; }
@media(max-width:700px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.photo-grid{grid-template-columns:minmax(0,1fr)}.photo-card img{max-height:200px}}
@media(pointer:coarse){#photoTools button,#photoDialog .quiet{min-height:42px}}
