.space-photos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: clamp(18px, 2.2vw, 30px);
}

.space-photos-bar h2 {
  margin: 0;
  color: var(--reference-charcoal);
  font-size: clamp(25px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.55;
}

.space-photos-actions {
  display: flex;
  flex: none;
  gap: 6px;
}

.space-photos-actions[hidden] {
  display: none;
}

.space-photos-actions button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid var(--flow-petrol);
  border-radius: 50%;
  color: var(--flow-petrol);
  background: transparent;
  font: 20px/1 system-ui, sans-serif;
  cursor: pointer;
}

.space-photos-actions button[aria-disabled="true"] {
  color: var(--reference-olive);
  border-color: var(--flow-line);
  opacity: .62;
  cursor: default;
}

@media (hover: hover) {
  .space-photos-actions button[aria-disabled="false"]:hover {
    color: var(--reference-paper);
    background: var(--flow-petrol);
  }
}

.space-photos-list {
  --frame-height: clamp(220px, 31vw, 380px);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.7vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #959b8e transparent;
  scrollbar-width: thin;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

.space-photos-list > li {
  flex: none;
  inline-size: min(91%, calc(var(--frame-height) * var(--photo-ratio)));
  min-inline-size: 0;
  scroll-snap-align: start;
}

.space-photos-list figure {
  margin: 0;
}

.space-photos-list img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: clamp(14px, 1.5vw, 20px);
}

.space-photos-list figcaption {
  margin-block-start: 9px;
  color: var(--reference-olive);
  font-size: 14px;
  line-height: 1.7;
}

.space-photos-list:focus-visible,
.space-photos-actions button:focus-visible {
  outline: 2px solid var(--flow-petrol);
  outline-offset: 3px;
}

.photo-story-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--flow-petrol);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #294c4959;
}

.photo-story-jump:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 660px) {
  .space-photos-list {
    --frame-height: clamp(195px, 60vw, 310px);
  }

  .space-photos-list figcaption {
    font-size: 13px;
  }

  .photo-story-jump {
    margin-top: 5px;
  }
}
