html {
  color-scheme: light;
  background: #c0c0c0;
}

body {
  margin: 8px;
  color: #222222;
  font-family: "Times New Roman", Times, serif;
  text-align: left;
}

main {
  max-width: 640px;
  margin: 16px 0;
}

h1 {
  margin: 0 0 16px;
  color: #4b315a;
  font-size: 32px;
}

p {
  margin: 0 0 28px;
  font-size: 16px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photos a {
  display: block;
  min-width: 0;
  border: 4px outset #999999;
  background: #d0d0d0;
}

.photos img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
}

::selection {
  color: #ffffff;
  background: #000080;
}

:focus-visible {
  outline: 3px solid #000080;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .photos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: #999999 #c0c0c0;
    padding: 6px 0 16px;
  }

  .photos a {
    flex: 0 0 88%;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  .photos img {
    height: 360px;
  }
}
