/* Ver.0.8: photographic instrument index; scoped to the home-page list. */
.photo-device-index { margin-top:0; }
.photo-device-index .device-item {
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) minmax(260px,36%);
  gap:1.5rem;
  align-items:center;
  min-height:154px;
  padding:.55rem 0;
}
.photo-device-index .device-copy {
  display:grid;
  grid-template-columns:4rem minmax(0,1fr);
  gap:1rem;
  align-items:baseline;
  min-width:0;
}
.photo-device-index .device-copy strong { display:inline-block; margin-left:0; }
.photo-device-index .device-copy small { display:block; margin:.25rem 0 0; }
.photo-device-index .device-photo {
  justify-self:end;
  width:min(100%,440px);
  min-width:0;
  margin:0;
  text-align:center;
}
.photo-device-index .photo-zoom {
  display:grid;
  place-items:center;
  width:100%;
  min-width:0;
  height:136px;
  padding:0;
  overflow:hidden;
  border:0;
  background:transparent;
  cursor:zoom-in;
}
.photo-device-index .photo-zoom:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.photo-device-index .photo-zoom img {
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:132px;
  object-fit:contain;
}
.photo-device-index .device-no-photo { grid-template-columns:minmax(0,1fr) minmax(260px,36%); }
.photo-device-index .device-no-photo .device-copy { grid-column:1; }
.instrument-link { color:inherit; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.2em; }
.photo-dialog {
  width:fit-content;
  max-width:96vw;
  max-height:96vh;
  padding:.8rem;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
}
.photo-dialog::backdrop { background:rgb(15 30 42 / .82); }
.photo-dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.5rem;
  font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic",sans-serif;
}
.photo-dialog-head p { margin:0; color:var(--navy); font-size:.92rem; font-weight:650; }
.photo-dialog-head button { padding:.45rem .8rem; border:1px solid var(--line); color:var(--ink); background:white; font:inherit; cursor:pointer; }
.photo-dialog figure { margin:0; text-align:center; }
.photo-dialog figure img { display:block; width:auto; max-width:92vw; max-height:80vh; margin:auto; object-fit:contain; }
.photo-dialog figcaption { margin-top:.4rem; color:var(--muted); font-size:.85rem; }
@media (max-width:820px) {
  .photo-device-index { margin-inline:20px; }
  .photo-device-index .device-item,
  .photo-device-index .device-no-photo {
    grid-template-columns:minmax(0,1fr);
    gap:.55rem;
    min-height:0;
    align-items:start;
    padding:.8rem 0;
  }
  .photo-device-index .device-copy { grid-template-columns:2.7rem minmax(0,1fr); gap:.65rem; }
  .photo-device-index .device-copy small { display:block; margin:.2rem 0 0; }
  .photo-device-index .device-photo { justify-self:stretch; width:calc(100% - 3.35rem); max-width:none; margin-left:3.35rem; text-align:left; }
  .photo-device-index .photo-zoom { height:auto; max-height:260px; }
  .photo-device-index .photo-zoom img { max-width:100%; max-height:240px; }
  .photo-device-index .device-no-photo { gap:0; }
  .photo-dialog { width:96vw; padding:.55rem; }
  .photo-dialog figure img { max-width:92vw; max-height:76vh; }
}
