@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.visually-hidden:not(:is(:focus, :active)) {
  clip-path: inset(100%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

:root {
  --lb-control-color: rgba(255, 255, 255, .95);
  --lb-bgc: rgba(0, 0, 0, .22);
}

@supports (scrollbar-gutter: stable) {
  .scroll-lock {
    scrollbar-gutter: var(--scroll-lock-gutter) !important;
  }

  .scroll-lock body {
    overflow: hidden !important;
  }
}

@supports not (scrollbar-gutter: stable) {
  .scroll-lock body {
    padding-right: var(--scroll-lock-size) !important;
    overflow: hidden !important;
  }
}

light-box img[data-light-box-thumb] {
  cursor: zoom-in;
  outline-offset: 3px;
  outline: 2px solid rgba(0, 0, 0, 0);
  transition: all .2s;
}

light-box img[data-light-box-thumb]:focus {
  outline: 2px solid #000;
}

.light-box-overlay {
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.light-box-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.light-box-backdrop {
  opacity: 0;
  background: rgba(10, 10, 12, .86);
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.light-box-overlay.is-open .light-box-backdrop {
  opacity: 1;
}

.light-box-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.light-box-image {
  object-fit: cover;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  margin: 0;
  position: fixed;
  box-shadow: 0 30px 64px rgba(0, 0, 0, .45), 0 6px 22px rgba(0, 0, 0, .25);
}

.light-box-control, .light-box-close {
  color: var(--lb-control-color, rgba(255, 255, 255, .95));
  background: var(--lb-bgc, rgba(0, 0, 0, .22));
  cursor: pointer;
  border: 0;
  align-items: center;
  justify-items: center;
  padding: 0;
  line-height: 1;
  transition: background-color .12s;
  display: grid;
  position: absolute;
}

.light-box-control {
  outline-offset: 2px;
  border-radius: 12px;
  outline: 2px solid rgba(0, 0, 0, 0);
  width: 48px;
  margin-top: -32px;
  font-size: 42px;
  transition: all .2s;
  top: 50%;
}

.light-box-control:hover {
  background: #000;
}

.light-box-control:focus {
  outline-offset: 2px;
  background-color: #000;
  outline: 2px solid #d5d9ff;
}

.light-box-control:focus-visible {
  outline-offset: 2px;
  background-color: #000;
  outline: 2px solid #d5d9ff;
}

.light-box-control > span {
  height: 50px;
}

.light-box-prev {
  left: 18px;
}

.light-box-next {
  right: 18px;
}

.light-box-close {
  border-radius: 24px;
  width: 48px;
  height: 48px;
  font-size: 38px;
  top: 18px;
  right: 18px;
}

.light-box-close:hover {
  background: rgba(0, 0, 0, .34);
}

.light-box-close:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #d5d9ff;
}

.light-box-counter {
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  margin: 0;
  font: 400 28px / 1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  position: absolute;
  top: 14px;
  left: 20px;
}

@media (max-width: 720px) {
  .light-box-control {
    border-radius: 10px;
    width: 42px;
    height: 52px;
    margin-top: -26px;
    font-size: 34px;
  }

  .light-box-prev {
    left: 10px;
  }

  .light-box-next {
    right: 10px;
  }

  .light-box-close {
    width: 42px;
    height: 42px;
    font-size: 32px;
    top: 10px;
    right: 10px;
  }

  .light-box-counter {
    font-size: 24px;
    top: 10px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light-box-backdrop {
    transition: none;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.visually-hidden:not(:is(:focus, :active)) {
  clip-path: inset(100%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

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

html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

* {
  margin: 0;
  line-height: calc(4px + 2ex);
}

body {
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

#root {
  isolation: isolate;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  font-family: Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, sans-serif;
}

button {
  cursor: pointer;
}

main {
  max-width: 70rem;
  margin: 2rem auto;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  margin-bottom: .5rem;
  font-size: max(2.1rem, min(5vw, 3rem));
}

.demo-feed {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  align-items: stretch;
  gap: 1rem;
  margin: 4rem 1rem 1rem;
  padding-bottom: .75rem;
  display: grid;
}

.demo-feed img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

@media (max-width: 720px) {
  .demo-feed {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 220px;
  }
}
