.unified-portfolio .portfolio-teaser:is([href$="/math-school-tshirts/"], [href$="/ussr-tshirts/"], [href$="/party-slippers/"]) > img {
  object-fit: cover;
}

.unified-portfolio .portfolio-teaser[href$="/party-slippers/"] > img {
  object-position: center 57%;
}

.unified-portfolio-case [data-portfolio-photo] {
  cursor: zoom-in;
}

.unified-portfolio-case [data-portfolio-photo]:focus-visible {
  outline: 3px solid #2258be;
  outline-offset: -4px;
}

.portfolio-lightbox {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  overflow: auto;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #827991;
  border-radius: 14px;
  background: Canvas;
  color: CanvasText;
}

.portfolio-lightbox::backdrop {
  background: rgb(0 0 0 / 72%);
}

.portfolio-lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px;
}

.portfolio-lightbox-toolbar button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: Canvas;
  color: CanvasText;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.portfolio-lightbox-toolbar button[hidden] {
  display: none;
}

.portfolio-lightbox-toolbar button:focus-visible {
  outline: 3px solid #2258be;
  outline-offset: 1px;
}

.portfolio-lightbox > img {
  display: block;
  width: 100%;
  height: min(73vh, 720px);
  height: min(73dvh, 720px);
  object-fit: contain;
  box-sizing: border-box;
  padding: 0 8px 8px;
}

.portfolio-lightbox-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
