/* Mazer portfolio rule: pairs first; only a final orphan may span both columns. */
.wgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wgrid > .wcase {
  min-width: 0;
  grid-column: auto;
}
.wgrid > .wcase .wcase-media {
  container-type: inline-size;
  flex: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.wgrid > .wcase .wcase-media > img,
.wgrid > .wcase .wcase-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wgrid > .wcase:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.wgrid > .wcase:last-child:nth-child(odd) .wcase-media {
  aspect-ratio: 16 / 9;
}
.wgrid .wcase-cap {
  flex: 1;
  gap: 1rem;
}
.wgrid .wc-meta {
  min-width: 0;
}
.dyakuiemo-cover {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 42% 58%;
  background: #ffd700;
}
.dyakuiemo-cover-brand {
  display: flex;
  align-items: center;
  padding: clamp(1rem, 4cqw, 3rem);
}
.wgrid .dyakuiemo-cover-brand img {
  height: auto;
  object-fit: contain;
  transform: none !important;
}
.dyakuiemo-cover-photo {
  min-width: 0;
  object-position: 80% center;
}
/* A contact address must not widen a narrow gallery/homepage viewport. */
.footer-col {
  min-width: 0;
}
.footer-col a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .home-review .nav .nav-inner {
    padding-inline: 10px;
  }
}
@media (max-width: 760px) {
  .wgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wgrid > .wcase .wcase-media,
  .wgrid > .wcase:last-child:nth-child(odd) .wcase-media {
    aspect-ratio: 3 / 2;
  }
}
