:is(.article-page,.project-detail-page) a[data-article-photo]{position:relative;cursor:zoom-in;display:block;border-radius:14px;overflow:hidden}
:is(.article-page,.project-detail-page) a[data-article-photo]::after{content:"";position:absolute;top:12px;right:12px;width:34px;height:34px;box-sizing:border-box;border:1px solid #ffffff70;border-radius:10px;background:#17392de0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M10.5 7.5v6m-3-3h6'/%3E%3C/svg%3E") center/20px 20px no-repeat;box-shadow:0 2px 10px #10271d33;backdrop-filter:blur(4px);pointer-events:none;transition:background-color .18s,box-shadow .18s}
:is(.article-page,.project-detail-page) a[data-article-photo]:hover::after,:is(.article-page,.project-detail-page) a[data-article-photo]:focus-visible::after{background-color:#17392d;box-shadow:0 3px 14px #10271d55}
@media(max-width:600px){:is(.article-page,.project-detail-page) a[data-article-photo]::after{top:10px;right:10px}}
@media(prefers-reduced-motion:reduce){:is(.article-page,.project-detail-page) a[data-article-photo]::after{transition:none}}
@media print{:is(.article-page,.project-detail-page) a[data-article-photo]::after{display:none}}
:is(.article-page,.project-detail-page) a[data-article-photo]:focus-visible{outline:3px solid #6a9156;outline-offset:4px}
dialog.hw-photo-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#0b1815f5;color:#fff;overflow:hidden}
dialog.hw-photo-dialog::backdrop{background:#0b1815}
.hw-photo-dialog .hw-photo-header{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 16px 8px;gap:16px}
.hw-photo-dialog button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:9px;border:1px solid #ffffff38;border-radius:12px;background:#243a33;color:#fff;font:500 22px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.hw-photo-dialog button:hover{background:#365245}.hw-photo-dialog button:disabled{opacity:.35;cursor:default}
.hw-photo-dialog button:focus-visible{outline:3px solid #b6d6a2;outline-offset:3px}
.hw-photo-dialog .hw-photo-count{font:500 14px/1.4 system-ui,sans-serif;color:#d5e2d7}
.hw-photo-dialog .hw-photo-stage{position:absolute;inset:calc(70px + env(safe-area-inset-top)) 12px calc(132px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:zoom-in}
.hw-photo-dialog .hw-photo-stage.is-zoomed{cursor:grab}
.hw-photo-dialog .hw-photo-stage img{display:block;flex:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:0;transform-origin:center;user-select:none;-webkit-user-drag:none;will-change:transform}
.hw-photo-dialog .hw-photo-footer{position:absolute;inset:auto 12px 0;display:flex;align-items:center;flex-direction:column;gap:10px;padding-bottom:calc(14px + env(safe-area-inset-bottom));font-family:system-ui,sans-serif}
.hw-photo-dialog .hw-photo-caption{font-size:13px;line-height:1.5;color:#d5e2d7;max-width:760px;max-height:40px;overflow:auto;margin:0;text-align:center}
.hw-photo-dialog .hw-photo-controls{display:flex;align-items:center;justify-content:center;gap:10px}
.hw-photo-dialog .hw-photo-reset{font-size:13px;min-width:66px}
.hw-photo-dialog .hw-photo-thumbs{position:relative;display:flex;align-items:center;gap:8px;width:100%;max-width:960px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding:4px 3px 7px;scrollbar-width:thin;scrollbar-color:#8ca783 transparent;overscroll-behavior-x:contain;touch-action:pan-x}
.hw-photo-dialog .hw-photo-thumbs[hidden]{display:none}
.hw-photo-dialog button.hw-photo-thumb{position:relative;display:block;flex:0 0 76px;min-width:76px;width:76px;height:58px;min-height:58px;padding:2px;border:2px solid #6a81745c;border-radius:9px;background:#eaf0e6;overflow:hidden;touch-action:pan-x;opacity:.72}
.hw-photo-dialog .hw-photo-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}
.hw-photo-dialog .hw-photo-thumb span{position:absolute;right:2px;bottom:2px;min-width:17px;padding:2px 4px;border-radius:4px;background:#10271de6;color:#fff;font:600 10px/1.2 system-ui,sans-serif}
.hw-photo-dialog button.hw-photo-thumb[aria-current]{border-color:#d3efb9;box-shadow:0 0 0 1px #d3efb9;opacity:1}
.hw-photo-dialog button.hw-photo-thumb:hover{opacity:1;background:#f3f8ef}
.hw-photo-dialog button.hw-photo-thumb:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.hw-photo-dialog .hw-photo-error{position:absolute;left:16px;right:16px;top:45%;font:15px/1.5 system-ui,sans-serif;text-align:center;pointer-events:none}
.hw-photo-dialog .hw-photo-error[hidden]{display:none}
@media(max-width:600px){.hw-photo-dialog .hw-photo-stage{left:0;right:0}.hw-photo-dialog .hw-photo-controls{gap:8px}.hw-photo-dialog .hw-photo-caption{font-size:12px}}
@media(max-height:500px) and (min-width:480px){
.hw-photo-many .hw-photo-stage{right:104px}
.hw-photo-many .hw-photo-footer{right:104px;gap:7px;padding-bottom:10px}
.hw-photo-many .hw-photo-caption{max-height:20px;font-size:11px}
.hw-photo-many .hw-photo-thumbs{position:fixed;top:70px;right:10px;bottom:10px;width:82px;max-width:none;flex-direction:column;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;padding:4px}
.hw-photo-many button.hw-photo-thumb{flex-basis:54px;width:70px;min-width:70px;min-height:54px;height:54px;touch-action:pan-y}
}
@media print{dialog.hw-photo-dialog{display:none!important}}
