* { margin: 0; padding: 0; box-sizing: border-box; }
  body {
     background: #000;
     font-family: sans-serif;
     padding-top: 70px;
}


.content {
   opacity: 0;
    transition: opacity 1.5s ease-in;
    transition-delay: 0.5s;
    width: 100%;
    height: auto;

}

.visible {
    opacity: 1;
}


  .banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
  }
  .banner img {
    height: 60px;
    margin-top:8px;
    width: auto;
  }

  .mosaic {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: #000;
    transition: filter 0.3s;
  }
  .mosaic.blurred { filter: blur(6px) brightness(0.4); pointer-events: none; }

  .thumb {
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
  }
  .thumb img {
    height: 300px;
    width: auto;
    display: block;
    transition: transform 0.25s, filter 0.25s;
  }
  .thumb:hover img { transform: scale(1.05); filter: brightness(1.05); }

  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
  }
  .lightbox.active { display: flex; }

  .lb-backdrop { position: absolute; inset: 0; cursor: pointer; }

  .lb-img-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
  }
  .lb-img-wrap img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.85);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .lb-img-wrap img.fade-out-left  { opacity: 0; transform: translateX(160px); }
  .lb-img-wrap img.fade-out-right { opacity: 0; transform: translateX(-160px); }
  .lb-img-wrap img.fade-in-left   { opacity: 0; transform: translateX(-160px); }
  .lb-img-wrap img.fade-in-right  { opacity: 0; transform: translateX(160px); }

  .lb-prev, .lb-next {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 50%;
    cursor: pointer;
  }
  .lb-prev { left: 0; }
  .lb-next { right: 0; left: auto; }

  .close-btn {
    /*position: relative;*/
    display:none;
    font-size: 1rem;
    top: 28px;
    left: -40px;
    color: rgba(255,255,255,0.4);
    background-color: #333;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    width: 22px;
  }

  .close-btn:hover { color: #ccc; }

@media only screen and (max-width: 720px) {
    body {
       background: #000;
       font-family: sans-serif;
       padding-top: 56px;
}

  .thumb {
    width: 100%;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    cursor: default;
  }
  .thumb img {
    width: 100%;
    height: auto;
    display: block;  
  }

 .thumb:hover img { transform: none; }

 .banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
  }
  .banner img {
    height: 50px;
    margin-top:5px;
    width: auto;
  }
}
