.glass-carousel {
  background-color: #fff;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  display: flex;
  position: relative;
  overflow: clip;
}

.glass-carousel__canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0%;
  touch-action: pan-y;
  user-select: none;  
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;	  
}

[data-glass-carousel-wheel="all"] canvas {
  touch-action: none;
}
  
[data-glass-carousel-pointer="grab"] canvas {
  cursor: grab;
}
  
[data-glass-carousel-pointer="grabbing"] canvas {
  cursor: grabbing;
}

.glass-carousel__list {
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2em;
  padding-right: 2em;
  display: flex;
  position: absolute;
  inset: 0%;
  overflow-x: auto;
}

/* Once the canvas takes over, the list stays for screen readers only */
[data-glass-carousel="canvas"] [data-glass-carousel-list] {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.glass-carousel__item {
  scroll-snap-align: center;
  flex: none;
  height: 35%;
}

[data-glass-carousel-item] [data-glass-carousel-content] {
  visibility: hidden;
}

.glass-carousel__item-img {
  object-fit: cover;
  height: 100%;
  display: block;
}

.glass-carousel__item-p {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Haffer, Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.2;
}

.glass-carousel__item-p.is--faded {
  opacity: .6;
}

.glass-carousel__caption {
  pointer-events: none;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%);
}

.glass-carousel__counter {
  pointer-events: none;
  text-align: center;
  background-color: #0000000f;
  border-radius: .25em;
  min-width: 5em;
  padding: .625em 1em;
  font-size: 1em;
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translate(-50%);
}

/* Resonance news: the supplied carousel, in the site's black and white palette. */
.news-carousel {background:var(--black);color:var(--white);border-top:0;height:100svh;min-height:640px;}
.news-heading {position:absolute;top:calc(var(--header-height) + 20px);left:var(--gutter);right:var(--gutter);display:flex;align-items:flex-start;justify-content:space-between;gap:24px;pointer-events:none;z-index:1;}
.news-heading h2 {font-size:clamp(36px,3.7vw,60px);letter-spacing:-.055em;line-height:1.1;}
.news-heading .mock-note {color:var(--blue-gray);}
.news-carousel .glass-carousel__item-p {font-family:inherit;}
.news-carousel .glass-carousel__caption {top:23%;width:min(640px,90%);padding:0;}
.news-carousel .news-title {font-size:clamp(24px,2.4vw,38px);font-weight:500;letter-spacing:-.04em;line-height:1.15;}
.news-carousel .news-meta {margin-top:10px;font-size:13px;color:var(--blue-gray);}
.news-carousel .glass-carousel__counter {bottom:42px;background:transparent;border-radius:0;font-size:14px;padding:0;display:flex;align-items:center;justify-content:center;line-height:1.3;font-variant-numeric:tabular-nums;}
.news-counter__mask{display:inline-grid;overflow:hidden;height:1.3em;line-height:1.3}
.news-counter__value{grid-area:1 / 1;display:flex}
.news-counter__value > span{display:block;height:1.3em;line-height:1.3}
.news-carousel .glass-carousel__caption{display:grid;}
.news-caption__content{grid-area:1 / 1;min-width:0;}
.news-caption-line-mask{padding:.08em .04em .2em;margin:-.08em -.04em -.2em;}
.news-controls {position:absolute;right:var(--gutter);bottom:24px;display:flex;gap:12px;z-index:1;}
.news-controls button {width:56px;height:56px;border:0;border-radius:50%;background:var(--blue-gray);color:var(--black);display:grid;place-items:center;padding:18px;transition:background .4s cubic-bezier(.625,.05,0,1);}
.news-controls button:hover {background:var(--white);}
.news-controls svg {width:20px;height:20px;}
.news-carousel__hint {position:absolute;left:var(--gutter);bottom:42px;font-size:13px;color:var(--blue-gray);pointer-events:none;}
.news-carousel .glass-carousel__list {gap:40px;}
.news-carousel:not([data-glass-carousel="canvas"]) .glass-carousel__item {height:auto;width:clamp(220px,35vw,360px);}
.news-carousel:not([data-glass-carousel="canvas"]) .glass-carousel__item-img {width:100%;height:280px;object-fit:cover;filter:grayscale(1);}
.news-carousel:not([data-glass-carousel="canvas"]) [data-glass-carousel-content] {visibility:visible;margin-top:16px;white-space:normal;}
.news-carousel:not([data-glass-carousel="canvas"]) .news-title {font-size:22px;}
.news-carousel:not([data-glass-carousel="canvas"]) .glass-carousel__caption,
.news-carousel:not([data-glass-carousel="canvas"]) .glass-carousel__counter {display:none;}
@media(max-width:767px) {
  .news-carousel {min-height:560px;}
  .news-heading {top:calc(var(--header-height) + 16px);}
  .news-heading h2 {font-size:32px;}
  .news-carousel .news-title {font-size:24px;}
  .news-carousel .news-meta {font-size:12px;}
  .news-carousel .glass-carousel__caption {top:22%;}
  .news-controls button {width:48px;height:48px;padding:14px;}
  .news-carousel__hint {bottom:38px;font-size:11px;}
  .news-carousel .glass-carousel__counter {bottom:38px;font-size:12px;}
  .news-carousel:not([data-glass-carousel="canvas"]) .glass-carousel__item-img {height:240px;}
}
@media(max-width:370px) {
  .news-carousel__hint {max-width:90px;bottom:32px;}
  .news-carousel .glass-carousel__caption {top:24%;}
  .news-carousel .news-title {font-size:21px;}
}
