/* Media browser / lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

.lb-overlay.lb-open {
  display: flex;
}

.lb-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 64px 76px;
}

.lb-content {
  max-width: 90vw;
  max-height: 80vh;
  text-align: center;
}

.lb-content img,
.lb-content video {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
  margin: auto;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.lb-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 44px;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-counter {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
}

/* Video wrapper + expand button */
.video-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.video-wrap video {
  max-width: 100%;
  vertical-align: top;
}

.media-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: auto;
}

.video-wrap:hover .media-expand {
  opacity: 1;
}

.media-expand:hover {
  background: rgba(0, 0, 0, 0.8);
}

.media-expand svg {
  width: 18px;
  height: 18px;
}