.showcase-detail-image-frame {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 0;
  background: #757f4a;
  transition: border-color 180ms ease;
}

.showcase-detail-image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 240ms ease, transform 240ms ease;
}

.showcase-detail-image-frame:hover > img {
  filter: brightness(1.06);
  transform: scale(1.045);
}

.showcase-detail-open-image {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.showcase-detail-image-frame:has(.showcase-detail-open-image:focus-visible) {
  box-shadow: none;
}

.showcase-lightbox {
  width: min(1200px, 92vw);
  max-width: none;
  padding: 0;
  overflow: visible;
  color: var(--cream);
  border: 0;
  background: transparent;
}

.showcase-lightbox::backdrop {
  background: rgb(5 5 5 / 28%);
  backdrop-filter: blur(18px) saturate(80%);
}

.showcase-lightbox figure {
  margin: 0;
}

.showcase-lightbox-media {
  display: grid;
  width: 100%;
  max-height: 82vh;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: var(--container-radius);
  background: var(--ink);
}

.showcase-lightbox-media img,
.showcase-lightbox-media [data-lightbox-placeholder] {
  max-width: 100%;
  max-height: 82vh;
}

.showcase-lightbox-media img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-lightbox-media [data-lightbox-placeholder] {
  width: 100%;
  height: min(70vh, 720px);
  background-color: #757f4a;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.showcase-lightbox figcaption {
  display: flex;
  margin-top: 10px;
  justify-content: space-between;
  color: rgb(252 252 251 / 76%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.showcase-lightbox :is(button) {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--cream);
  font-size: 32px;
  line-height: 1;
  border: 1px solid rgb(252 252 251 / 34%);
  border-radius: 50%;
  background: rgb(5 5 5 / 76%);
  cursor: pointer;
}

.showcase-lightbox-prev,
.showcase-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.showcase-lightbox-prev { left: 12px; }
.showcase-lightbox-next { right: 12px; }

@media (max-width: 743px) {
  .showcase-lightbox { width: 94vw; }
  .showcase-detail-image-frame { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-detail-image-frame,
  .showcase-detail-image-frame > img { transition: none; }
}
