:root{color-scheme:light;--ink:#20352f;--muted:#5f6f68;--green:#1e5646;--line:#d7e1db;--mint:#d8f2e5;--paper:#fff;--gold:#936a12;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f4f8f5;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button,select{border:1px solid var(--line);background:white;color:var(--ink);border-radius:7px;padding:.65rem .95rem;line-height:1.35}button:hover{border-color:var(--green);background:#edf6f0}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #30886b;outline-offset:3px}a{color:var(--green);text-underline-offset:3px}input{min-width:0;border:1px solid #a9bdb0;border-radius:6px;padding:.8rem;width:100%;background:white;color:var(--ink)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.topbar{padding:1rem clamp(1rem,3vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.65rem;font-weight:800;text-decoration:none}.brand img{width:33px;height:33px}main{max-width:1800px;margin:auto;padding:1.8rem clamp(1rem,3vw,3rem) 1rem}.heading{margin-bottom:1.3rem}h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.025em;font-size:clamp(2rem,3vw,3rem);line-height:1.1;margin:0}.view-tabs{display:flex;gap:1.4rem;border-bottom:1px solid var(--line);margin-bottom:1rem}.view-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:.7rem .1rem;font-weight:600}.view-tabs button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green)}.view-tabs span{font-size:.8rem;margin-left:.3rem;padding:.05rem .4rem;background:#e4ede7;border-radius:4px}.view-tabs span:empty{display:none}.toolbar{display:flex;align-items:center;gap:.7rem}.toolbar form{display:flex;align-items:center;gap:.4rem;flex:1;background:white;border:1px solid #b7c9be;border-radius:8px;padding:.3rem}.toolbar form>span{font-size:1.7rem;margin-left:.5rem}.toolbar input{border:0;padding:.5rem;min-width:120px}.toolbar form button{border:0;background:#e9f3ed}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:600}.primary:hover{color:white;background:#163f33}.size-label{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.875rem}.size-label select{max-width:170px}.topics{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;padding:1rem 0 .6rem;font-size:.875rem}.topics button,.tag-filters button{padding:.35rem .65rem;border-radius:5px;font-size:.875rem;background:transparent}.topics button.active,.tag-filters button.active{background:var(--green);color:white}.results-bar{display:flex;align-items:center;gap:1rem;min-height:3.6rem}.results-bar p{margin:0;color:var(--muted);font-size:.875rem}.text-button{border:0;padding:.3rem;color:var(--green);text-decoration:underline;background:transparent;font-size:.875rem}.tag-filters{display:flex;gap:.45rem;flex-wrap:wrap;margin:0 0 .8rem}.tag-filters:empty{display:none}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1.5rem}.gallery.single{grid-template-columns:minmax(0,1fr);max-width:1280px;margin:auto}.photo-card{min-width:0;background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.photo-stage{background:#17231f;position:relative;display:flex;align-items:center;justify-content:center;min-height:240px}.photo-stage img{width:100%;height:clamp(330px,36vw,650px);object-fit:contain;display:block}.single .photo-stage img{height:76vh;min-height:380px;max-height:1000px}.expand-image{position:absolute;bottom:12px;right:12px;background:#fffef0e8;font-size:.8rem;padding:.4rem .6rem}.photo-info{padding:1rem 1.15rem 1.2rem}.photo-topline{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.8rem}.photo-date{font-size:.8rem;color:var(--muted)}.star-button{font-size:.875rem;white-space:nowrap}.star-button.saved{color:#755008;background:#fff4cc;border-color:#dfc77e}.caption{font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;font-weight:400;line-height:1.5;margin:.5rem 0;overflow-wrap:anywhere}.card-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin:.8rem 0}.card-tags button{font-size:.8rem;padding:.25rem .45rem;border:0;background:#eef4ef;color:#365f4b}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.8rem;font-size:.8rem;color:var(--muted)}.photo-details{font-size:.875rem;color:var(--muted);line-height:1.6;margin-top:.8rem}.photo-details summary{cursor:pointer;color:var(--green);width:fit-content}.photo-details p{margin:.5rem 0;overflow-wrap:anywhere}.photo-error{color:#fff;padding:2rem;text-align:center}.pagination{display:flex;justify-content:center;gap:1.2rem;align-items:center;margin:2rem 0;font-size:.875rem}.empty{padding:3rem 1.5rem;text-align:center;border:1px dashed #b7c9be;border-radius:8px;background:#fff}.empty h2{font-size:1.4rem;margin-top:0}.empty p{color:var(--muted);line-height:1.6}.album-panel{background:#e4f1e9;padding:1rem 1.2rem;margin-top:1rem;border:1px solid #bbd3c5;border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.album-actions{display:flex;gap:.5rem;flex-wrap:wrap}dialog{color:var(--ink);border:1px solid #adc3b5;border-radius:12px;padding:1.5rem;width:calc(100% - 2rem);max-width:540px;max-height:90dvh;overflow:auto;box-shadow:0 20px 100px #00180e44}dialog::backdrop{background:#061e17a8;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.dialog-heading h2{margin:0;font-family:Georgia,serif;font-weight:500;font-size:1.7rem}.icon-button{font-size:1.5rem;border:0;padding:.15rem .5rem}dialog label:not(.check){display:block;margin:.8rem 0 .5rem;font-weight:600;font-size:.875rem}.check{display:flex;align-items:center;gap:.6rem;padding:.8rem 0}.check input{width:20px;height:20px;accent-color:var(--green)}.label-note{font-weight:400;color:var(--muted)}.check small{color:var(--muted);font-size:.8rem;margin-left:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.error{color:#a3332f;font-size:.875rem;line-height:1.5}.error:empty{display:none}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:#143c2f;color:white;padding:.85rem 1.25rem;border-radius:8px;box-shadow:0 3px 18px #0002;max-width:calc(100% - 2rem);z-index:10;font-size:.875rem}.image-dialog{max-width:96vw;width:96vw;height:94dvh;max-height:94dvh;background:#14231d;border:0;color:white;padding:1rem}.image-dialog-bar{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.image-dialog-bar p{font-size:.875rem;margin:.5rem 0;line-height:1.5;max-width:90ch}.image-scroll{overflow:auto;height:calc(100% - 6rem);display:grid;place-items:start center}.image-scroll img{max-width:none;min-width:min(100%,1024px);height:auto}.loading{padding:5rem 1rem;text-align:center;color:var(--muted);grid-column:1/-1}.remove-photo{color:#9b3c2d}.share-field{display:block;width:100%;margin-top:.75rem;font-size:.8rem}@media(min-width:1600px){.photo-stage img{height:620px}}@media(max-width:900px){.heading{align-items:start}.toolbar{flex-wrap:wrap}.toolbar form{flex-basis:100%}.size-label{margin-left:auto}.gallery{gap:1rem}.photo-stage img{height:360px}.photo-topline{flex-wrap:wrap}.album-panel{align-items:start;flex-direction:column}}@media(max-width:650px){.topbar{padding:.8rem 1rem}main{padding-top:1.3rem}.heading{margin-bottom:1rem}.view-tabs{gap:1.2rem}.view-tabs button{font-size:.9rem}.toolbar>.primary{font-size:.875rem}.size-label{font-size:.8rem;gap:.3rem}.size-label select{font-size:.8rem;padding:.65rem .4rem;max-width:135px}.gallery{grid-template-columns:minmax(0,1fr)}.photo-stage img{height:auto;max-height:75vh;min-height:260px}.single .photo-stage img{height:auto;min-height:260px;max-height:80vh}.topics{gap:.4rem}.photo-info{padding:.9rem}.caption{font-size:1.1rem}.results-bar{flex-wrap:wrap;gap:.3rem;padding:.7rem 0}.album-actions button{font-size:.8rem}.image-dialog-bar p{max-height:5rem;overflow:auto}.image-scroll img{min-width:0;width:1024px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}.photo-card{animation:appear .2s ease-out}@keyframes appear{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}}
