.portrait {
  position: relative;
  padding: 0 18px 18px 0;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  border: 1px solid var(--ink);
  z-index: -1;
}

.portrait::after {
  content: "PORTRAIT / 2026";
  position: absolute;
  right: 0;
  bottom: 104px;
  padding: 0.45rem 0.7rem;
  background: var(--accent);
  color: var(--paper);
  font: 500 0.55rem "DM Mono", monospace;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.portrait img {
  object-position: 50% 43%;
  filter: contrast(1.08);
}

.portrait figcaption {
  margin-top: 1.3rem;
}

.portrait figcaption span {
  color: var(--accent);
  font-family: "DM Mono", monospace;
}

@media (max-width: 480px) {
  .portrait::after {
    right: 0;
    bottom: 92px;
  }
}

.contact > div {
  flex-wrap: wrap;
  row-gap: 1rem;
}

.ngm-visual {
  display: block;
  background: #092b58;
}

.ngm-visual img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: contain;
  transition: transform 300ms ease, opacity 300ms ease;
}

.ngm-visual span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.62rem "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ngm-visual:hover img {
  transform: scale(1.025);
  opacity: 0.88;
}

.rag-thumb {
  background: #082f2d;
}

.rag-thumb img {
  max-width: 58%;
  max-height: 78%;
  object-fit: contain;
}

.bench-thumb {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.bench-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.small-case {
  min-width: 0;
}

@media (max-width: 800px) {
  .small-grid {
    grid-template-columns: 1fr;
  }
}
