body {
  margin: 40px auto;
  max-width: 1024px;
  line-height: 1.6;
  font-size: 18px;
  color: #444;
  padding: 0 10px;
}

h1, h2, h3 {
  line-height: 1.2;
}


main.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card figure {
  margin: 0;
  border: 1px solid #ddd;
}

.card figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}

.card figcaption {
  padding: .6rem;
  overflow-wrap: break-word;
}

.card figcaption h2 {
  margin: 0;
  font-size: 1rem;
}

.card figcaption p {
  margin: 0;
  font-size: .85rem;
}

a.card {
  color: inherit;
  text-decoration: none;
  display: block;
}

a.card:hover figcaption h2,
a.card:focus-visible figcaption h2 {
  text-decoration: underline;
}

a.card:focus-visible {
  outline: 2px solid #0645ad;
  outline-offset: 2px;
}


video {
  display: block;
  width: 100%;
  height: auto;
}


.slideshow {
  margin: 0;
}

.slideshow input {
  display: none;
}

.slides {
  display: grid;
}

.slides label {
  grid-area: 1 / 1;
  cursor: pointer;
  visibility: hidden;
}

.slides img {
  display: block;
  width: 100%;
  height: auto;
}

#s1:checked ~ .slides label:nth-of-type(1),
#s2:checked ~ .slides label:nth-of-type(2),
#s3:checked ~ .slides label:nth-of-type(3),
#s4:checked ~ .slides label:nth-of-type(4),
#s5:checked ~ .slides label:nth-of-type(5),
#s6:checked ~ .slides label:nth-of-type(6),
#s7:checked ~ .slides label:nth-of-type(7),
#s8:checked ~ .slides label:nth-of-type(8),
#s9:checked ~ .slides label:nth-of-type(9),
#s10:checked ~ .slides label:nth-of-type(10),
#s11:checked ~ .slides label:nth-of-type(11) {
  visibility: visible;
}

.slideshow figcaption {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.slideshow figcaption label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

#s1:checked ~ figcaption label:nth-of-type(1),
#s2:checked ~ figcaption label:nth-of-type(2),
#s3:checked ~ figcaption label:nth-of-type(3),
#s4:checked ~ figcaption label:nth-of-type(4),
#s5:checked ~ figcaption label:nth-of-type(5),
#s6:checked ~ figcaption label:nth-of-type(6),
#s7:checked ~ figcaption label:nth-of-type(7),
#s8:checked ~ figcaption label:nth-of-type(8),
#s9:checked ~ figcaption label:nth-of-type(9),
#s10:checked ~ figcaption label:nth-of-type(10),
#s11:checked ~ figcaption label:nth-of-type(11) {
  background: #444;
}
