/* Lightbox Container */
.rep-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rep-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Image */
.rep-lightbox-img-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rep-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.rep-lightbox-img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

/* Caption */
.rep-lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Controls */
.rep-lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.rep-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.rep-lightbox-close {
  top: 20px;
  right: 20px;
}

.rep-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.rep-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.rep-lightbox-prev:hover, .rep-lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Gallery styles on page */
.rep-standalone-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.rep-image-card {
  margin: 0;
  position: relative;
  border-radius: var(--rep-radius-sm);
  overflow: hidden;
  box-shadow: var(--rep-shadow-sm);
  cursor: pointer;
  background: var(--rep-surface);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rep-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rep-shadow-md);
}

.rep-image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rep-image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--rep-text);
  background: var(--rep-surface);
  border-top: 1px solid var(--rep-border);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
