/*
Darkbox
*/

[data-darkbox],
[data-darkbox-group] {
  cursor: pointer;
}

/* #darkbox (shows large images as bg-image) */

#darkbox {
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9) none no-repeat 50% 50% / contain;
  -webkit-transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
}

#darkbox.show {
  opacity: 1;
  visibility: visible;
}

/* Hover action elements styles */

#darkbox a {
  color: #fff;
}

/*


#darkbox a:hover{
  color: #0bf;
  border-color: #0bf;
}
*/

/*prev next buttons*/

#darkbox_prev,
#darkbox_next {
  cursor: pointer;
  position: absolute;
  height: 50px;
  width: 50px;
  top: 50%;
  margin-top: -25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#darkbox_prev:hover,
#darkbox_next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#darkbox_prev {
  left: 40px;
}

#darkbox_next {
  right: 40px;
}

#darkbox_prev::after,
#darkbox_next::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-style: solid;
    border-color: #fff;
}

#darkbox_prev::after {
    border-width: 0 0 1px 1px;
    transform: rotate(45deg);
    margin-left: 5px;
}

#darkbox_next::after {
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
    margin-right: 5px;
}

/* Description */

#darkbox_description {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.8;
}

/* Stats counter */

#darkbox_stats {
  position: absolute;
  top: 40px;
  left: 40px;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* Close button */

#darkbox_close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

#darkbox_close:hover {
    opacity: 1;
}

#darkbox_close:before,
#darkbox_close:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 1px;
    background: #fff;
}

#darkbox_close:before {
    transform: rotate(45deg);
}

#darkbox_close:after {
    transform: rotate(-45deg);
}

/* Spinner */

#darkbox:before {
  content: "";
  position: absolute;
  visibility: hidden;
  opacity: 0;
  left: 50%;
  top: 50%;
  margin: -25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset -2px 0 0 2px #fff;
  -webkit-animation: darkboxRotate 1.5s linear infinite;
  animation: darkboxRotate 1.5s linear infinite;
}

#darkbox.spinner:before {
  visibility: visible;
  opacity: 1;
}

@-webkit-keyframes darkboxRotate {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes darkboxRotate {
  to {
    transform: rotate(360deg);
  }
}