@charset "UTF-8";

.habitat-card{flex-direction:column;cursor:default}
.habitat-card-body{flex:1;cursor:pointer;border-bottom:0}
.habitat-gallery-actions{padding:0 26px 26px;background:#fafbf6;border:1px solid var(--line);border-top:0}
.habitat-card:hover .habitat-gallery-actions{border-color:#8c9b7f}
.habitat-card>input:checked~.habitat-gallery-actions{background:#eef2e3;border-color:#738854}
.habitat-gallery-open{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:50px;padding:12px 0 0;margin-top:25px;color:#33472a;background:none;border:0;border-top:1px solid #cad2c0;font-size:16px;line-height:1.45;text-align:left}
.habitat-gallery-open svg{flex-shrink:0}
.habitat-gallery-open:hover{color:#5e7c30}
.habitat-gallery-count{margin-left:auto;font-family:var(--mono);font-size:12px;color:#647456}
.habitat-gallery-fallback{display:block;margin-top:12px;min-height:44px;text-decoration:underline;font-size:14px;color:#506542}
.habitat-gallery-concept-note{margin-top:12px}
.habitat-gallery-dialog{width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100svh - 48px);padding:24px;margin:auto;border:1px solid #6e7e60;background:#f4f5ef;color:var(--ink);overflow:auto;overscroll-behavior:contain;border-radius:0;box-shadow:0 24px 90px #07140c40}
.habitat-gallery-dialog::backdrop{background:#101b17de;backdrop-filter:blur(5px)}
.habitat-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.habitat-gallery-header h2{font-size:clamp(23px,2.5vw,33px);line-height:1.3;letter-spacing:-.035em}
.habitat-gallery-close{flex-shrink:0;display:grid;place-items:center;width:46px;height:46px;padding:10px;background:transparent;border:1px solid #bac5ae;color:#35482e}
.habitat-gallery-close:hover,.habitat-gallery-nav:hover{background:#e5ebd9}
.habitat-gallery-figure{margin:18px 0 0}
.habitat-gallery-stage{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/9;max-height:56svh;min-height:180px;overflow:hidden;background:#e3e7dc}
.habitat-gallery-image{width:100%;height:100%;max-height:56svh;object-fit:contain}
.habitat-gallery-load-status{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-size:16px;color:#4b5f3d;padding:25px}
.habitat-gallery-load-status:empty{display:none}
.habitat-gallery-caption{font-size:16px;line-height:1.55;color:#4d6041;padding-top:16px}
.habitat-gallery-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:19px;padding-block:16px;border-block:1px solid var(--line)}
.habitat-gallery-nav{display:flex;align-items:center;justify-content:center;gap:13px;min-height:46px;padding:9px 15px;background:none;border:1px solid #bac5ae;color:#35482e;font-size:15px;line-height:1.45}
.habitat-gallery-nav [aria-hidden]{font-size:22px;line-height:1}
.habitat-gallery-position{font-family:var(--mono);font-size:14px;white-space:nowrap;color:#596b4c}
.habitat-gallery-note{margin-top:18px;max-width:900px;font-size:14px;line-height:1.65;color:#5e6f52}
.habitat-gallery-original{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin-top:8px;font-size:14px;color:#3e5830;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1000px){.habitat-gallery-actions{padding:0 22px 22px}}
@media(max-width:640px){.habitat-gallery-actions{padding:0 20px 20px}.habitat-gallery-open{font-size:15px;gap:10px;margin-top:20px}.habitat-gallery-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px);padding:16px}.habitat-gallery-header{gap:12px;padding-bottom:14px}.habitat-gallery-header h2{font-size:22px}.habitat-gallery-close{width:44px;height:44px}.habitat-gallery-figure{margin-top:14px}.habitat-gallery-stage{aspect-ratio:4/3;max-height:48svh}.habitat-gallery-image{max-height:48svh}.habitat-gallery-caption{font-size:15px}.habitat-gallery-navigation{gap:9px;margin-top:16px;padding-block:14px}.habitat-gallery-nav{font-size:14px;gap:7px;padding:9px 10px}.habitat-gallery-position{font-size:13px}.habitat-gallery-note{font-size:13px}.habitat-gallery-original{font-size:13px}}
@media(prefers-reduced-motion:reduce){.habitat-gallery-dialog::backdrop{backdrop-filter:none}}
