/*! * loltgt/ensemble.Lightbox, loltgt/ensemble.Modal * * @version 0.0.1 * @link https://github.com/loltgt/ensemble-lightbox * @copyright Copyright (C) Leonardo Laureti * @license MIT License */

.modal, .modal-content, .modal-button, .modal-object, .modal-nav, .modal-captions {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: normal;
  text-align: center;
  border: 0;
  z-index: 1001;
  overflow: hidden;
  color: #000;
  background: rgba(100, 100, 100, 0.7); }

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: auto;
  line-height: 1;
  overflow: hidden; }

.modal-object {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%); }

.modal-button {
  position: absolute;
  width: auto;
  padding: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-highlight: none;
  -webkit-user-select: none;
  -webkit-appearance: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0); }

.modal-button:disabled {
  background: none !important;
  opacity: 0.1;
  cursor: default; }

.modal-button:active, .modal-button:focus {
  color: white;
  background: rgba(0, 0, 0, 0.7);
  outline: 0;
  -webkit-tap-highlight-color: transparent; }

@media (hover: hover) {
  .modal-button:hover {
    color: white;
    background: rgba(0, 0, 0, 0.7); } }

.modal-close {
  top: 0;
  right: 0; }

.modal[hidden],
.modal [hidden] {
  display: none !important; }

.modal.modal-fx[hidden] {
  display: flex !important;
  opacity: 0; }

.modal.modal-fx {
  opacity: 1;
  transition: opacity 70ms linear; }

.modal.modal-fx .modal-button {
  transition: all 30ms linear; }

@media (min-width: 576px) {
  .modal-button {
    font-size: 3rem; } }

@media (min-width: 992px) {
  .modal-button {
    font-size: 3rem; } }

.modal-lightbox {
  color: #fff;
  background: rgba(5, 5, 5, 0.83); }

.modal-gallery {
  display: inline-block;
  width: 100%;
  height: 100%;
  overflow: hidden; }

.modal-image {
  border: solid transparent;
  border-width: 0; }

.modal-image:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; }

.modal-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  border: 0; }

.modal-iframe {
  width: 100%;
  height: 100%;
  border: 0; }

.modal-iframe iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0; }

.modal-video,
.modal-audio {
  min-height: 33vmin;
  max-height: 100%;
  width: 100%; }

.modal-video video {
  width: 100%;
  outline: 0; }

.modal-video iframe,
.modal-audio iframe {
  max-height: 75vh; }

.modal-video iframe {
  min-height: 33vh;
  height: auto; }

.modal-pdf {
  min-height: 100%; }

.modal-pdf iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
   }

.modal-nav {
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; }

.modal-captions {
  bottom: 0;
  width: 100%;
  min-height: 8.2vh;
  padding: 3vh 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.78); }

.modal-captions:empty {
  display: none; }

.modal-captions p {
  margin: 0 0 1rem; }

.modal-captions p:last-child {
  margin: 0; }

.modal-prev,
.modal-next {
  top: 50%;
  margin-top: -2em; }

.modal-prev {
  left: 0; }

.modal-next {
  right: 0; }

.modal.modal-fx .modal-object[hidden] {
  display: flex !important;
  opacity: 0;
  z-index: -1; }

.modal.modal-fx .modal-object {
  opacity: 1;
  transition: opacity 100ms ease; }

.modal.modal-fx .modal-captions:empty {
  opacity: 0; }

.modal.modal-fx .modal-captions {
  display: block !important;
  opacity: 1;
  transition: opacity 200ms ease-out; }

.modal.modal-autohide .modal-nav,
.modal.modal-autohide .modal-captions {
  opacity: 1;
  /* animation: forwards 150ms ensemble-lightbox_autoHide linear 3s;*/
}

.modal.modal-autohide:active .modal-nav,
.modal.modal-autohide:active .modal-captions {
  animation: none; }

.modal.modal-autohide-navigation .modal-captions,
.modal.modal-autohide-captions .modal-nav {
  opacity: 1 !important;
  animation: none !important; }

@media (hover: hover) {
  .modal.modal-autohide:hover .modal-nav,
  .modal.modal-autohide:hover .modal-captions {
    animation-delay: 10s; } }

@keyframes ensemble-lightbox_autoHide {
  0% {
    opacity: 1; }
  100% {
    opacity: 0; } }

.modal.modal-overlayed .modal-nav,
.modal.modal-overlayed .modal-captions {
  position: absolute; }

.modal.modal-overlayed-navigation .modal-captions,
.modal.modal-overlayed-captions .modal-nav {
  position: initial; }

@media (min-width: 992px) {
  .modal-image {
    border-width: 10vh; }
  .modal-iframe {
    max-width: 90vw; }
  .modal-video,
  .modal-audio {
    max-height: 77vh;
    aspect-ratio: 16/9; }
  .modal-video iframe,
  .modal-audio iframe {
    max-height: 100%;
    height: 100%; }
  .modal-pdf {
    max-width: 80vw;
    max-height: 100%; }
  
  .modal-captions {
    font-size: 1rem; } }
