.gallery-plugin{--gallery-surface:var(--surface,#fff);--gallery-surface-soft:var(--surface-soft,#f6f8fb);--gallery-text:var(--text,#182230);--gallery-muted:var(--muted,#667085);--gallery-line:var(--line,#dce3eb);--gallery-brand:var(--brand,#315f77);--gallery-brand-strong:var(--brand-strong,#244d63);--gallery-danger:#a83a3a;color:var(--gallery-text);max-width:1080px;margin:0 auto;padding:34px 20px 72px}
.gallery-plugin *{box-sizing:border-box}.gallery-plugin a{color:inherit}.gallery-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:clamp(1.3rem,3vw,2.2rem);border:1px solid var(--gallery-line);border-radius:22px;background:linear-gradient(135deg,var(--gallery-surface),var(--gallery-surface-soft));box-shadow:0 16px 45px rgba(23,37,55,.07);margin-bottom:1.5rem}.gallery-hero-compact{align-items:center}.gallery-hero h1{margin:.15rem 0 .55rem;font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.045em}.gallery-hero p{margin:0;max-width:760px;color:var(--gallery-muted);line-height:1.65}.gallery-eyebrow,.gallery-section-kicker{display:block;color:var(--gallery-brand);font-size:.76rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.gallery-actions,.gallery-form-actions,.gallery-side-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.gallery-btn,.gallery-icon-btn{appearance:none;border:1px solid var(--gallery-line);border-radius:12px;min-height:42px;padding:.7rem 1rem;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;background:var(--gallery-surface);color:var(--gallery-text);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.gallery-btn:hover,.gallery-icon-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(24,34,48,.1)}.gallery-btn-primary{background:var(--gallery-brand);border-color:var(--gallery-brand);color:#fff}.gallery-btn-primary:hover{background:var(--gallery-brand-strong)}.gallery-btn-secondary{background:var(--gallery-surface)}.gallery-btn-block{width:100%}.gallery-icon-btn{width:44px;padding:.6rem;font-size:1.3rem}.gallery-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 1rem;color:var(--gallery-muted);font-size:.9rem}.gallery-breadcrumb a{text-decoration:none}.gallery-breadcrumb a:hover{text-decoration:underline}.gallery-filterbar{display:flex;gap:.5rem;overflow:auto;padding:.2rem 0 1rem;margin-bottom:.6rem;scrollbar-width:thin}.gallery-chip,.gallery-pill{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--gallery-line);border-radius:999px;background:var(--gallery-surface);text-decoration:none}.gallery-chip{padding:.55rem .85rem;font-size:.9rem}.gallery-chip.is-active{background:var(--gallery-brand);border-color:var(--gallery-brand);color:#fff}.gallery-pill{padding:.28rem .55rem;font-size:.76rem;font-weight:700;color:var(--gallery-muted)}
.gallery-section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:1rem 0}.gallery-section-head h2,.gallery-form-card h2,.gallery-side-card h2{margin:.15rem 0 0;font-size:1.2rem}.gallery-section-spacing{margin-top:2rem}.gallery-count,.gallery-meta,.gallery-owner,.gallery-help,.gallery-login-note{color:var(--gallery-muted);font-size:.88rem}.gallery-inline-meta{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;color:var(--gallery-muted);font-size:.88rem}
.gallery-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.gallery-album-grid-compact{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-album-card,.gallery-media-card,.gallery-form-card,.gallery-description-card,.gallery-side-card,.gallery-comments{border:1px solid var(--gallery-line);border-radius:18px;background:var(--gallery-surface);overflow:hidden;box-shadow:0 8px 24px rgba(24,34,48,.045)}.gallery-album-cover{display:grid;place-items:center;aspect-ratio:16/9;background:var(--gallery-surface-soft);overflow:hidden;text-decoration:none}.gallery-album-cover img,.gallery-media-thumb img,.gallery-media-thumb video{width:100%;height:100%;object-fit:cover;display:block}.gallery-album-placeholder{font-size:3rem;color:var(--gallery-muted)}.gallery-album-body{padding:1rem}.gallery-card-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.gallery-album-body h3,.gallery-media-card-body h3{font-size:1rem;margin:.65rem 0 .35rem}.gallery-album-body h3 a,.gallery-media-card-body h3 a,.gallery-meta-link{text-decoration:none}.gallery-album-body p{color:var(--gallery-muted);line-height:1.55;margin:.35rem 0 .8rem}.gallery-meta-link{color:var(--gallery-muted);font-size:.86rem}.gallery-media-grid,.gallery-embed-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.gallery-media-thumb{display:block;position:relative;aspect-ratio:4/3;background:var(--gallery-surface-soft);overflow:hidden}.gallery-media-card-body{padding:.8rem .9rem}.gallery-video-badge{position:absolute;right:.65rem;bottom:.65rem;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(20,28,38,.78);color:#fff;font-size:.8rem}.gallery-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.35rem;min-height:170px;border:1px dashed var(--gallery-line);border-radius:18px;background:var(--gallery-surface-soft);padding:2rem;color:var(--gallery-muted)}.gallery-empty strong{color:var(--gallery-text);font-size:1.04rem}.gallery-empty-action .gallery-btn{margin-top:.8rem}.gallery-empty-small{min-height:110px}
.gallery-slideshow{border:1px solid var(--gallery-line);border-radius:20px;overflow:hidden;background:#10151c}.gallery-slides{position:relative;aspect-ratio:16/8}.gallery-slide{position:absolute;inset:0;margin:0;display:none}.gallery-slide.is-active{display:block}.gallery-slide img,.gallery-slide video{width:100%;height:100%;object-fit:contain;display:block}.gallery-slide figcaption{position:absolute;left:1rem;right:1rem;bottom:1rem;padding:.65rem .85rem;border-radius:10px;background:rgba(15,21,28,.72);color:#fff;max-width:max-content}.gallery-slide-controls{display:flex;justify-content:center;gap:.6rem;padding:.7rem;background:var(--gallery-surface)}
.gallery-form{display:grid;gap:1rem}.gallery-form-card{padding:1.2rem;overflow:visible}.gallery-form-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.gallery-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.gallery-field{display:grid;gap:.4rem}.gallery-field>span{font-weight:700;font-size:.9rem}.gallery-field input,.gallery-field select,.gallery-field textarea,.gallery-mark-form textarea,.gallery-comment-reply textarea{width:100%;border:1px solid var(--gallery-line);border-radius:11px;background:var(--gallery-surface);color:var(--gallery-text);padding:.72rem .8rem;font:inherit}.gallery-field textarea{resize:vertical}.gallery-field-wide{grid-column:1/-1}.gallery-form-actions{justify-content:flex-end;padding-top:.4rem}.gallery-toggle-grid,.gallery-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1rem}.gallery-choice-grid-users{grid-template-columns:repeat(3,minmax(0,1fr));max-height:360px;overflow:auto}.gallery-toggle,.gallery-choice{display:flex;align-items:flex-start;gap:.7rem;border:1px solid var(--gallery-line);border-radius:13px;padding:.8rem;background:var(--gallery-surface-soft);cursor:pointer}.gallery-toggle input,.gallery-choice input{margin-top:.2rem}.gallery-toggle span,.gallery-choice span{display:grid;gap:.18rem}.gallery-toggle small,.gallery-choice small{color:var(--gallery-muted)}.gallery-language-panels{display:grid;gap:.6rem}.gallery-language-panel{border:1px solid var(--gallery-line);border-radius:12px;background:var(--gallery-surface-soft)}.gallery-language-panel summary{cursor:pointer;padding:.8rem 1rem;font-weight:700}.gallery-language-panel summary span{float:right;color:var(--gallery-muted)}.gallery-language-panel .gallery-form-grid{padding:0 1rem 1rem}.gallery-dropzone{min-height:190px;border:2px dashed var(--gallery-line);border-radius:18px;background:var(--gallery-surface-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;padding:2rem;cursor:pointer;color:var(--gallery-muted)}.gallery-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.gallery-dropzone strong{color:var(--gallery-text)}.gallery-dropzone-icon{font-size:2.4rem;color:var(--gallery-brand)}.gallery-dropzone.is-dragover{border-color:var(--gallery-brand);background:var(--gallery-surface)}.gallery-upload-list{display:grid;gap:.8rem}.gallery-upload-item{display:grid;grid-template-columns:150px 1fr;gap:1rem;border:1px solid var(--gallery-line);border-radius:14px;padding:.85rem;background:var(--gallery-surface)}.gallery-upload-preview{aspect-ratio:4/3;border-radius:10px;background:var(--gallery-surface-soft);overflow:hidden;display:grid;place-items:center;color:var(--gallery-muted);font-weight:800}.gallery-upload-preview img{width:100%;height:100%;object-fit:cover}.gallery-upload-fields{display:grid;gap:.7rem}.gallery-edit-preview{max-width:640px;margin:0 auto 1.2rem;border-radius:14px;overflow:hidden;background:#10151c}.gallery-edit-preview img,.gallery-edit-preview video{width:100%;max-height:560px;object-fit:contain;display:block}
.gallery-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:1rem;align-items:start}.gallery-detail-main{display:grid;gap:1rem}.gallery-detail-sidebar{display:grid;gap:1rem;position:sticky;top:1rem}.gallery-media-stage{position:relative;display:grid;place-items:center;min-height:360px;max-height:76vh;border-radius:20px;overflow:hidden;background:#0f151c;user-select:none}.gallery-media-stage>img,.gallery-media-stage>video{display:block;max-width:100%;width:100%;max-height:76vh;object-fit:contain}.gallery-description-card,.gallery-side-card,.gallery-comments{padding:1.1rem}.gallery-detail-title-row{display:flex;justify-content:space-between;gap:1rem;align-items:start}.gallery-detail-title-row h1{margin:.15rem 0 0;font-size:clamp(1.5rem,3vw,2.3rem)}.gallery-prose{color:var(--gallery-muted);line-height:1.7;margin-top:.9rem}.gallery-tag-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}.gallery-tag-list span{font-size:.83rem;border-radius:999px;padding:.35rem .55rem;background:var(--gallery-surface-soft);color:var(--gallery-muted)}.gallery-data-list{display:grid;gap:.1rem;margin:.8rem 0 0}.gallery-data-list div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--gallery-line)}.gallery-data-list div:last-child{border-bottom:0}.gallery-data-list dt{color:var(--gallery-muted)}.gallery-data-list dd{margin:0;text-align:right;font-weight:650}.gallery-side-actions{display:grid;margin-top:1rem}.gallery-reactions{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;margin-top:.8rem}.gallery-reactions button{border:1px solid var(--gallery-line);border-radius:12px;background:var(--gallery-surface-soft);padding:.65rem .3rem;display:grid;gap:.15rem;place-items:center;cursor:pointer;color:var(--gallery-text)}.gallery-reactions button>span{font-size:1.2rem}.gallery-reactions small{color:var(--gallery-muted);font-size:.72rem}.gallery-reaction-summary{display:flex;gap:.45rem;flex-wrap:wrap}.gallery-reaction-summary span{background:var(--gallery-surface-soft);border-radius:999px;padding:.4rem .6rem}.gallery-map{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--gallery-surface-soft);margin-top:.8rem}.gallery-map iframe{border:0;width:100%;height:100%}
.gallery-comments{overflow:visible}.gallery-comment-form{display:grid;gap:.7rem;margin:1rem 0 1.2rem}.gallery-comment-form .gallery-btn{justify-self:end}.gallery-comment-list{display:grid;gap:.7rem}.gallery-comment{border:1px solid var(--gallery-line);border-radius:13px;padding:.85rem;background:var(--gallery-surface)}.gallery-comment.is-reply{margin-left:1.2rem;border-left:3px solid var(--gallery-line)}.gallery-comment-head{display:flex;justify-content:space-between;gap:.8rem;color:var(--gallery-muted);font-size:.8rem}.gallery-comment-head strong{color:var(--gallery-text)}.gallery-comment-body{margin:.55rem 0;line-height:1.55}.gallery-comment-reply summary{cursor:pointer;color:var(--gallery-brand);font-size:.84rem;font-weight:700}.gallery-comment-reply form{display:grid;gap:.5rem;margin-top:.6rem}.gallery-comment-reply .gallery-btn{justify-self:start}.gallery-tag-tool{border:1px solid var(--gallery-line);border-radius:14px;padding:.85rem;background:var(--gallery-surface)}.gallery-tag-tool summary{cursor:pointer;font-weight:750}.gallery-tag-tool p{color:var(--gallery-muted)}.gallery-mark-form{display:grid;gap:.7rem}.gallery-tag-selection{position:absolute;border:2px solid #fff;outline:2px solid var(--gallery-brand);background:rgba(49,95,119,.2);pointer-events:none}.gallery-mark{position:absolute;left:var(--mark-x);top:var(--mark-y);width:var(--mark-w);height:var(--mark-h);border:2px solid rgba(255,255,255,.9);background:rgba(49,95,119,.12);cursor:pointer}.gallery-mark span{position:absolute;left:-2px;bottom:100%;padding:.25rem .4rem;background:#111a23;color:#fff;border-radius:6px;font-size:.72rem;white-space:nowrap;opacity:0;transform:translateY(-4px);transition:opacity .15s}.gallery-mark:hover span,.gallery-mark:focus span{opacity:1}.gallery-profile-head{display:flex;align-items:center;gap:1rem;border:1px solid var(--gallery-line);border-radius:20px;padding:1.2rem;background:var(--gallery-surface);margin-bottom:1.2rem}.gallery-avatar{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:var(--gallery-brand);color:#fff;font-size:1.5rem;font-weight:800}.gallery-profile-copy{flex:1}.gallery-profile-copy h1{margin:.1rem 0}.gallery-profile-copy p{margin:0;color:var(--gallery-muted)}
.gallery-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(5,9,14,.92);display:grid;grid-template-rows:auto 1fr;padding:1rem}.gallery-lightbox-bar{display:flex;justify-content:flex-end}.gallery-lightbox-close{width:46px;height:46px;border:0;border-radius:50%;font-size:1.6rem;cursor:pointer}.gallery-lightbox-content{display:grid;place-items:center;min-height:0}.gallery-lightbox-content img{max-width:96vw;max-height:88vh;object-fit:contain}
.gallery-box{border:1px solid var(--gallery-line);border-radius:16px;background:var(--gallery-surface);padding:1rem}.gallery-box h3{margin-top:0}.gallery-box-slideshow .gallery-slides{aspect-ratio:16/9}
@media(max-width:1050px){.gallery-media-grid,.gallery-embed-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-album-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-detail-layout{grid-template-columns:1fr}.gallery-detail-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.gallery-plugin{padding-top:.4rem}.gallery-hero{align-items:flex-start;flex-direction:column;padding:1.15rem;border-radius:17px}.gallery-hero h1{font-size:2rem}.gallery-actions{width:100%}.gallery-actions .gallery-btn{flex:1}.gallery-media-grid,.gallery-embed-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.gallery-album-grid,.gallery-album-grid-compact{grid-template-columns:1fr}.gallery-form-grid,.gallery-toggle-grid,.gallery-choice-grid,.gallery-choice-grid-users{grid-template-columns:1fr}.gallery-upload-item{grid-template-columns:1fr}.gallery-upload-preview{max-height:220px}.gallery-detail-sidebar{grid-template-columns:1fr}.gallery-media-stage{min-height:240px}.gallery-comment.is-reply{margin-left:.6rem}.gallery-profile-head{align-items:flex-start;flex-wrap:wrap}.gallery-profile-action{width:100%}.gallery-profile-action .gallery-btn{width:100%}.gallery-form-actions{display:grid;grid-template-columns:1fr}.gallery-form-actions .gallery-btn{width:100%}}
@media(max-width:430px){.gallery-media-grid,.gallery-embed-grid{grid-template-columns:1fr}.gallery-media-thumb{aspect-ratio:16/10}.gallery-section-head{align-items:flex-start}.gallery-detail-title-row{display:grid}.gallery-reactions{grid-template-columns:1fr 1fr 1fr}}
.gallery-embed-card,.gallery-box-item,.gallery-bbcode{display:block;text-decoration:none;border-radius:14px;overflow:hidden;background:var(--gallery-surface,#fff)}.gallery-embed-card{border:1px solid var(--gallery-line,#dce3eb)}.gallery-embed-card img,.gallery-box-item img,.gallery-bbcode img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-embed-card strong{display:block;padding:.65rem .75rem;color:var(--gallery-text,#182230)}.gallery-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.gallery-box-item{border:1px solid var(--gallery-line,#dce3eb)}.gallery-video-placeholder{display:grid;place-items:center;min-height:120px;aspect-ratio:4/3;background:var(--gallery-surface-soft,#f6f8fb);color:var(--gallery-muted,#667085);font-weight:800}.gallery-profile-block{display:grid;gap:1rem}.gallery-profile-block .gallery-media-grid>a.gallery-media-card{display:block;text-decoration:none}.gallery-profile-block .gallery-media-card>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-media-caption{display:block;padding:.7rem .8rem}
@media(max-width:720px){.gallery-box{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gallery-powered{margin-top:24px;text-align:center;font-size:.78rem;opacity:.55}.gallery-powered a{color:inherit}
