/* Beat Outlaws Scene/user-wall post imagery: compact, uncropped, clickable. */
.beat-social-feed-item__image img,
.bo-comment__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 640px) !important;
  max-height: 600px !important;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-in;
}

.beat-social-feed-item__image img:focus-visible,
.bo-comment__image img:focus-visible {
  outline: 3px solid #285bea;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .beat-social-feed-item__image img,
  .bo-comment__image img {
    max-height: min(500px, 65dvh) !important;
  }
}

html.bo-feed-image-viewer-open,
html.bo-feed-image-viewer-open body { overflow: hidden; }

.bo-feed-image-viewer {
  position: fixed;
  z-index: 12100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
}
.bo-feed-image-viewer[hidden] { display: none !important; }
.bo-feed-image-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, .9);
  backdrop-filter: blur(3px);
}
.bo-feed-image-viewer__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .55rem;
  width: min(96vw, 1200px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.bo-feed-image-viewer__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .48);
  cursor: zoom-out;
}
.bo-feed-image-viewer__close {
  position: absolute;
  z-index: 2;
  top: -.35rem;
  right: -.35rem;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(20, 20, 24, .86);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}
.bo-feed-image-viewer__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.bo-feed-image-viewer__download,
.bo-feed-image-viewer__download:visited {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .45rem .85rem;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: white;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 800;
}
.bo-feed-image-viewer__hint { color: rgba(255,255,255,.7); font-size: .8rem; }
.bo-feed-image-viewer__close:hover,
.bo-feed-image-viewer__close:focus-visible,
.bo-feed-image-viewer__download:hover,
.bo-feed-image-viewer__download:focus-visible {
  background: rgba(255,255,255,.23);
  outline: 2px solid rgba(255,255,255,.35);
}
@media (max-width: 575.98px) {
  .bo-feed-image-viewer__hint { display: none; }
}
