/* -------------------------------- 

File#: _3_carousel-v3
Title: Carousel v3
Descr: Display a collection of items and navigate through them
Usage: codyhouse.co/license

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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --cm0-color-primary-hsl: 250, 84%, 54%;
  --cm0-color-bg-hsl: 0, 0%, 100%;
  --cm0-color-contrast-high-hsl: 230, 7%, 23%;
  --cm0-color-contrast-higher-hsl: 230, 13%, 9%;
  --cm0-color-black-hsl: 230, 13%, 9%;
  --cm0-color-white-hsl: 0, 0%, 100%;

  /* spacing */
  --cm0-space-xs: 0.5rem;
  --cm0-space-md: 1.25rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --cm0-space-xs: 0.75rem;
    --cm0-space-md: 2rem;
  }
}

/* icons */
.cm0-icon {
  height: var(--cm0-size, 1em);
  width: var(--cm0-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

/* component */
.carousel-v3 {
  --carousel-grid-gap: var(--cm0-space-xs);
  --carousel-item-auto-size: 260px;
  --carousel-transition-duration: 0.5s;
}

.carousel-v3__control {
  --cm0-size: 60px;
  height: var(--cm0-size);
  width: var(--cm0-size);
  background-color: hsla(var(--cm0-color-black-hsl), 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.carousel-v3__control:hover {
  background-color: hsla(var(--cm0-color-black-hsl), 0.9);
}
.carousel-v3__control[disabled] {
  display: none;
}
.carousel-v3__control:active {
  -webkit-transform: translateY(2px);
          transform: translateY(2px);
}
.carousel-v3__control .cm0-icon {
  --cm0-size: 20px;
  display: block;
  color: hsl(var(--cm0-color-white-hsl));
}

/* utility classes */
.cm0-justify-between {
  justify-content: space-between;
}

.cm0-items-center {
  align-items: center;
}

.cm0-flex {
  display: flex;
}

.cm0-pointer-events-none {
  pointer-events: none;
}

.cm0-right-0 {
  right: 0;
}

.cm0-bottom-0 {
  bottom: 0;
}

.cm0-left-0 {
  left: 0;
}

.cm0-top-0 {
  top: 0;
}

.cm0-position-absolute {
  position: absolute;
}

.cm0-width-100\% {
  width: 100%;
}

.cm0-block {
  display: block;
}

.cm0-position-relative {
  position: relative;
}

.cm0-sr-only {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.cm0-max-width-md {
  max-width: 64rem;
}

.cm0-container {
  width: calc(100% - 2*var(--cm0-space-md));
  margin-left: auto;
  margin-right: auto;
}

.cm0-flex-column {
  flex-direction: column;
}

.cm0-overflow-hidden {
  overflow: hidden;
}