/* fullscreen image lightbox (see js/lightbox.js) */
.lightbox {
position: fixed;
inset: 0;
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(5,5,5,.95);
opacity: 0;
visibility: hidden;
-webkit-transition: opacity .4s ease, visibility .4s ease;
        transition: opacity .4s ease, visibility .4s ease;
}

.lightbox.is-open {
opacity: 1;
visibility: visible;
}

.lightbox-img {
max-width: 92vw;
max-height: 88vh;
object-fit: contain;
box-shadow: 0 30px 80px rgba(0,0,0,.6);
transform: scale(.92);
-webkit-transition: transform .5s cubic-bezier(.215,.61,.355,1), opacity .25s ease;
        transition: transform .5s cubic-bezier(.215,.61,.355,1), opacity .25s ease;
}

.lightbox.is-open .lightbox-img {
transform: scale(1);
}

.lightbox-img.is-switching {
opacity: 0;
}

.lightbox button {
position: absolute;
width: 54px;
height: 54px;
border: 1px solid rgba(255,255,255,.25);
border-radius: 50%;
background: rgba(255,255,255,.05);
color: #fff;
font-size: 26px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
-webkit-transition: background .3s ease, border-color .3s ease;
        transition: background .3s ease, border-color .3s ease;
}

.lightbox button:hover {
background: rgba(255,255,255,.15);
border-color: #fff;
}

.lightbox-close { top: 30px; right: 30px; font-size: 40px !important; }
.lightbox-prev { left: 30px; top: 50%; margin-top: -27px; }
.lightbox-next { right: 30px; top: 50%; margin-top: -27px; }

.lightbox-counter {
position: absolute;
bottom: 30px;
left: 0;
right: 0;
text-align: center;
font-family: 'Montserrat', sans-serif;
font-size: 11px;
font-weight: 700;
letter-spacing: 3px;
color: rgba(255,255,255,.5);
}

@media only screen and (max-width: 768px) {
  .lightbox-close { top: 15px; right: 15px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

body.lightbox-locked {
overflow: hidden;
}
