/* Gallery only: preserve the club design and unrelated navigation. */
.qcg-head,.qcg-viewer,.qcg-grid>article{min-width:0;max-width:100%;box-sizing:border-box}
.qcg-head h1,.qcg-viewer h2,.qcg-grid h2,.qcg-admin-table td{overflow-wrap:anywhere;word-break:normal}
.qcg-head-actions,.qcg-path{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.qcg-head>p{margin-bottom:.3rem;font-size:.85em;opacity:.8}
.qcg-folder-menu{position:relative;min-width:0;max-width:100%}
.qcg-folder-menu .qc-menu-tree,.qcg-folder-menu .qc-submenu{list-style:none;margin:0;padding:.3rem}
.qcg-folder-menu .qc-menu-row{display:flex;align-items:center;gap:.4rem;min-width:0}
.qcg-folder-menu a{display:block;padding:.45rem;overflow-wrap:anywhere;white-space:normal;min-width:0;flex:1}
.qcg-folder-menu .qc-sub-toggle{flex:0 0 auto;min-width:44px;min-height:44px}
.qcg-folder-menu .qc-submenu{position:static!important;max-width:100%;max-height:65vh;overflow:auto;background:#131c1b;border:1px solid #55603b;border-radius:.35rem}
.qcg-folder-menu .qc-submenu .qc-submenu{margin-left:.5rem;border-right:0}
.qcg-folder-menu [hidden]{display:none!important}
.qcg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}
.qcg-grid>article{overflow:hidden;text-align:center}
.qcg-grid h2{font-size:1.05rem;margin:.4rem 0 .7rem}
.qcg-number{font-weight:700;margin:.4rem 0;color:var(--accent,#a3cc41)}
.qcg-open{display:block}.qcg-open img{display:block;width:100%;height:220px;object-fit:contain}
.qcg-video-placeholder{display:grid;place-items:center;min-height:180px;background:#152020}
.qcg-viewer>img,.qcg-viewer>video{display:block;width:100%;max-height:70vh;object-fit:contain;margin:auto}
.qcg-viewer{scroll-margin-top:130px}.qcg-grid article{scroll-margin-top:130px}
.qcg-picture-nav{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.qcg-picture-nav a{min-height:44px;box-sizing:border-box}
.qcg-table-wrap{overflow:auto}.qcg-admin-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem;text-align:left}
.qcg-admin-table th,.qcg-admin-table td{padding:.65rem;vertical-align:top;border-bottom:1px solid #3f4943}
.qcg-admin-table tr:nth-child(even){background:rgba(255,255,255,.035)}
.qcg-admin-table th:first-child{width:23%}.qcg-admin-table th:last-child{width:23%}
.qcg-admin-table form{margin:.6rem 0}.qcg-admin-table select{width:100%;max-width:100%}
.qcg-admin-table summary{cursor:pointer}.qcg-admin-table button{white-space:normal;max-width:100%}
@media(max-width:700px){
 .qcg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.qcg-grid>article{padding:.6rem}.qcg-open img{height:150px}
 .qcg-grid h2{font-size:.9rem}.qcg-admin-table thead{display:none}.qcg-admin-table,.qcg-admin-table tbody,.qcg-admin-table tr,.qcg-admin-table td{display:block;width:auto}
 .qcg-admin-table tr{border:1px solid #465046;border-radius:.4rem;margin-bottom:.8rem;padding:.3rem}
 .qcg-admin-table td{border:0;padding:.35rem;overflow-wrap:anywhere}.qcg-admin-table td::before{content:attr(data-label) ': ';font-weight:700;color:var(--accent,#a3cc41)}
 .qcg-head-actions>*{max-width:100%}.qcg-folder-menu{width:100%}
}
@media(max-width:360px){.qcg-grid{grid-template-columns:minmax(0,1fr)}}

/* Compact folder/photo overview; only gallery elements are affected. */
.qcg-head{padding:1rem}.qcg-head h1{margin:.5rem 0;font-size:1.4rem}
.qcg-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:.8rem;margin:1rem 0}
.qcg-folder-tile{min-width:0;display:flex;flex-direction:column;gap:.35rem;padding:.5rem;background:rgba(14,22,21,.94);border:1px solid #43503e;border-radius:.4rem;text-align:center;text-decoration:none}
.qcg-folder-tile strong{overflow-wrap:anywhere;font-size:1rem}.qcg-folder-tile>small{font-size:.75rem;opacity:.8}
.qcg-folder-preview{position:relative;display:block;height:130px;overflow:hidden;background:#0d1514;border-radius:.25rem}
.qcg-folder-icon{display:grid;place-items:center;height:100%;font-size:3.5rem;color:var(--accent,#a3cc41)}
.qcg-folder-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:qcg-folder-fade calc(var(--qcg-slides)*4s) ease-in-out infinite;animation-delay:var(--qcg-delay);animation-fill-mode:both}
.qcg-folder-preview img:only-child{opacity:1;animation:none}
@keyframes qcg-folder-fade{0%{opacity:0}7%,28%{opacity:1}33%,100%{opacity:0}}
.qcg-folder-preview:has(img:nth-child(2):last-child) img{animation-name:qcg-folder-fade-two}
@keyframes qcg-folder-fade-two{0%{opacity:0}7%,43%{opacity:1}50%,100%{opacity:0}}
.qcg-thumb-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem;margin:1rem 0;align-items:start}
.qcg-thumb{min-width:0;overflow:hidden;background:rgba(15,23,22,.8);border-radius:.25rem;padding:.3rem;box-sizing:border-box;text-align:center;scroll-margin-top:130px}
.qcg-thumb-open{display:block;width:100%;height:100px;overflow:hidden;border-radius:.2rem;background:#090f0e}
.qcg-thumb-open img{display:block;width:100%;height:100%;object-fit:cover}
.qcg-thumb-name{display:block;font-size:.78rem;line-height:1.25;margin:.3rem 0;overflow-wrap:anywhere;font-weight:500}
.qcg-thumb>small{display:block;font-size:.67rem;line-height:1.3;opacity:.75}
.qcg-video-thumb{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.8rem;color:var(--accent,#a3cc41)}
.qcg-video-thumb small{font-size:.7rem}.qcg-empty{font-size:.85rem;opacity:.75}
.qcg-thumb-actions{font-size:.75rem;margin-top:.35rem;text-align:left}.qcg-thumb-actions summary{cursor:pointer;text-align:center;padding:.25rem}
.qcg-thumb-actions form{margin:.5rem 0}.qcg-thumb-actions label{font-size:.75rem}.qcg-thumb-actions select,.qcg-thumb-actions button{width:100%;max-width:100%;white-space:normal;font-size:.75rem;box-sizing:border-box}
.qcg-upload>summary{cursor:pointer;font-size:.95rem}.qcg-upload>p{font-size:.85rem}
@media(min-width:1700px){.qcg-thumb-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1050px){.qcg-thumb-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:700px){.qcg-thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}.qcg-thumb-open{height:90px}.qcg-folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.qcg-folder-preview{height:100px}.qcg-folder-tile strong{font-size:.85rem}}
@media(max-width:350px){.qcg-thumb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.qcg-folder-preview img{animation:none;opacity:0}.qcg-folder-preview img:first-child{opacity:1}}

/* Administrative folder workflow; public thumbnails are unchanged. */
.qgw-required-folder{display:block;padding:.8rem;border:2px solid var(--accent,#a3cc41);border-radius:.4rem;background:rgba(163,204,65,.09);font-weight:700;margin:.7rem 0}
.qgw-required-folder select{display:block;width:100%;margin-top:.4rem;min-height:44px}
.qgw-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem}
.qgw-folder{display:block;padding:1rem;border:1px solid #54613f;background:#141e1b;border-radius:.35rem;overflow-wrap:anywhere}
.qgw-folder>span{font-size:1.3rem}.qgw-folder.is-drop-target{outline:3px solid var(--accent,#a3cc41)}
.qgw-folder-panel>p,.qgw-current{font-size:.85rem;opacity:.85}
.qgw-select-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}.qgw-select-tools button{font-size:.8rem}
.qgw-file-list{border:1px solid #3d493f;border-radius:.35rem;overflow:hidden}.qgw-file{padding:.4rem .6rem;display:flex;gap:.6rem;align-items:start;border-bottom:1px solid #303c33;background:#111b18}
.qgw-file:nth-child(even){background:#17221d}.qgw-file.is-selected{background:#29371f;box-shadow:inset 3px 0 #a3cc41}
.qgw-file-choice{display:grid;grid-template-columns:auto 1fr;gap:.15rem .5rem;flex:1;min-width:0;cursor:pointer;margin:0;font-size:.83rem}.qgw-file-choice input{grid-row:span 2;align-self:center;min-width:20px;min-height:20px}.qgw-file-choice strong{overflow-wrap:anywhere;font-weight:500}.qgw-file-choice small{font-size:.7rem;opacity:.75}
.qgw-file>details{font-size:.75rem;max-width:45%;min-width:5rem}.qgw-file>details summary{cursor:pointer}.qgw-file>details form{margin:.5rem 0}.qgw-file>details input:not([type=hidden]){max-width:100%;box-sizing:border-box}
.qgw-bulk{position:sticky;bottom:.5rem;z-index:5;padding:.8rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;background:#15221a;border:1px solid var(--accent,#a3cc41);border-radius:.4rem}.qgw-bulk[hidden]{display:none}.qgw-bulk label{margin:0;min-width:0}.qgw-bulk select{max-width:240px}
.qcg-viewer>img,.qcg-viewer>video{height:65vh;max-height:900px;min-height:180px;object-fit:contain}.qgw-view-message{padding:.6rem;background:#15221a}.qcg-viewer[aria-busy=true]{opacity:.75}
#qcg-album-list[hidden]{display:none!important}
@media(max-width:600px){.qgw-file{padding:.5rem}.qgw-file-choice small{font-size:.65rem}.qgw-bulk{bottom:0}.qgw-bulk button{font-size:.8rem}.qgw-folder{padding:.8rem}.qcg-viewer>img,.qcg-viewer>video{height:55vh}}

.qgx-folder{position:relative;min-width:0}.qgx-folder>.qgw-folder{padding-right:3rem}.qgx-folder>details{position:absolute;right:.3rem;top:.3rem;z-index:3}.qgx-folder summary{cursor:pointer;font-size:1.4rem;padding:.1rem .6rem;list-style:none}.qgx-folder details>div{position:absolute;right:0;width:min(260px,75vw);background:#142019;border:1px solid #65773d;padding:.7rem;border-radius:.3rem}.qgx-folder form{margin:.4rem 0}.qgx-folder input:not([type=checkbox]){width:100%;box-sizing:border-box}.qgx-public-head h1{margin:.3rem 0}.qgx-public-head p{font-size:.95rem}
@media(max-width:1023px){html body .qc-mobile-page-tools{position:static!important;display:block!important;height:0!important;padding:0!important;margin:0!important}html body .qc-mobile-page-tools [data-qc-page-refresh],html body .qc-mobile-page-tools>a,html body #qc-scroll-top{position:fixed!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;box-sizing:border-box!important;border-radius:50%!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;z-index:70!important}html body .qc-mobile-page-tools [data-qc-page-refresh]{left:8px!important;right:auto!important;font-size:0!important}html body .qc-mobile-page-tools [data-qc-page-refresh]::before{content:'⟳';font-size:22px}html body .qc-mobile-page-tools>a{right:48px!important;left:auto!important;font-size:0!important;display:grid!important;place-items:center}html body .qc-mobile-page-tools>a::before{content:'⌂';font-size:22px}html body #qc-scroll-top{right:8px!important;left:auto!important;font-size:20px!important}html body footer.qc-footer{padding-bottom:calc(55px + env(safe-area-inset-bottom))!important}}

/* A single growing photo panel, no individual thumbnail frames. */
.qgz-album-panel .qcg-thumb{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}.qgz-album-panel .qcg-thumb-open{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}.qgz-album-panel .qcg-thumb-grid{margin:0;gap:.65rem}.qgz-order-target{outline:2px dashed var(--accent,#a3cc41)}
@media(max-width:1023px){html body .qc-mobile-page-tools [data-qc-page-refresh],html body .qc-mobile-page-tools>a,html body #qc-scroll-top{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}html body .qc-mobile-page-tools [data-qc-page-refresh]{left:calc(24px + env(safe-area-inset-left))!important}html body #qc-scroll-top{right:calc(24px + env(safe-area-inset-right))!important}html body .qc-mobile-page-tools>a{right:calc(76px + env(safe-area-inset-right))!important}html body footer.qc-footer{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}}

.qgv-viewer{position:relative;padding:.65rem!important}.qgv-media{position:relative}.qgv-media>img,.qgv-media>video{display:block;width:100%;height:65vh;min-height:180px;max-height:900px;object-fit:contain;margin:auto}.qgv-prev,.qgv-next{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:44px;border:1px solid var(--accent,#a3cc41);border-radius:.3rem;background:#101913df;color:var(--accent,#a3cc41);font-size:27px;line-height:1;text-decoration:none;z-index:2}.qgv-prev{left:.35rem}.qgv-next{right:.35rem}.qgv-caption{text-align:center!important;font-size:.95rem;margin:.5rem 0;overflow-wrap:anywhere}.qgv-likes{text-align:center}.qgv-viewer .qcg-close{display:none}.qgv-likes form{margin:.3rem 0}
@media(max-width:1023px){.qgv-viewer{padding-top:2.9rem!important}.qgv-viewer .qcg-close{position:absolute;display:grid;place-items:center;top:.25rem;right:.35rem;width:40px;height:40px;font-size:26px;z-index:3}.qgv-media>img,.qgv-media>video{height:55vh}.qgv-prev,.qgv-next{width:34px;height:44px}}

.qgv-zoom{display:block;margin:.45rem auto;font-size:.8rem;padding:.3rem .6rem}.qgv-zoom-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.97);display:flex;align-items:center;justify-content:center;padding:55px 8px 12px;box-sizing:border-box}.qgv-zoom-overlay>img,.qgv-zoom-overlay>video{width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}.qgv-zoom-close{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));width:44px;height:44px;font-size:30px;line-height:1;background:#132018;color:var(--accent,#a3cc41);border:1px solid currentColor;border-radius:.35rem}.qgv-media img,.qgv-zoom-overlay img{-webkit-touch-callout:none;user-select:none}

@media (min-width: 1024px) {
    html body main .qgv-viewer { position: relative; padding-top: 3rem !important; }
    html body main .qgv-viewer a.qcg-close {
        position: absolute;
        top: .35rem;
        right: .5rem;
        z-index: 3;
        display: grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        font-size: 26px;
        line-height: 1;
        border: 1px solid currentColor;
        border-radius: .35rem;
        text-decoration: none;
    }
}

.qgw-file-choice:has(> .qgw-mini-preview) {
    grid-template-columns: auto 32px minmax(0,1fr);
}
.qgw-file-choice > .qgw-mini-preview {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}
