.responsive-block-editor-addons-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;

  .admin-bar & {
    top: 32px;

    @media (max-width: 782px) {
      top: 46px;
    }
  }
}

.responsive-block-editor-addons-lightbox__background {
  background-repeat: no-repeat;
  background-size: cover;
  bottom: -10em;
  filter: blur(25px) saturate(175%) brightness(90%);
  left: -10em;
  position: absolute;
  right: -10em;
  top: -10em;
}

.responsive-block-editor-addons-lightbox__heading {
  align-items: center;
  color: $white;
  display: flex;
  font-family: $default-font;
  font-size: 0.5em;
  justify-content: space-between;
  left: 3%;
  position: absolute;
  right: 3%;
  top: 1em;

  @include break-small() {
    top: 2em;
  }
}

.responsive-block-editor-addons-lightbox__image {
  z-index: 2;

  img {
    max-height: 70vh;
    max-width: 70vw;

    @include break-large() {
      max-height: 80vh;
      max-width: 80vw;
    }
  }
}

.responsive-block-editor-addons-lightbox__arrow {
  align-items: center;
  background-color: transparent;
  border-radius: 100%;
  color: $white;
  cursor: pointer;
  display: flex;
  height: auto;
  margin: 0 1%;
  padding: 15px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: 250ms background-color linear;
  z-index: 3;

  &:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  &:focus {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
    outline: none;
  }

  @include break-small() {
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 2%;

    &:hover {
      background-color: rgba(255, 255, 255, 0.25);
    }
  }

  > div {
    background-color: $white;
    height: 28px;
    position: relative;
    width: 28px;

    @include break-large() {
      height: 32px;
      width: 32px;
    }
  }

  .arrow-left {
    left: -1px;
    mask-image: url(images/lightbox/arrow-left.svg);
  }

  .arrow-right {
    mask-image: url(images/lightbox/arrow-right.svg);
    right: -1px;
  }
}

.responsive-block-editor-addons-lightbox__arrow--left {
  left: 0;
  right: auto;
}

.responsive-block-editor-addons-lightbox__close {
  background-color: $white;
  background-repeat: no-repeat;
  cursor: pointer;
  height: 26px;
  mask-image: url(images/lightbox/close.svg);
  mask-size: contain;
  padding: 7px;
  transition: transform 0.15s linear;
  width: 26px;

  @include break-large() {
    height: 32px;
    width: 32px;
  }

  &:hover {
    background-color: $white;
    transform: scale(1.125);
  }

  &:focus {
    background-color: $white;
    transform: scale(1.125);
  }
}

.responsive-block-editor-addons-lightbox__caption {
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
}

.has-lightbox > :not(.carousel-nav) {
  figure:hover {
    cursor: zoom-in;
  }
}
