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

html {
  background: #fff;
  color: #001219;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-weight: 300;
  line-height: 1.4;
}

body {
  font-size: 1rem;
  margin: 1rem;
}

a {
  color: oklch(56.18% 0.247 26.87);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin: 10dvh 0;
  text-align: center;
  text-wrap: balance;
}

img {
  height: 100%;
  max-height: calc(100dvh - 2rem);
  max-width: calc(100dvh - 2rem);
  object-fit: contain;
  vertical-align: middle;
  width: 100%;
}

section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  @media (width > 768px) {
    grid-template-columns: repeat(5, 1fr);
  }
}

dialog {
  border: 0;
  max-height: calc(100dvh - 2rem);
  max-width: calc(100dvw - 2rem);
  overflow: visible;
  padding: 0;

  figure {
    margin: 0;
    position: relative;
  }

  button {
    display: block;
    padding: 0;
  }

  figcaption {
    bottom: 0;
    font-size: 1.2rem;
    left: 0;
    padding: 1rem;
    position: absolute;
    right: 0;
    text-align: center;
  }

  &::backdrop {
    background: rgb(0 0 0 / 0.8);
  }
}
