.vp-lightbox {
  position: fixed;
  inset: 0;
  background: transparent; 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.vp-lightbox.open {
  opacity: 1;
  visibility: visible;
}

/* --- Softer backdrop --- */
.vp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}


.vp-lightbox-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  padding: 0;
  background: transparent;
  border-radius: 20px;    
  overflow: hidden;       
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}


.vp-lightbox.open .vp-lightbox-inner {
  transform: scale(1);
  opacity: 1;
}

.vp-lightbox-toolbar {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.vp-lightbox-btn {
  background: none;
  color: #d1d1d1;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* -------- Lightbox Close Button (Google-style) -------- */
.vp-lightbox-btn.vp-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.vp-lightbox-btn.vp-lightbox-close:hover {
  background: color-mix(in srgb, var(--vp-accent, #7ea728) 30%, white);
  color: #000;
}


.vp-lightbox-btn.vp-lightbox-close:active {
  transform: scale(0.96);
}



.vp-lightbox-btn:hover {
  color: #fff;
}

.vp-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
  object-fit: contain;
  transition: border-radius 0.3s ease, transform 0.3s ease;
}

.vp-lightbox.open .vp-lightbox-img {
  transform: scale(1);
}

.vp-lightbox-img:hover {
  transform: scale(1.01);
  border-radius: 20px;
}


body.vp-lightbox-active {
  overflow: hidden;
}

@keyframes vpZoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
