/* site-images.css */

.content img {
  max-width: 440px;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: .5rem;
}

.content figure {
  margin: 1.25rem auto;
  max-width: 440px;
}

.content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: .5rem;
}

.content img.float-left,
.content p.float-left,
.content figure.float-left {
  float: left;
  margin: 0 1rem 1rem 0;
}

.content img.float-right,
.content p.float-right,
.content figure.float-right {
  float: right;
  margin: 0 0 1rem 1rem;
}

.content p.float-left img,
.content p.float-right img,
.content figure.float-left img,
.content figure.float-right img {
  margin: 0;
}

.content::after {
  content: "";
  display: block;
  clear: both;
}

/* ---------- Lightbox overlay ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox.active {
  display: flex;
  cursor: zoom-out;
}

.content img[data-lightbox],
.content p.data-lightbox > img,
.content figure.data-lightbox > img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content img[data-lightbox]:hover,
.content p.data-lightbox > img:hover,
.content figure.data-lightbox > img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content img.data-lightbox {
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .content img,
  .content figure {
    max-width: 100%;
  }

  .content img.float-left,
  .content img.float-right,
  .content p.float-left,
  .content p.float-right,
  .content figure.float-left,
  .content figure.float-right {
    float: none;
    margin: 1rem auto;
  }
}
