.experience-image {
  display: block;
  aspect-ratio: 16 / 9;
}
.experience-image[data-open-gallery="auto"] {
  aspect-ratio: 1180 / 706;
}
.experience-image[data-open-gallery="marine"] {
  aspect-ratio: 1000 / 600;
}
.experience-image[data-open-gallery="auto"] > img,
.experience-image[data-open-gallery="marine"] > img {
  object-fit: contain;
  object-position: center;
}
.experience-image[data-open-gallery="space-lounge"],
.experience-image[data-open-gallery="form"] {
  aspect-ratio: 1920 / 868;
}
.experience-image[data-open-gallery="space-lounge"] > img,
.experience-image[data-open-gallery="form"] > img {
  object-fit: contain;
  object-position: center;
}
.experience-media {
  min-width: 0;
}
.experience:hover .experience-image > img {
  transform: none;
}
.experience-image:hover > img {
  opacity: 0.93;
}
.experience-action {
  text-decoration: none;
}
.experience-gallery-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.experience-gallery-link > span {
  font-size: 10px;
  color: var(--muted);
}
.experience-gallery-link a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 11px;
  text-decoration: none;
}
.experience-gallery-link a:hover {
  color: var(--blue);
}
.gallery-total {
  color: var(--blue);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.gallery-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 96dvh;
  border: 1px solid var(--line);
  padding: 0;
  color: #202428;
  background: #faf9f6;
}
.gallery-dialog::backdrop {
  background: rgb(17 21 24 / 84%);
}
.gallery-dialog[open] {
  animation: gallery-open 240ms ease both;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}
.gallery-header h2 {
  font:
    500 11px/1.5 Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery-header h2 span {
  color: var(--muted);
}
.gallery-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: #202428;
  font-size: 22px;
  cursor: pointer;
  flex: none;
}
.gallery-icon:hover {
  color: var(--blue);
  border-color: var(--blue);
}
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.gallery-viewport {
  position: relative;
}
.gallery-feedback {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
}
.gallery-feedback:has(.gallery-status:not([hidden])) {
  background: #faf9f6;
}
.gallery-stage {
  touch-action: pan-y pinch-zoom;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(96dvh - 290px);
  background: #111518;
}
.gallery-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-caption {
  display: flex;
  gap: 24px;
  padding: 18px 24px 12px;
}
.gallery-caption > p {
  color: var(--blue);
  font-size: 11px;
  flex: none;
  padding-top: 2px;
}
.gallery-caption h3 {
  font:
    500 14px/1.5 Inter,
    Arial,
    sans-serif;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  margin: 0 0 4px;
}
.gallery-caption div p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 24px 16px;
}
.gallery-thumbnails {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.gallery-thumbnails button {
  flex: 0 0 88px;
  padding: 3px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.gallery-thumbnails button[aria-pressed="true"] {
  border-color: var(--blue);
}
.gallery-thumbnails img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.gallery-bottom > span {
  color: var(--muted);
}
.gallery-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.gallery-bottom a span {
  color: var(--blue);
}
.gallery-status {
  padding: 12px 24px;
  font-size: 13px;
}
.gallery-retry {
  margin: 0 24px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: none;
  font: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
@keyframes gallery-open {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .experience-image {
    aspect-ratio: 16 / 9;
  }
  .gallery-caption {
    padding: 14px;
    gap: 12px;
  }
  .gallery-controls {
    padding: 8px 10px 16px;
    gap: 6px;
  }
  .gallery-thumbnails button {
    flex-basis: 68px;
  }
  .gallery-thumbnails {
    gap: 4px;
  }
  .gallery-bottom {
    padding: 10px 14px;
  }
  .gallery-bottom > span {
    display: none;
  }
  .gallery-bottom a {
    margin-left: auto;
  }
}
@media (max-height: 600px) {
  .gallery-stage {
    max-height: none;
    height: 65dvh;
    aspect-ratio: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-dialog[open] {
    animation: none;
  }
}
