.gallery-page{max-width:1440px;margin:auto;padding:40px 6% 90px}.back-home{font-size:14px;text-decoration:underline;text-underline-offset:4px}.gallery-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:45px;margin:40px 0 55px}.gallery-heading h1{font-size:clamp(36px,4.5vw,64px);margin:0}.gallery-heading>p{max-width:310px;color:#526153;margin:0 0 8px}.gallery-group{margin:0 0 55px}.group-heading{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);margin-bottom:25px;padding-bottom:15px}.group-heading h2{font-size:25px;letter-spacing:-.7px;margin:0}.group-heading span{background:var(--yellow);padding:3px 10px;border-radius:20px;font-size:12px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.photo-card{margin:0;min-width:0}.photo-open{display:block;width:100%;border:1px solid #23453220;padding:10px;background:#eef0e5;border-radius:12px;cursor:zoom-in;overflow:hidden;aspect-ratio:4/3;transition:border-color .2s,box-shadow .2s}.photo-open:hover{border-color:#a77b23;box-shadow:0 5px 18px #23453215}.photo-open img{display:block;width:100%;height:100%;object-fit:contain;border-radius:5px}.photo-card figcaption{font-size:14px;margin:10px 0 0;color:#526153}.gallery-status{color:#526153}#photo-dialog{border:0;padding:0;width:min(1200px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;background:var(--paper);border-radius:16px;color:var(--ink)}#photo-dialog::backdrop{background:#102419df}.viewer{display:flex;flex-direction:column;height:100%;padding:18px;gap:12px}.viewer-top,.viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0}.viewer button{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:10px 17px;border-radius:100px;cursor:pointer;font-size:14px}.viewer button:hover{background:var(--yellow);border-color:var(--yellow)}#photo-close span{font-size:20px;margin-left:8px}#photo-counter{font-size:14px}.viewer-photo{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}.viewer-photo img{display:block;width:100%;height:100%;object-fit:contain}.viewer-photo p{position:absolute;bottom:5px;padding:8px;background:var(--paper);font-size:13px}.viewer-bottom p{text-align:center;font-size:14px;line-height:1.4;margin:0}.viewer button:disabled{opacity:.4;cursor:default}body.photo-viewing{overflow:hidden}@media(max-width:700px){.gallery-page{padding-top:25px;padding-bottom:55px}.gallery-heading{display:block;margin:30px 0 35px}.gallery-heading h1{font-size:39px}.gallery-heading>p{margin-top:20px;max-width:100%;font-size:15px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.photo-open{padding:5px;border-radius:8px}.photo-card figcaption{font-size:13px}.viewer{padding:10px}.viewer button{padding:9px 12px}.viewer-bottom{flex-wrap:wrap;gap:10px}.viewer-bottom p{order:3;flex-basis:100%}#photo-dialog{height:90dvh}.group-heading h2{font-size:23px}}@media(prefers-reduced-motion:reduce){.photo-open{transition:none}}

.gallery-ornaments{display:flex;justify-content:center;align-items:center;gap:28px;padding:0 0 25px;color:#b88919;font-size:28px}.gallery-ornaments span:nth-child(2n){color:#49734c}.gallery-ornaments span:nth-child(3){font-size:38px}.gallery-group{margin-bottom:32px}.gallery-grid{gap:28px}.photo-open{border:1px solid #b8c5ac;padding:7px;background:#faf8eb;border-radius:20px;aspect-ratio:3/4;box-shadow:0 5px 16px #23453212;transition:transform .2s,box-shadow .2s}.photo-open img{border-radius:13px;object-fit:contain}.photo-open:hover{transform:translateY(-3px);box-shadow:0 9px 22px #2345321c}.photo-open:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}#photo-title{display:none}.viewer-bottom{justify-content:space-between}@media(max-width:700px){.gallery-grid{gap:18px 12px}.photo-open{padding:4px;border-radius:14px}.photo-open img{border-radius:9px}.gallery-ornaments{gap:20px;font-size:24px}}@media(prefers-reduced-motion:reduce){.photo-open:hover{transform:none}}

/* Every frame follows its photograph's natural dimensions. */
.gallery-grid{align-items:start}.photo-open{aspect-ratio:auto;padding:0;background:transparent;line-height:0;border-radius:18px;overflow:hidden}.photo-open img{width:100%;height:auto;object-fit:contain;border-radius:0;display:block}.photo-card{align-self:start}@media(max-width:700px){.photo-open{aspect-ratio:auto;padding:0;border-radius:12px}.photo-open img{height:auto;border-radius:0}}
