.home-layout {
  display: grid;
  grid-template-columns: minmax(14em, 1fr) minmax(0, 2fr);
  gap: 1em;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(14em, 1fr) minmax(0, 2fr);
  gap: 1em;
}

.site-sidebar {
  min-width: 0;
}

.work {
  min-width: 0;
}

.cam-column {
  min-width: 0;
}

.cam {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  transform: rotate(180deg);
}

.cam-column p {
  margin: 0.5em 0 0;
}

.gallery {
  --gallery-gap: 0.25em;
  display: grid;
  width: 100%;
  gap: var(--gallery-gap);
}

.work + footer {
  margin-top: 1em;
}

.gallery + .gallery {
  margin-top: var(--gallery-gap);
}

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

.gallery figure {
  min-width: 0;
  margin: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery figcaption {
  margin-top: 0.25em;
}

.gallery-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-two-thirds {
  width: 66.6667%;
}

.gallery-three.gallery-two-thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-one {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-gallery {
  width: 100%;
}

.video-gallery + .video-gallery {
  margin-top: var(--gallery-gap);
}

@media (max-width: 600px) {
  .cam { width: 100%; }
  .gallery-two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .video-gallery.gallery-two { grid-template-columns: minmax(0, 1fr); }
}

.video-gallery.gallery-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}
