.gallery-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start;}.gallery-manager .gallery-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}.gallery-section-head h2{margin:0;}.gallery-section-head span{border:1px solid #383838;border-radius:3px;padding:5px 12px;color:#c2bcb2;font-size:.85rem;}.gallery-edit-items{display:grid;gap:16px;}.gallery-edit-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-top:1px solid #383838;padding-top:14px;}.gallery-edit-item figure,.memorial-gallery figure{margin:0;min-width:0;}.gallery-edit-item img,.gallery-edit-item video{width:100%;max-height:180px;object-fit:contain;display:block;border-radius:3px;background:#1c1c1c;}.gallery-edit-item figcaption,.memorial-gallery figcaption{font-size:.9rem;line-height:1.55;padding:10px 4px;color:#c2bcb2;overflow-wrap:anywhere;}.memorial-gallery{padding:clamp(20px,4vw,48px);margin-block:24px;}.memorial-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}.memorial-gallery-grid figure{padding:8px;border:1px solid #383838;background:#1c1c1c;border-radius:3px;overflow:hidden;}.memorial-gallery-grid img,.memorial-gallery-grid video{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:3px;background:#1c1c1c;}.memorial-gallery-grid video{background:#222222;aspect-ratio:16/9;}.gallery-photo{display:block;}.gallery-photo:hover img{filter:brightness(.97);}.studio-viewer .viewer-memorial-exit{display:flex;justify-content:center;flex:none;width:100%;padding-top:clamp(8px,2dvh,20px);position:relative;z-index:2;}.studio-viewer .viewer-memorial-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;padding:12px 24px;border:1px solid var(--st-gold);border-radius:3px;background:var(--st-bg);color:var(--st-ink);font:500 .9rem/1.5 system-ui,sans-serif;text-decoration:none;text-align:center;transition:background .2s,color .2s;}.studio-viewer .viewer-memorial-link:hover,.studio-viewer .viewer-memorial-link:focus-visible{background:var(--st-gold);color:#e9e5dc;}.studio-viewer .viewer-last-linked .viewer-media img,.studio-viewer .viewer-last-linked .viewer-media video{max-height:48dvh;}.studio-viewer .viewer-last-linked .viewer-media img.cinema-photo-fit{--photo-height:max(85px,min(48dvh,calc(100dvh - 2 * var(--cinema-space) - 125px)));}
@media(max-width:700px){.gallery-manager-grid{grid-template-columns:1fr;}.memorial-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.memorial-gallery-grid.gallery-videos{grid-template-columns:1fr;}.studio-viewer .viewer-memorial-link{font-size:.82rem;padding:10px 16px;}.studio-viewer .viewer-last-linked .viewer-media img{max-height:44dvh;}}
