/**
 * @file
 * Modal image slider View styles
 * Use in node--book--full.html.twig
 */

.modal {
  position: fixed;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(52, 48, 54, 0.8);
  transition: all ease .3s;
  opacity: 0;
  z-index: 200;
}
.modal.is-open {
  visibility: visible;
  transition: all ease .3s;
  opacity: 1;
}
.modal__content {
  position: relative;
  transform: translateY(200px);
  opacity: 0;
  transition: ease all 300ms;
}
.modal.is-open .modal__content {
  transform: translateY(0px);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: -27px;
  right: 21px;
  display: block;
  content: '';
  background-image: url("../../images/icons/close.svg");
  background-position: center;
  background-repeat: no-repeat;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.modal__navigation span {
  position: absolute;
  width: 48px;
  height: 48px;
  bottom: -90px;
  cursor: pointer;
  background-color: var(--color-primary--3);
  border: 2px solid var(--color-primary--4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-neutral);
  transition: all ease 150ms;
  font-size: 1.5rem;
}
.modal__navigation span:hover {
  background-color: var(--color-primary--2);
}
.modal__navigation #prev {
  left: 50px;
}
.modal__navigation #next {
  right: 50px;
}
.modal__slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__image-item {
  display: none;
}
.modal__image-item.active {
  display: block;
}
.modal iframe {
  max-width: 90%;
}
@media all and (min-width: 750px){
  .modal__navigation span {
    top: 50%;
    bottom: unset;
    transform: translateY(-50%);
  }
  .modal__navigation span:hover {
    background-color: var(--color-primary--2);
  }
  .modal__navigation #prev {
    left: -90px;
  }
  .modal__navigation #next {
    right: -90px;
  }
  .modal__close {
    top: -27px;
    right: -27px;
  }
  .modal iframe {
    max-width: unset;
  }
}
