/* Minimal photo viewer for the static blog archive, see lightbox.js */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.lb[hidden] { display: none; }
.lb figure {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  max-width: 100%; max-height: 100vh; overflow-y: auto;
}
.lb img {
  max-width: 94vw; max-height: 84vh; object-fit: contain;
  transition: opacity .15s;
}
.lb.lb-loading img { opacity: .3; }
.lb figcaption {
  color: #eee; font: 15px/1.4 sans-serif; text-align: center;
  padding: .6em 1em 0; max-width: min(90vw, 40em);
}
.lb figcaption strong { display: block; }
.lb-caption:not(:empty) { display: block; opacity: .85; }
.lb-counter { display: block; opacity: .6; font-size: 13px; margin-top: .2em; }
.lb-comments { list-style: none; margin: .8em 0 1em; padding: 0; text-align: left; }
.lb-comments:empty { display: none; }
.lb-comments li {
  margin: 0 0 .5em; padding: .5em .8em; border-radius: 6px;
  background: rgba(255, 255, 255, .08); font-size: 14px;
}
.lb-comments li.lb-reply { margin-left: 2em; }
.lb-comments b { display: block; font-size: 12px; opacity: .7; font-weight: 600; }

/* Buttons: full reset, because the theme styles every <button> (padding, letter-spacing, …) */
.lb .lb-btn {
  all: unset; box-sizing: border-box; position: absolute; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  transition: background .15s;
}
.lb .lb-btn:hover, .lb .lb-btn:focus-visible { background: rgba(255, 255, 255, .3); }
.lb .lb-btn[hidden] { display: none; }
.lb .lb-btn svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb .lb-btn { width: 42px; height: 42px; }
  .lb .lb-btn svg { width: 22px; height: 22px; }
  .lb .lb-prev { left: 6px; } .lb .lb-next { right: 6px; }
}
