/* ==================== lightbox.css ==================== */

.img-lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.85);
    display:none;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
    opacity:0;
    transition:opacity .3s ease;
  }
  .img-lightbox.open{
    display:flex;
    opacity:1;
  }
  .img-lightbox-img{
    max-width:100%;
    max-height:90vh;
    object-fit:contain;
    border-radius:4px;
    box-shadow:0 30px 80px rgba(0,0,0,.6);
    transform:scale(.96);
    transition:transform .35s cubic-bezier(.22,.61,.36,1);
  }
  .img-lightbox.open .img-lightbox-img{
    transform:scale(1);
  }
  .img-lightbox-close{
    position:absolute;
    top:20px;
    right:24px;
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:18px;
    cursor:pointer;
    display:grid;
    place-items:center;
    transition:background .25s ease, transform .25s ease;
  }
  .img-lightbox-close:hover{
    background:var(--accent);
    color:var(--primary-dark);
    transform:rotate(90deg);
  }