@charset "UTF-8";
/* DEVMC - 2026.04.28 - feature #bercovich-lightbox# "Estilos lightbox + hover overlay para triggers" */

/* ============================================================
   Trigger (hover overlay con icono album +)
   ============================================================ */
.bv-lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}

.bv-lightbox-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.bv-lightbox-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  background-color: var(--bv-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bv-lightbox-trigger:hover::before { opacity: 1; }
.bv-lightbox-trigger:hover::after  { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ============================================================
   Modal del lightbox
   ============================================================ */
.bv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.bv-lightbox.is-dragging { cursor: grabbing; }

.bv-lightbox__stage {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 300ms var(--ease-out);
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.bv-lightbox__img.is-zoomed {
  cursor: zoom-out;
  transform: scale(1.6) !important;
}
.bv-lightbox__img.is-dragging {
  transition: none;
}

/* Toolbar superior (share + close) */
.bv-lightbox__toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.bv-lightbox__share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-pill);
}
.bv-lightbox__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--bv-white);
  font-size: 15px;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.bv-lightbox__share-btn:hover {
  background: var(--bv-red);
  color: var(--bv-white);
  transform: scale(1.08);
}

/* Botones */
.bv-lightbox__close,
.bv-lightbox__arrow {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bv-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.bv-lightbox__close:hover,
.bv-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

.bv-lightbox__arrow { position: absolute; z-index: 5; }
.bv-lightbox__arrow--l { left: 24px;  top: 50%; transform: translateY(-50%); }
.bv-lightbox__arrow--r { right: 24px; top: 50%; transform: translateY(-50%); }
.bv-lightbox__arrow--l:hover { transform: translateY(-50%) scale(1.06); }
.bv-lightbox__arrow--r:hover { transform: translateY(-50%) scale(1.06); }

.bv-lightbox__caption {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--bv-white);
  font-size: 13px;
  border-radius: var(--r-pill);
  text-align: center;
  z-index: 4;
}

.bv-lightbox__counter {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  z-index: 4;
}

/* Miniaturas (thumbnails strip) */
.bv-lightbox__thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  z-index: 5;
}
.bv-lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.bv-lightbox__thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.bv-lightbox__thumbs::-webkit-scrollbar-track { background: transparent; }

.bv-lightbox__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.bv-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.bv-lightbox__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.bv-lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--bv-red);
}

/* Ajusta caption para que no choque con thumbs */
.bv-lightbox__caption { bottom: 130px; }
.bv-lightbox__stage { max-height: calc(86vh - 80px); }
.bv-lightbox__img { max-height: calc(86vh - 80px); }

/* Transicion fade */
.bv-lb-fade-enter-active,
.bv-lb-fade-leave-active { transition: opacity 250ms var(--ease-out); }
.bv-lb-fade-enter-from,
.bv-lb-fade-leave-to { opacity: 0; }

@media (max-width: 600px) {
  .bv-lightbox__toolbar { top: 8px; right: 8px; gap: 8px; }
  .bv-lightbox__share { padding: 4px 6px; gap: 4px; }
  .bv-lightbox__share-btn { width: 30px; height: 30px; font-size: 13px; }
  .bv-lightbox__close { width: 40px; height: 40px; }
  .bv-lightbox__arrow--l { left: 8px; }
  .bv-lightbox__arrow--r { right: 8px; }
  .bv-lightbox__caption { bottom: 110px; font-size: 12px; padding: 6px 14px; }
  .bv-lightbox__counter { bottom: 80px; }
  .bv-lightbox__thumbs { padding: 8px 12px; gap: 4px; }
  .bv-lightbox__thumb { width: 52px; height: 46px; }
  .bv-lightbox__stage,
  .bv-lightbox__img { max-height: calc(86vh - 70px); }
  .bv-lightbox-trigger::after { width: 44px; height: 44px; background-size: 18px 18px; }
}
