/* =========================
   GRID
========================= */
.gallery-item {
  border: 2px solid transparent;
  transition: 0.15s ease;
}

.gallery-item.selected {
  border-color: #4a90e2;
  opacity: 0.75;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* =========================
   FLOATING BASKET
========================= */
#downloadBasket {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: #4a90e2;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 9999;
  transition: 0.2s ease;
}

#downloadBasket.dragover {
  transform: scale(1.15);
  background: #2f6fd6;
}

.basket-handle {
  font-weight: bold;
}

.basket-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 300px;
  background: white;
  color: black;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.basket-panel.hidden {
  display: none;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

/* =========================
   EXPORT OVERLAY
========================= */
#exportOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#exportOverlay.hidden {
  display: none;
}

.exportBox {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
}

/* =========================
   FULLSCREEN VIEWER
========================= */
#viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

#viewer.hidden {
  display: none;
}

#viewer img {
  max-width: 95vw;
  max-height: 95vh;
}