.reference-panel {
  cursor: zoom-in;
  touch-action: manipulation;
}

.reference-panel .panel-heading {
  cursor: zoom-in;
}

.reference-preview {
  position: relative;
  display: block;
  width: calc(100% - 28px);
  margin: 14px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  touch-action: manipulation;
}

.reference-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.reference-preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(0, 79, 54, 0.92);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.reference-preview:hover,
.reference-preview:focus-visible {
  outline: 3px solid rgba(0, 107, 69, 0.18);
  outline-offset: 2px;
}

.reference-preview:hover span,
.reference-preview:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.mockup-lightbox[hidden] {
  display: none;
}

.mockup-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mockup-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(10, 21, 17, 0.78);
  border: 0;
}

.mockup-lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(96vw, 1500px);
  max-height: 94vh;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.mockup-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.mockup-lightbox-toolbar span {
  font-size: 15px;
  font-weight: 800;
}

.mockup-lightbox-toolbar .ghost-button {
  min-height: 48px;
  padding: 0 20px;
  touch-action: manipulation;
}

.mockup-lightbox-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #f5f7f6;
}
