.works-viewer {
  --works-viewer-photo-height: max(100px, calc(100dvh - 180px));
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 12px;
  width: min(calc(100vw - 24px), 1040px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid #30404b;
  border-radius: 12px;
  color: #fff;
  background: #152129;
}
.works-viewer::backdrop { background: rgb(10 16 20 / 78%); }
.works-viewer-header,
.works-viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.works-viewer-header { margin-bottom: 10px; }
.works-viewer-navigation { margin-top: 10px; }
.works-viewer-count { font-variant-numeric: tabular-nums; }
.works-viewer button {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  border: 1px solid #aebfca;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.works-viewer button:hover { background: #2c424b; }
.works-viewer button:focus-visible { outline: 2px solid #85d6c6; outline-offset: 2px; }
.works-viewer img {
  max-width: 100%;
  max-height: var(--works-viewer-photo-height);
  display: block;
  margin-inline: auto;
  object-fit: contain;
}
.works-viewer figcaption { margin-top: 8px; font-size: 14px; overflow-wrap: anywhere; }
.works-viewer-frame[data-crop="right"] img {
  width: min(400px, calc(var(--works-viewer-photo-height) * 2 / 3), 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: right;
}
.works-photo a.works-bakery-crop,
.real-work-card > .works-bakery-crop {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf2f1;
  padding: 0;
}
.works-photo .works-bakery-crop img,
.real-work-grid .real-work-card > .works-bakery-crop img {
  width: 50%;
  aspect-ratio: 2 / 3;
  object-fit: cover !important;
  object-position: right;
}
