.social-gallery { overflow: hidden; margin-bottom: 16px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fafafa; }
.social-gallery a:focus-visible, .social-lightbox a:focus-visible, .social-lightbox button:focus-visible { outline: 3px solid #d946ef; outline-offset: -3px; }
.social-gallery-main { position: relative; display: block; background: #18181b; }
.social-gallery-main img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.social-gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(9, 9, 11, .85); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.social-gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
.social-gallery-thumbnail { display: block; flex: 0 0 88px; border-radius: 8px; overflow: hidden; background: #e4e4e7; }
.social-gallery-thumbnail img { display: block; width: 88px; height: 72px; object-fit: cover; }
.social-gallery-open { overflow: hidden; }
.social-lightbox { width: min(1200px, 96vw); max-width: 96vw; max-height: 94dvh; margin: auto; padding: 0; border: 1px solid #3f3f46; border-radius: 12px; background: #09090b; color: #fff; }
.social-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.social-lightbox-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.social-lightbox-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #52525b; border-radius: 8px; color: #fff; background: #27272a; font-size: 22px; cursor: pointer; }
.social-lightbox button:hover { background: #3f3f46; }
.social-lightbox button:disabled { opacity: .35; cursor: default; }
.social-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; height: min(70dvh, 760px); touch-action: pan-y pinch-zoom; }
.social-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.social-lightbox-prev, .social-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.social-lightbox-prev { left: 10px; }
.social-lightbox-next { right: 10px; }
.social-lightbox-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; color: #d4d4d8; }
.social-lightbox-footer a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .social-gallery-main img { max-height: 480px; }
  .social-gallery-thumbnail, .social-gallery-thumbnail img { width: 76px; flex-basis: 76px; }
  .social-gallery-thumbnail img { height: 64px; }
  .social-lightbox-toolbar { padding: 8px; gap: 8px; }
}
