/* Cover-only square grid; independent of legacy ratio and caption layouts. */
body .gallery-page .portfolio-grid,body .work-grid-r9{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
body .work-tile-r9,body .work-tile-r9:hover,body .portfolio-v75:has(.portfolio-card:hover) .work-tile-r9{display:block!important;position:relative!important;aspect-ratio:1!important;width:100%!important;height:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #dce4e1!important;border-radius:16px!important;box-shadow:none!important;transform:none!important;background:var(--v85-lime,#ddede5)!important}
body .work-tile-r9 .work-cover-r9{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;cursor:pointer;background:transparent!important;color:var(--v85-ink,#28363b)!important}
body .work-tile-r9 .work-media{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;aspect-ratio:1!important;margin:0!important;padding:0!important;overflow:hidden!important;background:var(--v85-lime,#ddede5)!important}
body .work-tile-r9 .work-media img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;border-radius:0!important;opacity:1!important;filter:none!important;transition:transform .2s}
body .work-tile-r9 .work-cover-r9:hover img{transform:scale(1.025)}
body .work-tile-r9 .work-cover-r9:focus-visible{outline:3px solid var(--v85-ink,#28363b)!important;outline-offset:-5px}
.work-cover-placeholder{display:grid;width:100%;height:100%;place-items:center}.work-cover-placeholder .va-icon{font-size:48px}
body .gallery-service-filter-r9{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 24px;padding:0;background:transparent;border:0}
body .gallery-service-filter-r9 button{width:auto;min-height:44px;border:1px solid #c7d8d1!important;border-radius:12px!important;padding:8px 14px!important;background:#fff!important;color:var(--v85-ink,#28363b)!important;font:inherit;font-size:13px;cursor:pointer}
body .gallery-service-filter-r9 button[aria-pressed=true]{background:var(--v85-lime,#ddede5)!important;border-color:#7baa99!important;font-weight:700;box-shadow:inset 0 -3px #7baa99!important}
body dialog.work-dialog-r9{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--v85-base,#fafbf8)!important;color:var(--v85-ink,#28363b)!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:none!important;z-index:2147483647}
body dialog.work-dialog-r9[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important}
.work-dialog-r9::backdrop{background:color-mix(in srgb,var(--v85-ink,#28363b) 60.0%,transparent)}
body .work-dialog-r9 .work-header-r9{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #dce4e1;background:var(--v85-base,#fafbf8)}
body .work-dialog-r9 h2{margin:0!important;color:var(--v85-ink,#28363b)!important;font-size:18px!important;line-height:1.7!important;overflow-wrap:anywhere!important;max-height:15vh;overflow:auto}
body .work-dialog-r9 .work-close-r9{flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;border:1px solid #c7d8d1!important;border-radius:12px!important;padding:0!important;font-size:30px!important;line-height:1!important;background:var(--v85-lime,#ddede5)!important;color:var(--v85-ink,#28363b)!important;cursor:pointer}
body .work-dialog-r9 .work-stage-r9{position:relative;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#edf3ef;padding:10px 16px}
body .work-dialog-r9 .work-stage-r9 img,body .work-dialog-r9 .work-stage-r9 video{display:block!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;margin:0!important;background:transparent!important}
body .work-dialog-r9 .work-stage-r9 audio{width:min(90%,700px)}
body .work-dialog-r9 .work-footer-r9{padding:12px max(16px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-height:35vh;overflow:auto;background:var(--v85-base,#fafbf8);border-top:1px solid #dce4e1}
body .work-dialog-r9 .work-caption-r9,body .work-dialog-r9 .work-status-r9{font-size:14px!important;line-height:1.8!important;color:var(--v85-ink,#28363b)!important;margin:0 0 10px!important;overflow-wrap:anywhere}
body .work-dialog-r9 .work-status-r9:empty{display:none}
body .work-dialog-r9 .work-actions-r9{display:flex;flex-wrap:wrap;gap:10px}
body .work-dialog-r9 .work-action-r9,body .work-dialog-r9 .work-slides-r9 button{display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;margin:0!important;padding:8px 18px!important;border:1px solid #c7d8d1!important;border-radius:12px!important;background:var(--v85-ice,#e2edf7)!important;color:var(--v85-ink,#28363b)!important;font:inherit!important;text-decoration:none!important;cursor:pointer}
body .work-dialog-r9 .work-order-r9,body .work-dialog-r9 .work-slides-r9{background:var(--v85-lime,#ddede5)!important}
body .work-dialog-r9 .work-slides-r9{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:4px;border:1px solid #c7d8d1;border-radius:14px;color:var(--v85-ink,#28363b);direction:ltr}
body .work-dialog-r9 .work-slides-r9 button{font-size:26px!important;padding:0!important;width:44px!important}
body .work-dialog-r9 [hidden]{display:none!important}
body .work-dialog-r9 .work-stage-r9:fullscreen{width:100%;height:100%;padding:0;background:var(--v85-ink,#28363b)}
@media(max-width:760px){body .gallery-page .portfolio-grid,body .work-grid-r9{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body .work-tile-r9{border-radius:12px!important}body .gallery-service-filter-r9{gap:6px}body .gallery-service-filter-r9 button{font-size:12px;padding:6px 10px!important}body .work-dialog-r9 h2{font-size:15px!important}body .work-dialog-r9 .work-stage-r9{padding:8px}body .work-dialog-r9 .work-caption-r9{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){body .work-tile-r9 img{transition:none!important}}
