
.w360-lightbox[hidden]{display:none!important}
.w360-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(7,6,5,.95);color:#f6f0e8;display:flex;align-items:center;justify-content:center;padding:14px}
.w360-lb-frame{display:flex;flex-direction:column;width:min(1380px,100%);height:min(940px,100%);min-height:0;border:1px solid #6a5537;border-radius:12px;overflow:hidden;background:#171512;box-shadow:0 15px 80px #000b}
.w360-lb-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#28231d;border-bottom:1px solid #4b4032}
.w360-lb-caption{display:flex;flex-direction:column;min-width:0;gap:2px}
.w360-lb-caption strong{font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w360-lb-caption span{color:#b6a994;font-size:.78rem}
.w360-lb-tools{display:flex;align-items:center;gap:5px;flex-shrink:0}
.w360-lb-tools button,.w360-lb-nav{display:grid;place-items:center;min-width:35px;min-height:35px;border:1px solid #675439;border-radius:8px;background:#332b21;color:#e4b263;cursor:pointer}
.w360-lb-tools button:hover,.w360-lb-nav:hover{background:#4a3925;border-color:#d4a45b}
#w360-lb-counter{color:#c8bba6;font-size:.78rem;margin-right:7px;font-variant-numeric:tabular-nums}
.w360-lb-stage{position:relative;display:flex;flex:1;min-height:0;background:#0e0d0b}
.w360-lb-viewport{position:relative;flex:1;min-width:0;overflow:hidden;touch-action:none;display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.w360-lb-viewport.is-zoomed{cursor:grab}
.w360-lb-viewport.is-dragging{cursor:grabbing}
#w360-lb-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;transform-origin:center center;will-change:transform;pointer-events:none}
.w360-lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:43px;height:50px;background:#29231de8}
.w360-lb-prev{left:9px}.w360-lb-next{right:9px}
.w360-lb-nav[hidden]{display:none}
.w360-lb-thumbnails{display:flex;gap:8px;overflow-x:auto;flex-shrink:0;padding:9px 12px;background:#28231d;border-top:1px solid #4b4032;scrollbar-color:#7a613d #28231d}
.w360-lb-thumbnails:empty{display:none}
.w360-lb-thumbnails button{display:block;flex:0 0 64px;width:64px;height:58px;overflow:hidden;padding:2px;background:#171512;border:2px solid transparent;border-radius:7px;cursor:pointer}
.w360-lb-thumbnails button[aria-current=true]{border-color:#d9a95a}
.w360-lb-thumbnails img{width:100%;height:100%;object-fit:contain}
[data-lightbox-key][data-lightbox-scope]{cursor:zoom-in}
[data-lightbox-key][data-lightbox-scope]:focus-visible{outline:3px solid #d9a95a;outline-offset:2px}
body.w360-lightbox-open{overflow:hidden}
@media(max-width:650px){.w360-lightbox{padding:0}.w360-lb-frame{border:0;border-radius:0;height:100%;width:100%}.w360-lb-header{padding:8px}.w360-lb-tools{gap:2px}.w360-lb-tools button{min-width:30px;min-height:34px}#w360-lb-counter{margin-right:2px}.w360-lb-nav{width:32px;height:45px}.w360-lb-thumbnails button{flex-basis:52px;width:52px;height:49px}}

/* Optional context panel: Gallery stays full-width; Feed adds shared comments. */
.w360-lb-content{display:flex;flex:1;min-height:0;min-width:0}
.w360-lb-main{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.w360-lb-panel[hidden]{display:none!important}
.w360-lb-panel{flex:0 0 min(360px,35%);min-width:0;overflow-y:auto;background:#211e19;color:#f6f0e8;padding:0;border-left:1px solid #4b4032}
.w360-lb-panel h2{font-size:1.1rem;margin:0 0 12px}
.w360-lb-panel .feed-comment-form textarea{width:100%}
@media(max-width:750px){.w360-lb-content{flex-direction:column}.w360-lb-main{min-height:0;flex:1}.w360-lb-panel{flex:0 0 40%;border-left:0;border-top:1px solid #4b4032}}

/* Shared lightbox optional discussion sidebar; Gallery remains unaffected. */
.w360-lb-panel.w360-lb-discussion{display:flex;flex-direction:column;gap:0;background:#211e19;color:#f6f0e8;scrollbar-color:#806334 #211e19}
.w360-lb-discussion .w360-lb-post{padding:18px 17px 16px;border-bottom:1px solid #514333;flex-shrink:0}
.w360-lb-post-author{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.w360-lb-post-avatar{width:37px;height:37px;flex-shrink:0;border:1px solid #66543c;border-radius:50%;display:grid;place-items:center;background:#30291f;color:#d9a95a}
.w360-lb-post-author>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.w360-lb-post-author strong{font-size:.94rem;overflow-wrap:anywhere}
.w360-lb-post-author time{font-size:.78rem;color:#b8ab99}
.w360-lb-post h2{font-size:1.02rem;margin:0 0 9px;color:#f6f0e8}
.w360-lb-post-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:.92rem;color:#ddd3c5;margin:0;max-height:35vh;overflow-y:auto}
.w360-lb-discussion-comments{display:flex;flex-direction:column;min-height:0;flex:1;padding:15px 17px}
.w360-lb-comments-heading{display:flex;align-items:center;gap:9px;color:#f6f0e8;font-size:1rem!important;margin:0 0 10px!important}
.w360-lb-comments-count{font-size:.75rem;border-radius:12px;background:#3b3124;color:#e3b46a;padding:2px 8px}
.w360-lb-discussion .feed-photo-comments-body{display:flex;flex-direction:column;min-height:0;flex:1}
.w360-lb-discussion .feed-comment{background:#2d2923;color:#f6f0e8;border:1px solid #463b2d}
.w360-lb-discussion .feed-comment.is-reply{border-left:2px solid #d9a95a}
.w360-lb-discussion .feed-comment-head strong{color:#f6f0e8}
.w360-lb-discussion .feed-comment p{color:#ddd3c5}
.w360-lb-discussion .feed-comment-actions button{color:#e1b36b}
.w360-lb-discussion .feed-comment-form{position:sticky;bottom:-15px;z-index:1;margin-top:auto;padding:12px 0 15px;background:#211e19;border-top:1px solid #514333}
.w360-lb-discussion .feed-comment-form textarea{background:#171511;color:#f6f0e8;border:1px solid #68553b;min-height:68px}
.w360-lb-discussion .feed-comment-form textarea:focus{outline:2px solid #b98c48;outline-offset:1px}
.w360-lb-discussion .feed-comment-form button{background:#33291d;color:#e3b46a;border:1px solid #806334}
.w360-lb-discussion .feed-comment-expand{color:#e3b46a}
@media(max-width:750px){.w360-lb-discussion .w360-lb-post{padding:13px 15px}.w360-lb-discussion .w360-lb-discussion-comments{padding:12px 15px}.w360-lb-post-text{max-height:20vh}}
