*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f3eee7;
  --ink: #2c2824;
  --surface: #fffcf8;
  --line: #3a322a14;
  --shadow: #4a382814;
  --hover: #efe8df;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow: clip;
}

img {
  max-width: none;
}

.glass-carousel {
  background-color: var(--paper);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  position: relative;
  overflow: clip;
}

.glass-carousel__canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  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__collection {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.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;
  gap: 2.5em;
  scrollbar-width: none;
}

.glass-carousel__list::-webkit-scrollbar {
  display: none;
}

[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: Inter, Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.2;
}

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

.glass-carousel__caption {
  pointer-events: none;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  position: absolute;
  top: 15%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.glass-carousel__caption-line {
  position: relative;
  height: 1.25em;
  line-height: 1.25em;
}

.glass-carousel__caption-track {
  position: relative;
  display: block;
  height: 1.25em;
  min-width: 1em;
}

.glass-carousel__caption-track .glass-carousel__item-p {
  position: absolute;
  left: 50%;
  top: 0;
  margin: 0;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25em;
  transform: translateX(-50%);
  will-change: filter, opacity;
}

.glass-carousel__controls {
  position: absolute;
  bottom: 12%;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  transform: translateX(-50%);
  pointer-events: auto;
}

.glass-carousel__counter {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  text-align: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 5.5em;
  padding: 0.7em 1.15em;
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  box-shadow: 0 8px 24px var(--shadow);
}

.glass-carousel__odo {
  display: inline-flex;
  align-items: stretch;
  height: 1.2em;
  overflow: hidden;
}

.glass-carousel__odo-digit {
  position: relative;
  display: block;
  width: 0.66em;
  height: 1.2em;
  overflow: hidden;
}

.glass-carousel__odo-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.glass-carousel__odo-num {
  display: flex;
  flex: 0 0 1.2em;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1.2em;
  font-variant-numeric: tabular-nums;
}

.glass-carousel__odo-slash {
  opacity: 0.45;
  line-height: 1.2em;
}

.glass-carousel__odo-total {
  line-height: 1.2em;
  font-variant-numeric: tabular-nums;
}

.glass-carousel__nav {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.85em;
  height: 2.85em;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px var(--shadow);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-carousel__nav svg {
  display: block;
  width: 1.15em;
  height: 1.15em;
}

.glass-carousel__nav:hover {
  background: var(--hover);
  box-shadow: 0 10px 28px var(--shadow);
}

.glass-carousel__nav:active {
  transform: scale(0.94);
}

.glass-carousel__nav:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .glass-carousel__controls {
    bottom: 8%;
    gap: 0.5em;
  }

  .glass-carousel__nav {
    width: 2.5em;
    height: 2.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-carousel__caption,
  .glass-carousel__counter {
    display: none;
  }
}
