.gos-gallery-admin{max-width:1100px}.gos-gallery-admin form{background:#fff;border:1px solid #dcdcde;padding:24px;margin:24px 0}.gg-fields{display:flex;gap:28px;flex-wrap:wrap}.gos-gallery-admin input:not([type=checkbox]),.gos-gallery-admin select,.gos-gallery-admin button,.gos-gallery-admin .button{min-height:44px}.gg-picker{display:block;border:2px dashed #927238;padding:24px;font-weight:600}.gg-picker input{display:block;margin-top:14px;max-width:100%}.gg-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(75px,1fr));gap:8px}.gg-preview img{width:100%;height:75px;object-fit:cover}#gg-errors{color:#b32d2e}/* Shared with material typography; four columns on desktop, three on tablet, two on mobile. */
.gg-caption-list{display:grid;gap:16px;margin-bottom:24px}.gg-caption-list label{display:flex;gap:16px;align-items:center;background:#fff;padding:12px}.gg-caption-list img{width:90px;height:75px;object-fit:cover}.gg-caption-list span{flex:1;min-width:0;overflow-wrap:anywhere}.gg-caption-list textarea{display:block;width:100%;margin-top:8px}
.gos-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(140px,17vw,255px);grid-auto-flow:row;gap:0;margin:clamp(24px,3vw,42px) 0;border-top:1px solid var(--gold);border-left:1px solid var(--gold)}
.gos-single-copy a.gos-gallery-photo{position:relative;display:block;min-width:0;min-height:0;isolation:isolate;aspect-ratio:auto;border-right:1px solid var(--gold);border-bottom:1px solid var(--gold);color:var(--ivory);-webkit-tap-highlight-color:transparent;outline:0}
.gos-gallery-photo::after{content:"";position:absolute;inset:0;border:1px solid transparent;z-index:3;pointer-events:none;transition:border-color .2s}.gos-gallery-photo:hover::after,.gos-gallery-photo:focus-visible::after,.gos-gallery-photo:active::after,.gos-gallery-photo.is-touching::after{border-color:#fff}
.gos-gallery-photo--large{grid-column:span 2;grid-row:span 2}.gos-gallery-photo--portrait{grid-row:span 2}.gos-gallery-photo--landscape{grid-column:span 2}.gos-gallery-grid img{display:block;width:100%;height:100%;object-fit:cover;transform:none!important}
.gos-gallery-tooltip{position:absolute;bottom:12px;left:12px;right:12px;padding:10px 13px;background:rgba(16,15,19,.94);border:1px solid var(--gold);color:var(--ivory);font:inherit;font-size:.8em;line-height:1.6;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .2s,transform .2s,visibility .2s;z-index:2;overflow-wrap:anywhere;max-height:65%;overflow:auto}.gos-gallery-photo:hover .gos-gallery-tooltip,.gos-gallery-photo:focus-visible .gos-gallery-tooltip{opacity:1;visibility:visible;transform:none}
.gos-gallery-dialog{position:fixed;inset:0;box-sizing:border-box;max-width:none;max-height:none;width:100%;height:100dvh;margin:0;padding:0;border:0;background:rgba(9,8,12,.94);color:var(--ivory);font-family:Arial,'Segoe UI',sans-serif;font-size:clamp(16px,1.25vw,19px);line-height:1.85;overflow:hidden}.gos-gallery-dialog[open]{display:flex;align-items:center;justify-content:center}.gos-gallery-dialog::backdrop{background:rgba(9,8,12,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.gos-gallery-blur{position:absolute;inset:-40px;background-position:center;background-size:cover;filter:blur(28px) brightness(.22);pointer-events:none}.gos-gallery-dialog figure{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;width:calc(100% - 140px);height:calc(100dvh - 128px);max-width:none;margin:0;pointer-events:none}.gos-gallery-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0}.gos-gallery-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 12px 60px rgba(0,0,0,.5)}
.gos-gallery-dialog .gos-gallery-caption{flex:none;text-align:center;padding:12px 0 0;max-height:22dvh;overflow:auto;overflow-wrap:anywhere;pointer-events:auto;color:var(--ivory);font:inherit;line-height:inherit}.gos-gallery-dialog .gos-photo-close{z-index:4;position:absolute;top:clamp(10px,2vh,25px);right:clamp(10px,2vw,30px);width:36px;height:36px;min-width:36px;min-height:36px;padding:7px;display:grid;place-items:center;background:rgba(16,15,19,.55);border:0;border-radius:0;color:var(--gold)}.gos-gallery-dialog .gos-photo-close svg{width:22px;height:22px}.gos-gallery-dialog .gos-photo-close:hover,.gos-gallery-dialog .gos-photo-close:focus-visible{color:#fff}
.gos-gallery-dialog .gos-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:10px;color:var(--gold);background:rgba(16,15,19,.55);border:0;border-radius:0;cursor:pointer;transition:color .2s;-webkit-tap-highlight-color:transparent}.gos-gallery-arrow svg{display:block;width:22px;height:22px}.gos-gallery-dialog .gos-gallery-arrow:hover,.gos-gallery-dialog .gos-gallery-arrow:focus-visible{color:#fff;outline:1px solid #fff}.gos-gallery-dialog [data-gallery-prev]{left:clamp(10px,2vw,30px)}.gos-gallery-dialog [data-gallery-next]{right:clamp(10px,2vw,30px)}
.gos-gallery-counter{position:absolute;bottom:14px;left:0;right:0;text-align:center;z-index:2;margin:0!important;pointer-events:none}
@media(min-width:621px) and (max-width:1000px){.gos-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:22vw}}
@media(max-width:620px){.gos-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:43vw}.gos-gallery-dialog{font-size:16px;line-height:1.8}.gos-gallery-dialog figure{width:100%;height:calc(100dvh - 120px);max-width:none;margin:0}.gos-gallery-dialog .gos-gallery-caption{padding:12px 20px 0}.gos-gallery-blur{display:none}.gos-gallery-dialog .gos-gallery-arrow{background:rgba(16,15,19,.4)}.gos-gallery-dialog [data-gallery-prev]{left:0}.gos-gallery-dialog [data-gallery-next]{right:0}}
@media(hover:none){.gos-gallery-photo:hover .gos-gallery-tooltip{visibility:hidden;opacity:0}.gos-gallery-photo:active .gos-gallery-tooltip,.gos-gallery-photo.is-touching .gos-gallery-tooltip{visibility:visible;opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.gos-gallery-photo::after,.gos-gallery-tooltip,.gos-gallery-dialog .gos-gallery-arrow{transition:none}}


@media(max-width:620px){.gos-gallery-admin form{padding:16px}.gos-gallery-admin .button-hero{width:100%;margin-bottom:12px}}

/* One mosaic at every viewport size; JavaScript sets square cell dimensions. */
 .gos-gallery-grid.has-mosaic .gos-gallery-photo{overflow:hidden}.gos-gallery-grid.has-mosaic img{aspect-ratio:auto;object-fit:cover;object-position:center}

.gos-gallery-grid .gos-gallery-photo[hidden]{display:none}
