.lightbox 
{
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show 
{
  display: flex;
  opacity: 1;
}

.lightbox img 
{
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.lightbox.show img 
{
  transform: scale(1);
  opacity: 1;
}

.lightbox-close 
{
  position: absolute;
  top: 1.25rem;   /* 20px */
  right: 1.875rem; /* 30px */
  font-size: 2rem; /* 32px */
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}