.hosted-gallery{--gallery-gold:var(--gold);margin-top:28px}
.hosted-gallery-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.hosted-gallery-tabs button,.hosted-gallery-more{font:inherit;font-size:16px;line-height:1.4;min-height:54px;padding:12px 18px;border:1px solid var(--line);border-radius:var(--radius-control);background:transparent;color:inherit;cursor:pointer}
.hosted-gallery-tabs button[aria-selected=true]{background:var(--red);border-color:var(--red);color:#fff}
.hosted-gallery a:focus-visible,.hosted-gallery button:focus-visible,.hosted-gallery [data-gallery-panel]:focus-visible{outline:3px solid var(--gallery-gold);outline-offset:4px}
.hosted-gallery-status{font-size:16px;color:var(--muted);margin:0 0 16px}
.hosted-gallery-grid{display:block;columns:3;column-gap:18px}
.hosted-gallery-card{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 18px;padding:0;overflow:hidden;border:0;border-radius:var(--radius-card);background:transparent;cursor:zoom-in;text-decoration:none}
.hosted-gallery-card img{display:block;width:100%;height:auto;max-width:100%;border-radius:inherit}
.hosted-gallery-card.has-image-error{min-height:120px;background:var(--surface);color:var(--muted)}
.hosted-gallery-more{display:block;margin:26px auto 0}
.hosted-gallery [hidden],.hosted-gallery-viewer[hidden]{display:none!important}
body.hosted-gallery-open{overflow:hidden}
.hosted-gallery-viewer{position:fixed;z-index:2147483000;inset:0;box-sizing:border-box;display:none;width:100%;height:100%;margin:0;padding:70px 72px 25px;border:0;border-radius:0!important;background:rgba(8,10,8,.97);color:#fff;overscroll-behavior:contain}
.hosted-gallery-viewer.is-open{display:grid;grid-template-columns:1fr;align-items:stretch}
.hosted-gallery-viewer figure{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:0;height:100%;margin:0;gap:8px}
.hosted-gallery-stage{flex:1;display:flex;align-items:center;justify-content:center;width:100%;min-height:0}
.hosted-gallery-viewer .hosted-gallery-stage img{display:block;flex:0 1 auto;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:var(--radius-control);box-shadow:0 16px 70px #0005}
.hosted-gallery-viewer figcaption{flex-shrink:0;text-align:center;font:16px/1.5 var(--font-body,sans-serif);color:var(--text)}
.hosted-gallery-viewer [data-gallery-message]{margin:0;max-width:600px;text-align:center;font:16px/1.4 var(--font-body,sans-serif);color:var(--muted)}
.hosted-gallery-viewer [data-gallery-message]:empty{display:none}
.hosted-gallery-viewer [data-gallery-original]{flex-shrink:0;color:var(--muted);font:16px/1.5 var(--font-body,sans-serif);text-decoration:underline;text-underline-offset:4px}
.hosted-gallery-viewer button{position:absolute;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffff40;border-radius:var(--radius-control);background:#ffffff0d;color:#fff;font:26px/1 var(--font-body,sans-serif);cursor:pointer}
.hosted-gallery-viewer button:hover{background:var(--gold);color:var(--bg)}
.hosted-gallery-viewer button:disabled{opacity:.25;cursor:default}
.hosted-gallery-viewer :is(button,a):focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.hosted-gallery-close{top:14px;right:20px}
.hosted-gallery-prev{top:calc(50% - 23px);left:14px}
.hosted-gallery-next{top:calc(50% - 23px);right:14px}
@media(max-width:900px){.hosted-gallery-grid{column-count:2}}
@media(max-width:560px){.hosted-gallery-tabs{flex-wrap:nowrap;overflow-x:auto;padding:4px 4px 12px}.hosted-gallery-tabs button{flex-shrink:0;font-size:16px}.hosted-gallery-grid{columns:2;column-gap:10px}.hosted-gallery-card{margin-bottom:10px}.hosted-gallery-viewer{padding:64px 10px 75px}.hosted-gallery-viewer button{width:48px;height:48px}.hosted-gallery-prev,.hosted-gallery-next{top:auto;bottom:16px}.hosted-gallery-prev{left:calc(50% - 52px)}.hosted-gallery-next{right:calc(50% - 52px)}.hosted-gallery-close{right:12px;top:12px}.hosted-gallery-viewer figcaption{font-size:16px}}
@media(max-width:360px){.hosted-gallery-grid{column-count:1}}

.angel-office-gallery .hosted-gallery-grid{column-count:2}
.angel-office-gallery .hosted-gallery{margin-top:24px}
@media(max-width:480px){.angel-office-gallery .hosted-gallery-grid{column-count:1}}

.hosted-gallery .hosted-gallery-more{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;margin:28px 0 0;padding:16px 24px;border-color:var(--gold);color:var(--gold);font-weight:600;text-align:center}.hosted-gallery .hosted-gallery-more:hover{background:#d7b77318}

.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-grid{display:flex;columns:auto;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:var(--radius-card)}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-grid::-webkit-scrollbar{display:none}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-card{flex:0 0 100%;width:100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;background:#101310}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-status{display:none}
.office-slide-controls{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:16px;color:var(--gold);font-size:16px}
.office-slide-controls button{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--gold);cursor:pointer}.office-slide-controls button:hover{border-color:var(--gold)}.office-slide-controls svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Fill the office frame; gestures change slides without opening the viewer. */
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-card img{aspect-ratio:16/9;object-fit:cover;object-position:center}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-grid{touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;-webkit-user-select:none}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-grid:active{cursor:grabbing}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-card{cursor:inherit}
.hosted-gallery[data-gallery-layout=slider] .hosted-gallery-card img{-webkit-user-drag:none}
