.photo__gallery__img .single__gallery__img {
  cursor: pointer;
}

/* The theme keeps two columns on phones, which leaves the photos too small. */
@media (max-width: 767px) {
  .gallery .blogsidebar__content__wraper__2 .photo__gallery__img,
  .blogsidebar__content__wraper__2 .photo__gallery__img,
  .photo__gallery__img {
    grid-template-columns: 1fr;
  }

  .photo__gallery__img .single__gallery__img,
  .photo__gallery__img .single__gallery__img img {
    width: 100%;
  }
}

.shared-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px 48px;
  background: rgba(0, 0, 0, 0.88);
}

.shared-photo-lightbox__stage {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 85vh;
}

.shared-photo-lightbox__content {
  max-width: 100%;
  max-height: 85vh;
}

.shared-photo-lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.shared-photo-lightbox__close,
.shared-photo-lightbox__prev,
.shared-photo-lightbox__next {
  position: absolute;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s ease;
}

.shared-photo-lightbox__close:hover,
.shared-photo-lightbox__prev:hover,
.shared-photo-lightbox__next:hover,
.shared-photo-lightbox__close:focus,
.shared-photo-lightbox__prev:focus,
.shared-photo-lightbox__next:focus,
.shared-photo-lightbox__close:focus-visible,
.shared-photo-lightbox__prev:focus-visible,
.shared-photo-lightbox__next:focus-visible {
  background: transparent;
  color: #fff;
  opacity: 0.75;
  outline: none;
  box-shadow: none;
}

.shared-photo-lightbox__close {
  top: 0;
  right: 0;
  font-size: 36px;
  transform: translateY(calc(-100% - 12px));
}

.shared-photo-lightbox__prev,
.shared-photo-lightbox__next {
  top: 50%;
  font-size: 48px;
}

.shared-photo-lightbox__prev {
  left: 0;
  transform: translate(calc(-100% - 16px), -50%);
}

.shared-photo-lightbox__next {
  right: 0;
  transform: translate(calc(100% + 16px), -50%);
}

.shared-photo-lightbox__counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, calc(100% + 12px));
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .shared-photo-lightbox {
    padding: 64px 20px 56px;
  }

  .shared-photo-lightbox__prev,
  .shared-photo-lightbox__next {
    top: auto;
    bottom: 0;
    font-size: 36px;
    transform: translateY(calc(100% + 8px));
  }

  .shared-photo-lightbox__prev {
    left: 0;
  }

  .shared-photo-lightbox__next {
    right: 0;
  }
}
