/* Photos in a post ran the full width of the column, which is louder than the
   text around them. 65% of that, with the video players matched. */
.post-content img,
.post-content video {
  max-width: 65%;
  height: auto;
}

/* Home page: one tile per week rather than a wall of text. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}

.tile:hover {
  background: var(--accent);
  color: var(--background);
}

.tile-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.tile-image-empty {
  background: var(--accent);
  opacity: 0.25;
}

.tile-body {
  display: block;
  padding: 12px 14px 16px;
}

.tile-title {
  display: block;
  font-weight: bold;
}

.tile-date {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 2px 0 8px;
}

.tile-summary {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Click a photo to see it full size. */
.post-content img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  padding: 24px;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border: 0;
  padding: 0;
  cursor: zoom-out;
}

.lightbox button {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
