.project-image[data-project-open],
button.project-image {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}
button.project-image:focus-visible { outline-offset: 5px; }
button.project-image:disabled { cursor: default; }

.project-lightbox {
  width: min(calc(100vw - 24px), 1480px);
  height: min(calc(100dvh - 24px), 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #515a54;
  border-radius: 2px;
  background: #171c19;
  color: #f6f7f6;
}
.project-lightbox::backdrop { background: rgb(8 11 9 / .91); }
.plb-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  padding: 42px 25px 22px;
}
.plb-figure { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; margin: 0; }
.plb-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.plb-caption { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #c5ccc7; font-size: 12px; }
.plb-title { color: #f6f7f6; font-weight: 650; }
.plb-count { color: #ffad75; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.plb-close, .plb-nav {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #58615b;
  border-radius: 0;
  background: #202522;
  color: #f6f7f6;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.plb-close:hover, .plb-nav:hover { border-color: #ff8839; background: #ff8839; color: #202522; }
.plb-close { position: absolute; z-index: 1; top: 12px; right: 12px; font-size: 29px; line-height: 1; }
.plb-nav { position: relative; z-index: 1; width: 48px; height: 54px; font-size: 38px; line-height: 1; }
.plb-prev { justify-self: start; }
.plb-next { justify-self: end; }
.project-lightbox :focus-visible { outline: 3px solid #ff8839; outline-offset: 3px; }
@media (max-width: 640px) {
  .project-lightbox { width: 100vw; height: 100dvh; border: 0; }
  .plb-frame { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 55px 8px 12px; }
  .plb-nav { width: 40px; min-width: 40px; min-height: 48px; font-size: 32px; }
  .plb-close { top: 8px; right: 8px; min-width: 44px; min-height: 44px; }
  .plb-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .plb-close, .plb-nav { transition: none; }
}
