.blog-figure {
  margin: 0 0 25px;
  max-width: 760px;
}

.blog-figure-trigger {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.blog-figure-media {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border: 2px solid #e6e6e6;
  box-shadow: 0 10px 30px #00000025;
}

.blog-figure .image-max-100 {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 0 !important;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center center;
}

.blog-figure-trigger:hover .image-max-100,
.blog-figure-trigger:focus-visible .image-max-100 {
  transform: scale(1.03);
  filter: brightness(1.01);
}

.blog-figure figcaption {
  padding-top: 8px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1400px);
  height: min(88vh, 900px);
  margin: 4vh auto 0;
  padding: 2.5rem 1rem 1rem;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .blog-figure {
    margin: 0 0 25px;
    max-width: 100%;
  }

  .blog-figure-trigger,
  .blog-figure-media {
    display: block;
    width: 100%;
  }

  .blog-figure .image-max-100 {
    width: 100%;
    height: auto;
  }

  .blog-figure figcaption {
    padding-top: 6px;
  }

  .lightbox-dialog {
    width: 94vw;
    height: 86vh;
    padding: 2.75rem 0.5rem 0.5rem;
  }
}