.single-post .entry-content { container-type: inline-size; container-name: ujs-post-content; }
.single-post .entry-content .wp-block-gallery.has-nested-images,
.single-post .entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
  width: 100%;
}
.single-post .entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image,
.single-post .entry-content .gallery > .gallery-item {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  display: block;
}
.single-post .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.single-post .entry-content .gallery img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: 0;
}
.single-post .ujs-photo-link {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  cursor: zoom-in;
  isolation: isolate;
}
.single-post .ujs-photo-link img { transition: transform 220ms ease; }
.single-post .post-thumbnail .ujs-photo-link { margin-bottom: 24px; }
.single-post .post-thumbnail .ujs-photo-link img { display: block; width: 100%; height: auto; margin: 0 !important; }
.single-post .ujs-photo-link:focus-visible { outline: 3px solid #2454d6; outline-offset: 4px; }
.single-post .ujs-photo-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #202522; background: #fff; border-radius: 4px; pointer-events: none;
}
.single-post .ujs-photo-zoom svg { width: 20px; height: 20px; }
.single-post .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static; background: none; color: #59615c;
  padding: 8px 0 0; margin: 0; max-height: none; font-size: 14px;
}
.single-post .wp-lightbox-container:has(.ujs-photo-link) > button { display: none; }
.single-post .entry-meta :is(.comments-link, .comment-divider, .fa-comments) { display: none; }
body .ujs-viewer.pswp { --pswp-bg: #171b19; --pswp-icon-color: #fff; z-index: 100000; }
body .ujs-viewer .pswp__button { min-width: 48px; min-height: 48px; float: none; background: none !important; border: 0 !important; border-radius: 0; }
body .ujs-viewer .pswp__button::before, body .ujs-viewer .pswp__button::after { display: none; }
body .ujs-viewer .pswp__button--arrow--next { left: auto; right: 0; }
body .ujs-viewer.pswp .pswp__button--arrow { visibility: visible; }
body .ujs-viewer .pswp__counter { position: relative; left: auto; top: auto; padding: 0; }
body .ujs-viewer .pswp__top-bar { background: transparent; }
body .ujs-viewer .pswp__button:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.ujs-viewer .pswp__ujs-caption {
  position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(800px, calc(100% - 40px)); color: #fff; background: rgb(23 27 25 / 85%);
  padding: 8px 12px; border-radius: 4px; text-align: center; font: 14px/1.5 system-ui, sans-serif;
  overflow-wrap: anywhere; max-height: 4.5em; overflow-y: auto;
}
.ujs-viewer .pswp__ujs-caption:empty { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .single-post .ujs-photo-link:hover img { transform: scale(1.035); }
}
@media (max-width: 600px) {
  .single-post .entry-content .wp-block-gallery.has-nested-images,
  .single-post .entry-content .gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0; }
  body .ujs-viewer.pswp .pswp__button--arrow { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); height: 48px; width: 56px; margin: 0; }
  body .ujs-viewer .pswp__button--arrow .pswp__icn { width: 32px; height: 32px; margin-top: -16px; }
  .ujs-viewer .pswp__ujs-caption { width: calc(100% - 140px); }
}
@container ujs-post-content (max-width: 620px) {
  .single-post .entry-content .wp-block-gallery.has-nested-images,
  .single-post .entry-content .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .single-post .ujs-photo-link img { transition: none; }
}
