.home-carousel { min-width:0; max-width:min(100%,var(--gallery-width,100%)); margin-inline:auto; }
.carousel-track { display:flex; align-items:flex-start; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-color:#858585 #ededee; }
.carousel-track figure { box-sizing:border-box; flex:0 0 100%; min-width:0; margin:0; padding:0; border:0; scroll-snap-align:start; }
.carousel-track.ready figure:not(.current) { height:0; overflow:hidden; }
.carousel-track figure[hidden] { display:none; }
.carousel-track figure > a { display:block; cursor:zoom-in; }
.carousel-track figure img { display:block; width:100%; height:auto; border:0; border-radius:0; }
.carousel-track figcaption { margin:0; padding:12px 8px 5px; text-align:center; line-height:1.45; color:#575e68; }
.carousel-track figcaption p { max-width:80ch; margin:4px auto; font-size:.9rem; }
.carousel-actions,.viewer-controls { display:flex; justify-content:center; align-items:center; gap:clamp(4px,1vw,10px); flex-wrap:wrap; padding:10px 0; }
.carousel-actions[hidden] { display:none; }
.carousel-actions output,.viewer-controls output { font-variant-numeric:tabular-nums; }
.carousel-actions button,.viewer-controls button { font:inherit; color:inherit; background:white; border:1px solid #c8ccd2; border-radius:8px; min-height:44px; min-width:44px; padding:6px 12px; cursor:pointer; }
.carousel-actions button:disabled,.viewer-controls button:disabled { opacity:.45; cursor:default; }
.carousel-viewer { box-sizing:border-box; position:fixed; inset:0; margin:auto; padding:0; width:fit-content; height:fit-content; max-width:96vw; max-height:96dvh; border:0; color:#171d28; background:white; }
.carousel-viewer[open] { display:flex; flex-direction:column; }
.carousel-viewer::backdrop { background:rgb(235 237 240 / 90%); }
body:has(.carousel-viewer[open]) { overflow:hidden; }
.carousel-canvas { align-self:center; max-width:96vw; min-height:0; overflow:auto; overscroll-behavior:contain; }
.carousel-canvas img { display:block; width:auto; height:auto; max-width:96vw; max-height:var(--image-height,72dvh); }
.carousel-canvas.actual { max-height:var(--image-height,72dvh); }
.carousel-canvas.actual img { width:auto; height:auto; max-width:none; max-height:none; margin:0; }
.gallery-description { inline-size:0; min-inline-size:100%; box-sizing:border-box; margin:0; padding:10px; color:#575e68; font-size:.9rem; text-align:center; max-height:19vh; overflow:auto; }
@media(max-width:520px){.viewer-controls button{padding:5px 8px}}
.profile-lead:has(.home-carousel) { display:block; }
.profile-lead:has(.home-carousel) > div { max-width:78ch; margin-bottom:24px; }
.profile-lead .home-carousel { width:100%; }
@media(min-width:850px){
  .profile-lead:has(.home-carousel) > div { display:grid; max-width:none; grid-template-columns:1fr 1fr; column-gap:clamp(24px,5vw,70px); align-items:start; }
  .profile-lead:has(.home-carousel) > div > * { grid-column:2; }
  .profile-lead:has(.home-carousel) > div > .kicker { grid-column:1; grid-row:1; }
  .profile-lead:has(.home-carousel) > div > :is(h2,h3) { grid-column:1; grid-row:2 / span 3; }
  .profile-lead:has(.home-carousel) > div > p:first-of-type { grid-row:1 / span 2; margin-top:0; }
}
.carousel-track::-webkit-scrollbar { height:7px; }
.carousel-track::-webkit-scrollbar-track { background:#ededee; border-radius:10px; }
.carousel-track::-webkit-scrollbar-thumb { background:#858585; border-radius:10px; }
