.s2b-gallery{max-width:1440px;margin:0 auto;padding:32px 22px 80px;color:#203243}.s2b-gallery a{color:#12646b}.s2b-gallery-hero{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:42px;border-radius:24px;background:linear-gradient(120deg,#143347,#12646b);color:#fff}.s2b-gallery-hero h1{margin:6px 0 12px;color:#fff;font-size:clamp(2rem,4vw,3.7rem);line-height:1.08}.s2b-gallery-hero p{margin:0;max-width:650px;color:#e4f0f0}.s2b-gallery-eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.16em;color:#d8bb76}.s2b-gallery-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.s2b-gallery-actions a{color:#fff;font-weight:700;white-space:nowrap}.s2b-gallery-primary,.s2b-gallery-filters button{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:10px;background:#d9ad51;color:#152d39!important;font-weight:800;text-decoration:none;border:0}.s2b-gallery-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:25px 0;padding:20px;border:1px solid #dce5e8;border-radius:18px;background:#f7faf9}.s2b-gallery-filters label{display:flex;flex-direction:column;gap:5px;font-size:.83rem;font-weight:700}.s2b-gallery-filters input:not([type=checkbox]),.s2b-gallery-filters select{min-width:120px;max-width:190px;height:42px;padding:7px 10px;border:1px solid #cbd8da;border-radius:8px;background:#fff;color:#203243}.s2b-gallery-filters .s2b-gallery-check{flex-direction:row;align-items:center;height:42px}.s2b-gallery-count{font-weight:700;color:#526675}.s2b-gallery-stats{padding:12px 16px;background:#eef6f4;border-radius:10px}.s2b-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.s2b-gallery-card{overflow:hidden;border:1px solid #e2e8ea;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(18,46,58,.07)}.s2b-gallery-open{display:block;position:relative;aspect-ratio:4/3;background:#e6edef}.s2b-gallery-open img,.s2b-gallery-card>img{display:block;width:100%;height:100%;object-fit:cover}.s2b-gallery-zoom{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fff;color:#163d4a}.s2b-gallery-cardbody{display:flex;flex-direction:column;gap:5px;padding:15px}.s2b-gallery-cardbody strong{font-size:1.08rem}.s2b-gallery-cardbody>a{font-size:.88rem}.s2b-gallery-cardfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.s2b-gallery-cardfoot>a{font-size:.78rem;text-align:right}.s2b-gallery-like{border:1px solid #d1dfe1;border-radius:20px;background:#fff;padding:6px 10px;color:#425c66;cursor:pointer}.s2b-gallery-like span:first-child{color:#b8495a}.s2b-gallery-like.is-liked{background:#ffe8ec;border-color:#ef9aa9;color:#9b2944}.s2b-gallery-like:disabled{opacity:.6;cursor:not-allowed}.s2b-gallery-pages{display:flex;gap:9px;justify-content:center;margin:30px}.s2b-gallery-pages a{display:grid;place-items:center;min-width:36px;height:36px;border:1px solid #b9d0d2;border-radius:8px;text-decoration:none}.s2b-gallery-pages a[aria-current]{background:#12646b;color:#fff}.s2b-gallery-placeholder{display:grid;place-items:center;min-height:180px;background:#e9f1f2;color:#567}.s2b-gallery-detail>img{display:block;max-width:100%;max-height:78vh;margin:20px auto;border-radius:14px;object-fit:contain}.s2b-gallery-viewer{width:min(96vw,1360px);max-width:none;max-height:96vh;padding:20px;border:0;border-radius:18px;background:#0d1c24;color:#fff}.s2b-gallery-viewer::backdrop{background:rgba(0,12,21,.89)}.s2b-gallery-viewer figure{margin:0;display:flex;flex-direction:column;align-items:center}.s2b-gallery-viewer img{max-width:100%;max-height:75vh;object-fit:contain}.s2b-gallery-viewer figcaption{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:center;padding:16px;text-align:center}.s2b-gallery-viewer a{color:#e7c47a}.s2b-gallery-viewer button{border:0;background:#ffffff22;color:#fff;border-radius:50%;cursor:pointer}.s2b-viewer-close{position:absolute;right:14px;top:12px;width:38px;height:38px;font-size:28px}.s2b-viewer-prev,.s2b-viewer-next{position:absolute;top:42%;width:42px;height:42px;font-size:32px}.s2b-viewer-prev{left:14px}.s2b-viewer-next{right:14px}@media(max-width:700px){.s2b-gallery{padding:14px 12px 50px}.s2b-gallery-hero{padding:24px;display:block}.s2b-gallery-actions{margin-top:20px}.s2b-gallery-filters{padding:14px}.s2b-gallery-filters label{flex:1 1 42%}.s2b-gallery-filters input:not([type=checkbox]),.s2b-gallery-filters select{max-width:none;min-width:0;width:100%}.s2b-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.s2b-gallery-cardbody{padding:10px}.s2b-gallery-cardfoot{display:block}.s2b-gallery-cardfoot>a{display:block;text-align:left;margin-top:6px}.s2b-gallery-viewer{width:100vw;max-height:100vh;height:100vh;border-radius:0;padding:52px 9px 12px}.s2b-gallery-viewer img{max-height:70vh}}
.s2b-community-ship{margin:28px 0;padding:24px;border:1px solid #d8e4e5;border-radius:18px;background:#f4f9f8}.s2b-community-ship-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.s2b-community-ship-head h2{margin:0 0 16px;font-size:1.5rem}.s2b-community-ship-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.s2b-community-ship-grid a{overflow:hidden;border-radius:10px;background:#fff;text-decoration:none;color:#233}.s2b-community-ship-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.s2b-community-ship-grid span{display:block;padding:7px 10px;font-size:.82rem}
.s2b-gallery-form{max-width:850px;margin:25px auto 65px;padding:clamp(20px,4vw,38px);border:1px solid #dce5e8;border-radius:20px;background:#fff;box-shadow:0 10px 32px rgba(18,46,58,.07)}.s2b-gallery-form .form-item{margin:0 0 20px}.s2b-gallery-form label{display:block;margin-bottom:6px;color:#203243;font-weight:700}.s2b-gallery-form input[type=text],.s2b-gallery-form input[type=date],.s2b-gallery-form input[type=file],.s2b-gallery-form textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c9d6da;border-radius:9px;background:#fff;color:#203243}.s2b-gallery-form textarea{min-height:120px}.s2b-gallery-form .description{color:#5c6b7a;font-size:.9rem}.s2b-gallery-form input[type=submit]{padding:12px 22px;border:0;border-radius:9px;background:#12646b;color:#fff;font-weight:800;cursor:pointer}.s2b-gallery-form input[type=submit]:hover{background:#0e5157}
.s2b-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.s2b-gallery-open{aspect-ratio:4/3}
.s2b-gallery-open img{object-fit:contain;background:#e9f0f2}
.s2b-gallery-cardbody{gap:9px}
.s2b-gallery-ship-link{font-size:1.08rem;font-weight:800;line-height:1.35;text-decoration:none}
.s2b-gallery-ship-link:hover{text-decoration:underline}
.s2b-gallery-meta-row{display:flex;align-items:flex-start;gap:8px;color:#425b68;font-size:.9rem;line-height:1.35}
.s2b-gallery-meta-icon{width:18px;height:18px;flex:none;color:#12646b}
.s2b-gallery-photographer{color:#415b67;font-size:.9rem}
.s2b-gallery-photographer a{font-weight:700}
@media(max-width:700px){.s2b-gallery-grid{grid-template-columns:1fr}.s2b-gallery-cardfoot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.s2b-gallery-cardfoot>a{margin-top:0}}

/* Compact public gallery; the administrator preview uses the same card and viewer styles. */
.s2b-gallery-index{max-width:1500px;padding-top:24px}
.page-route-s2b-community-gallery-gallery .block-page-title-block{display:none}
.s2b-gallery-compact-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0 22px;border-bottom:1px solid #dce7e8}
.s2b-gallery-compact-head h1{margin:3px 0 0;color:#183e4b;font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.1}
.s2b-gallery-compact-head .s2b-gallery-actions a:not(.s2b-gallery-primary){color:#12646b}
.s2b-gallery-search{margin:20px 0 12px}
.s2b-gallery-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch;gap:10px}
.s2b-gallery-searchbar>input{box-sizing:border-box;min-width:0;width:100%;height:52px;padding:0 18px;border:1px solid #c5d7da;border-radius:12px;background:#fff;color:#203243;font-size:1rem;box-shadow:0 3px 12px rgba(18,46,58,.05)}
.s2b-gallery-searchbar>input:focus,.s2b-gallery-filter-panel input:focus,.s2b-gallery-filter-panel select:focus{outline:2px solid #12646b;outline-offset:2px}
.s2b-gallery-search-submit,.s2b-gallery-filter-actions button{border:0;border-radius:11px;padding:0 22px;background:#12646b;color:#fff;font-weight:800;cursor:pointer}
.s2b-gallery-filter-popover{position:relative;z-index:20;margin:0;padding:0;border:0;background:transparent}
.s2b-gallery-filter-popover>summary{display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;height:52px;padding:0 18px;border:1px solid #a9c5ca;border-radius:11px;background:#f7faf9;color:#17535c;font-weight:800;cursor:pointer;list-style:none}
.s2b-gallery-filter-popover>summary::-webkit-details-marker{display:none}
.s2b-gallery-filter-popover>summary::before{content:'☷';font-size:1.3rem;line-height:1}
.s2b-gallery-filter-popover[open]>summary{background:#e8f3f0;border-color:#12646b}
.s2b-gallery-filter-number{display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:20px;background:#12646b;color:#fff;font-size:.72rem}
.s2b-gallery-filter-panel{position:absolute;right:0;top:calc(100% + 8px);box-sizing:border-box;width:min(600px,calc(100vw - 24px));padding:20px;border:1px solid #d7e4e5;border-radius:16px;background:#fff;box-shadow:0 18px 45px rgba(13,43,52,.2)}
.s2b-gallery-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.s2b-gallery-filter-fields label{display:flex;flex-direction:column;gap:6px;color:#294956;font-size:.85rem;font-weight:750}
.s2b-gallery-filter-fields input,.s2b-gallery-filter-fields select{box-sizing:border-box;width:100%;height:42px;padding:7px 10px;border:1px solid #c5d7da;border-radius:8px;background:#fff;color:#203243}
.s2b-gallery-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:20px}
.s2b-gallery-filter-actions button{min-height:40px;padding:0 18px}
.s2b-gallery-active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0 17px}
.s2b-gallery-filter-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:7px 11px;border:1px solid #b9d5d6;border-radius:30px;background:#edf6f4;color:#155660;text-decoration:none;font-size:.82rem;font-weight:700;overflow-wrap:anywhere}
.s2b-gallery-filter-chip span{font-size:1.1rem;line-height:1}
.s2b-gallery-clear{margin-left:4px;font-size:.85rem;font-weight:700}
.s2b-gallery-index .s2b-gallery-count{margin:12px 0 18px}
.s2b-gallery-index .s2b-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.s2b-gallery-index .s2b-gallery-cardbody{gap:7px}
.s2b-gallery-index .s2b-gallery-empty{padding:34px;border:1px dashed #b9d1d4;border-radius:14px;background:#f6faf9;color:#526675;text-align:center}
@media(max-width:950px){.s2b-gallery-index .s2b-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.s2b-gallery-compact-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.s2b-gallery-compact-head .s2b-gallery-actions{margin:0}.s2b-gallery-searchbar{grid-template-columns:minmax(0,1fr) auto}.s2b-gallery-searchbar>input{grid-column:1/-1}.s2b-gallery-search-submit{min-height:44px}.s2b-gallery-filter-popover{grid-column:2}.s2b-gallery-filter-popover>summary{height:44px}.s2b-gallery-filter-fields{grid-template-columns:1fr}.s2b-gallery-index .s2b-gallery-grid{gap:10px}.s2b-gallery-index .s2b-gallery-cardbody{padding:10px;gap:5px}.s2b-gallery-index .s2b-gallery-ship-link{font-size:.9rem}.s2b-gallery-index .s2b-gallery-meta-row,.s2b-gallery-index .s2b-gallery-photographer{font-size:.76rem}.s2b-gallery-index .s2b-gallery-meta-icon{width:15px;height:15px}.s2b-gallery-index .s2b-gallery-cardfoot>a{font-size:.72rem}}
@media(max-width:360px){.s2b-gallery-index .s2b-gallery-grid{grid-template-columns:1fr}.s2b-gallery-compact-head .s2b-gallery-actions{width:100%}}
