.mc-gallery{padding:20px 16px}.mc-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.mc-gallery-heading h2{font-size:19px;font-weight:780;margin:0!important}.mc-gallery-heading p{font-size:12px;color:var(--bpx-muted);margin:5px 0 0!important}.mc-gallery-heading>span{font-size:12px;color:var(--bpx-muted);white-space:nowrap}.mc-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;border-radius:14px;overflow:hidden}.bpx-ui #buddypress button.mc-gallery-thumb{border:0!important;padding:0!important;margin:0!important;border-radius:10px!important;background:var(--bpx-soft)!important;position:relative;aspect-ratio:1;overflow:hidden;width:100%;display:block}.mc-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}.mc-gallery-thumb:hover img{transform:scale(1.05)}.mc-gallery-thumb:focus-visible{outline-offset:-4px!important;z-index:1}.mc-gallery-thumb-label{position:absolute;bottom:0;left:0;right:0;text-align:left;padding:20px 8px 7px;background:linear-gradient(transparent,#0009);color:#fff;font-size:10px;font-weight:650}.mc-gallery-video-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;border:1px solid #ffffff70;background:#0006;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:15px;padding-left:2px}.mc-gallery-placeholder{height:100%;display:grid;place-items:center;color:var(--bpx-muted)}.mc-gallery-empty{padding:30px 0;color:var(--bpx-muted);font-size:14px}.mc-gallery-open{overflow:hidden!important}.mc-lightbox{padding:0;border:0;background:#0b1310;color:#e4ede6;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;overflow:hidden}.mc-lightbox::backdrop{background:#000e}.mc-lightbox-shell{height:100%;display:flex;flex-direction:column;max-width:1600px;margin:auto}.mc-lightbox-shell>header{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-bottom:1px solid #2a3730}.mc-lightbox h2{font-size:15px!important;color:#e4ede6!important;font-weight:650!important;margin:0!important}.mc-lightbox-counter{font-size:12px;color:#a0b1a6;display:block;margin-top:3px}.mc-lightbox button{border:1px solid #2a3730!important;border-radius:50%!important;color:#fff!important;background:#18251e!important;padding:9px!important;width:40px;height:40px;display:grid;place-items:center}.mc-lightbox button:hover{background:#233b2e!important}.mc-lightbox .bpx-icon{width:20px;height:20px}.mc-lightbox-stage{flex:1;min-height:0;position:relative;padding:15px 75px;display:flex;align-items:center;justify-content:center}.mc-lightbox-media{height:100%;width:100%;min-height:0;display:flex;align-items:center;justify-content:center}.mc-lightbox-media img,.mc-lightbox-media video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:12px}.mc-lightbox-prev,.mc-lightbox-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2}.mc-lightbox-prev{left:22px}.mc-lightbox-next{right:22px}.mc-lightbox footer{flex-shrink:0;max-height:32dvh;overflow:auto;padding:12px 24px 16px;border-top:1px solid #2a3730;text-align:center}.mc-lightbox-date{font-size:12px;color:#a0b1a6;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.mc-lightbox-date time{color:#e4ede6;font-weight:600}.mc-lightbox-description{font-size:14px;line-height:1.5;color:#e4ede6;max-width:760px;margin:9px auto 0!important}.mc-lightbox-credit{font-size:10px;display:block;color:#a0b1a6;margin:6px 0 0}.mc-lightbox-strip{display:flex;gap:6px;justify-content:flex-start;width:max-content;max-width:100%;overflow-x:auto;margin:13px auto 0;padding:3px}.mc-lightbox .mc-lightbox-strip button{flex:0 0 48px;width:48px;height:42px;padding:0!important;border-radius:6px!important;overflow:hidden;border:2px solid transparent!important;color:#a0b1a6!important}.mc-lightbox-strip img{width:100%;height:100%;object-fit:cover}.mc-lightbox .mc-lightbox-strip button[aria-current=true]{border-color:var(--mc-media-accent)!important}.mc-lightbox button:focus-visible{outline:2px solid var(--mc-media-accent)!important;outline-offset:3px}.mc-lightbox button:disabled{opacity:.25;cursor:default}@media(max-width:680px){.mc-gallery{padding:16px 12px}.mc-gallery-heading h2{font-size:17px}.mc-gallery-grid{gap:3px;border-radius:10px}.mc-lightbox-shell>header{padding:10px 14px;height:62px}.mc-lightbox-stage{padding:8px 0}.mc-lightbox-prev{left:8px}.mc-lightbox-next{right:8px}.mc-lightbox-stage>button{width:34px;height:34px;background:#0009!important}.mc-lightbox footer{padding:12px 14px max(16px,env(safe-area-inset-bottom));max-height:34dvh}.mc-lightbox-description{font-size:13px}.mc-lightbox h2{font-size:13px!important}.mc-lightbox-date{font-size:11px}}@media(prefers-reduced-motion:reduce){.mc-gallery-thumb img{transition:none}}
.mc-lightbox-next svg{transform:rotate(180deg)}

/* Keep the gallery outline above BuddyPress global div corner rules. */
.bpx-ui #buddypress .mc-gallery-grid{border-radius:16px}
