* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

 .lightbox-item {
  display: initial;
  cursor: pointer
}

.lightbox-item img {
width: 250px
}

.lightbox-item > figure {
	display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px
}

.lightbox-item > img {
display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
max-width: 100%;
height: auto
}


.lightbox-modal {
  display: flex;
  flex-flow: column nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.9);
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  color: white
}

.lightbox-modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: white
}

.lightbox-modal.show {
  opacity: 1;
  pointer-events: all;
}

.lightbox-modal img {
max-width: 90vw;
height: auto;
}

.lightbox-item figcaption, .lightbox-modal figcaption {
text-align: center;
font-size: 12px
}