/* The controls stay outside the image's loading and animation layers. */
#explore { padding-block: clamp(30px, 4vh, 56px) 50px; overflow-anchor: none; }
#explore .section-heading { margin-bottom: 16px; }
.explore-layout { display: block; }
.explore-layout .space-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border: 0;
  margin-bottom: 10px;
}
.explore-layout .space-tabs button {
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: center;
}
.explore-layout .space-tabs [aria-selected=true]::after { content: none; }
.explore-stage { position: relative; }
.explore-layout .explore-photo {
  height: clamp(330px, 55svh, 640px);
  background: #20231d;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}
.explore-layout .explore-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
}
.explore-layout .explore-photo > img.explore-portrait { object-fit: contain; }
.explore-layout .explore-photo > img.explore-outgoing { z-index: -1; pointer-events: none; }
.explore-stage .angle-control {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  width: auto;
  gap: 7px;
  padding: 3px;
  color: #fff9ed;
  background: #1e211bea;
}
.explore-stage .angle-control button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: #eeebde50;
  color: inherit;
}
.explore-stage .angle-control button:hover:not(:disabled) { background: #4d5045; }
.explore-stage .angle-label { padding-inline: 6px; }
.explore-stage .zoom-label { z-index: 1; }
.explore-layout .explore-meta { margin-top: 12px; }
.explore-layout #angle-caption { margin-top: 4px; }
#image-status:not(:empty) { min-height: 0; margin-top: 5px; }

@media (max-width: 700px) {
  #explore { padding-top: 26px; }
  .explore-layout .space-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .explore-layout .space-tabs button { min-height: 44px; }
  .explore-layout .explore-photo { height: clamp(228px, 66vw, 340px); }
  .explore-layout .explore-photo > img { object-fit: contain; }
  .explore-stage .angle-control { left: 0; bottom: 0; }
  .explore-stage .angle-label { display: none; }
  .explore-stage .zoom-label { right: 0; bottom: 0; }
}

