[data-general-posts] .general-post-zoomable {
  cursor: zoom-in;
}

[data-general-posts] .general-post-zoomable:focus-visible,
[data-general-posts] a:focus-visible:has(.general-post-zoomable) {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.general-post-lightbox {
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #44627f;
  border-radius: .75rem;
  background: #0c1b30;
  color: #fff;
}

.general-post-lightbox::backdrop {
  background: rgb(4 10 20 / 88%);
}

.general-post-lightbox .general-post-lightbox-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .35rem .6rem;
}

.general-post-lightbox .general-post-lightbox-close,
.general-post-lightbox .general-post-image-link,
.general-post-lightbox .general-post-full-size {
  box-sizing: border-box;
  color: #fff;
  font: inherit;
}

.general-post-lightbox .general-post-lightbox-close {
  min-height: 2.75rem;
  padding: .35rem .85rem;
  border: 1px solid #8299b1;
  border-radius: .4rem;
  background: #253a54;
  cursor: pointer;
}

.general-post-lightbox .general-post-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  margin-inline: auto;
  object-fit: contain;
}
