/**
 * Screenshots / image rows: horizontal scroll + lightbox.
 * Scoped to post content image rows (see image-scroll.js).
 */
.image-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 8px;
  scroll-snap-type: x mandatory;
  direction: rtl;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.image-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.image-scroll-wrapper img {
  scroll-snap-align: start;
  flex-shrink: 0;
  height: 320px;
  width: auto;
  max-width: 85vw;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: mbtna-lightbox-fade 0.3s ease;
}

.image-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow.prev {
  right: 16px;
}

.lightbox-arrow.next {
  left: 16px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

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

@keyframes mbtna-lightbox-fade {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.9);
  }
}
