.single .main .project-app-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 0.35em 0 0;
  vertical-align: middle;
  border-radius: 9px;
}
.project-screenshots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  margin: 1rem 0 2rem;
}
.project-screenshots figure {
  flex: 0 0 min(240px, 78vw);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.project-screenshots a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.single .main .project-screenshots img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 427px;
}
.project-screenshots figcaption {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.85em;
  line-height: 1.5;
  text-align: center;
}
.project-device-capture {
  display: block;
  position: relative;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 576 / 1024;
  overflow: hidden;
}
/* Clip only the Mirroring window chrome; the original screenshots stay intact. */
.single .main .project-device-capture img {
  position: absolute;
  width: 105.555556%;
  max-width: none;
  max-height: none;
  left: -2.777778%;
  top: -7.519531%;
}
.project-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.85em;
}
.project-gallery-controls button {
  padding: 0.35rem 0.75rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.project-gallery-controls button:focus-visible,
.project-screenshots:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .project-screenshots { scroll-behavior: auto; }
}
