/* 画像の拡大表示（js/lightbox.js） */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-skin {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: lightbox-in 0.2s ease-out;
}

.lightbox-image {
  display: block;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  border: 0;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 44px;
  height: 64px;
  margin-top: -32px;
  font-size: 40px;
}

.lightbox-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.lightbox-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.lightbox-single .lightbox-prev,
.lightbox-single .lightbox-next {
  display: none;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
