/* =========================
   COMPONENTS
   -------------------------
   UI-Bausteine
   ========================= */

/* CARD */
.card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left bottom;
  cursor: zoom-in;
}

/* STATUS BADGE */
.card-status {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);

  min-width: 26px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);

  background: rgba(0, 0, 0, 0.72);
  color: var(--color-fg);

  font-size: var(--font-size-status-badge);
  text-align: center;
  pointer-events: none;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;

  align-items: center;
  justify-content: center;

  background: var(--color-lightbox);
  z-index: var(--z-lightbox);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: 96vw;
  height: 96vh;
  object-fit: contain;

  cursor: zoom-out;
  touch-action: none;
}

/* NAV ARROWS */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: var(--nav-size);
  height: var(--nav-size);

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--color-control-bg);
  border-radius: var(--radius-pill);

  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lightbox.lb-show .lb-nav {
  opacity: 0.6;
}
