@font-face {
  font-family: 'ZCOOL';
  src: url(ZCOOL.ttf), format('truetype');
}

body {
  --pico-font-family: 'ZCOOL', sans-serif;
  font-family: var(--pico-font-family);
}

main.container {
  max-width: 800px;
  padding: 1rem;
}

h1 {
  margin-bottom: 0;
}

h2 {
  margin-top: 1rem;
}

nav, button, h1, h2 {
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  place-items: center;
}

.gallery-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gallery-btn img {
  max-width: 100%;
  max-height: 50vh;
  display: block;
}

dialog img {
  max-width: 100%;
  height: auto;
}

dialog.popover article {
  text-align: center;
}

dialog.popover header {
  min-height: 2rem;
}

/* Reusable corner ribbon */
.sold-ribbon {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sold-ribbon::after {
  content: "SOLD";
  background-color: var(--pico-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0.5;
}

h2 {
  font-size: x-large;
}