/* Keep the approved 78% / 88% image width and 520px / 330px contain canvas. */
.block-carousel:not(.block).project-carousel {
  display:block; overflow:hidden; padding:0; scroll-snap-type:none;
  touch-action:pan-y pinch-zoom; isolation:isolate;
}
.project-carousel > .swiper-wrapper {
  gap:0; align-items:stretch;
  transition-timing-function:cubic-bezier(.22,.61,.36,1);
}
.project-carousel > .swiper-wrapper > .swiper-slide {
  width:78%; height:auto; flex-shrink:0;
}
.block-carousel:not(.block).project-carousel .media-open {
  width:100%; height:520px; flex:none; scroll-snap-align:none;
  cursor:inherit; border-radius:4px; overflow:hidden;
}
.block-carousel:not(.block).project-carousel img {
  width:100%; height:520px; object-fit:contain; user-select:none;
  -webkit-user-drag:none;
}
.project-carousel:focus-visible { outline:2px solid var(--gold); outline-offset:6px; }
.project-carousel .media-open:focus-visible { outline-offset:-3px; }
.carousel-controls.carousel-controls-enhanced {
  display:grid; grid-template-columns:auto minmax(24px,1fr) auto 48px 48px;
  align-items:center; column-gap:16px; margin-top:22px;
}
.carousel-gesture { font-size:10px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); }
.carousel-touch-hint { display:none; }
.carousel-progress { height:2px; display:block; background:var(--line); overflow:hidden; }
.carousel-progress > span {
  display:block; width:100%; height:100%; background:var(--gold);
  transform:scaleX(0); transform-origin:left center;
}
.carousel-count { font-size:12px; line-height:1; font-variant-numeric:tabular-nums; white-space:nowrap; }
.carousel-count-separator { color:var(--muted); margin-left:5px; }
.carousel-controls-enhanced .pill {
  width:48px; height:48px; min-height:48px; padding:0; border-radius:50%;
  gap:0; transition:background .25s,color .25s,border-color .25s,opacity .25s;
}
.carousel-controls-enhanced .pill svg { width:21px; height:21px; }
.carousel-controls-enhanced .pill:not(:disabled):hover {
  transform:none; background:var(--teal); border-color:var(--teal); color:var(--paper);
}
.carousel-controls-enhanced .pill:disabled { opacity:.3; cursor:default; transform:none; }
.carousel-sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
@media (pointer:coarse), (max-width:680px) {
  .carousel-touch-hint { display:inline; }
  .carousel-mouse-hint { display:none; }
}
@media (max-width:680px) {
  .project-carousel > .swiper-wrapper > .swiper-slide { width:88%; }
  .block-carousel:not(.block).project-carousel .media-open,
  .block-carousel:not(.block).project-carousel img { height:330px; }
  .carousel-controls.carousel-controls-enhanced {
    grid-template-columns:auto minmax(10px,1fr) auto 44px 44px;
    column-gap:10px; margin-top:18px;
  }
  .carousel-gesture { font-size:9px; letter-spacing:.06em; }
  .carousel-count { font-size:11px; }
  .carousel-count-separator { margin-left:2px; }
  .carousel-controls-enhanced .pill { width:44px; height:44px; min-height:44px; }
}
@media (max-width:360px) {
  .carousel-gesture { display:none; }
  .carousel-controls.carousel-controls-enhanced { grid-template-columns:minmax(24px,1fr) auto 44px 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .project-carousel *, .carousel-controls-enhanced * { transition-duration:0s!important; }
}
