.l87-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  /* backdrop-filter: blur(10px); */
}
.admin-bar .l87-lightbox {
  top: 32px;
  height: calc(100% - 32px);
}
@media screen and (max-width: 783px) {
  .admin-bar .l87-lightbox {
    top: 45px;
    height: calc(100% - 45px);
  }
}
.l87-lightbox--visible {
  opacity: 1;
  visibility: visible;
}

/* Top toolbar */
.l87-lightbox__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 8px 12px 8px 16px;
  background-color: #000;
  box-sizing: border-box;
  z-index: 10001;
}

.l87-lightbox__toolbar-pagination {
  color: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  user-select: none;
}

.l87-lightbox__toolbar-pagination.swiper-pagination-fraction {
  position: static;
  width: auto;
  bottom: auto;
  left: auto;
  transform: none;
}

.l87-lightbox__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.l87-lightbox__action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  border: none;
  background: transparent;
  color: #ffffffd9;
  cursor: pointer;
  line-height: 0;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.l87-lightbox__action:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.l87-lightbox__action svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.l87-lightbox__content {
  position: relative;
  z-index: 9999;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.l87-lightbox__image {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}
.l87-lightbox__image img {
  max-width: 100%;
  max-height: 100%;
}
.l87-lightbox--slider {
  height: 80%;
  padding-bottom: 10px;
}
.l87-lightbox--navigation {
  height: 20%;
}

/* Swiper related classes */

.l87-lightbox--navigation .swiper-slide .l87-lightbox__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease-in-out;
  pointer-events: none;
}
.l87-lightbox--navigation .swiper-slide-thumb-active .l87-lightbox__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.0);
  transition: background-color 0.15s ease-in-out;
  pointer-events: none;
}
.l87-lightbox--navigation .swiper-slide .l87-lightbox__image img {
  border-bottom: 4px solid transparent;
  transition: border-color 0.15s ease-in-out;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.l87-lightbox--navigation .swiper-slide-thumb-active .l87-lightbox__image img{
  /* opacity: 1; */
  border-bottom: 4px solid #fff;

}
.l87-lightbox--navigation .swiper-button-prev,
.l87-lightbox--navigation .swiper-button-next {
  display: none !important;
}

.l87-lightbox--navigation .swiper-slide {
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.5);
}

.l87-lightbox__content .swiper-button-next, 
.l87-lightbox__content .swiper-button-prev {
  color: #fff;
  padding: 50px 80px;
}

.l87-lightbox__content .swiper-button-prev {
  left: 0px;
}

.l87-lightbox__content .swiper-button-next {
  right: 0px;
}
  
@media screen and (max-width: 783px) {
  .l87-lightbox--slider {
    height: 75%;
  }
  .l87-lightbox__content {
    height: auto;
  }
  .l87-lightbox__content .swiper-button-next, 
  .l87-lightbox__content .swiper-button-prev {
    padding: 30px 30px;
  }
  .l87-lightbox__content .swiper-button-next::after, 
  .l87-lightbox__content .swiper-button-prev::after {
    font-size: 30px;
  }
  .l87-lightbox--navigation {
    height: 10%;
    min-height: 80px;
  }
}

/* Share Popup CSS */

/* ── Share popup animations ───────────────────────────────────────────────── */
@keyframes l87FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes l87SlideUp {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  animation: l87FadeIn 0.18s ease;
}

/* ── Popup card ───────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 20px;
  width: min(380px, 92vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  animation: l87SlideUp 0.22s cubic-bezier(.22, .68, 0, 1.2);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.l87-lightbox-share-popup__title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  font-family: inherit;
}

.l87-lightbox-share-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.15s;
}

.l87-lightbox-share-popup__close:hover {
  opacity: 0.6;
}

/* ── Copy link row ────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup__copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.l87-lightbox-share-popup__url-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #444;
  background: #fafafa;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
}

.l87-lightbox-share-popup__copy-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s, background 0.2s;
}

.l87-lightbox-share-popup__copy-btn:hover {
  opacity: 0.85;
}

.l87-lightbox-share-popup__copy-btn--copied {
  background: #22a05a;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup__divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0 14px;
}

/* ── Social label ─────────────────────────────────────────────────────────── */
.l87-lightbox-share-popup__social-label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-family: inherit;
}

/* ── Social options row ───────────────────────────────────────────────────── */
.l87-lightbox-share-popup__socials {
  display: flex;
  gap: 10px;
}

.l87-lightbox-share-popup__social-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: #f9f9f9;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.l87-lightbox-share-popup__social-option:hover {
  background: #f0f0f0;
}

.l87-lightbox-share-popup__social-label-text {
  font-size: 11px;
  color: #555;
  font-family: inherit;
  font-weight: 500;
}