.photo-gallery[hidden],.photo-gallery [hidden]{display:none!important}
.photo-gallery-heading{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.photo-gallery-heading h2{margin:0}
.photo-gallery-heading button{margin:0}
.photo-gallery-hint{color:#756d63;font-size:11.2px;margin:0 0 16px}
.photo-gallery-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:16px}
.photo-gallery-item{flex:0 0 calc((100% - 48px)/4);min-width:0}
.photo-gallery .photo-gallery-picture{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.photo-gallery-picture img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
@media(hover:hover) and (pointer:fine){.photo-gallery-picture:hover img{transform:scale(1.07)}}
.photo-gallery-picture:focus-visible img{transform:scale(1.07)}
.photo-gallery-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;margin-top:8px}
.photo-gallery .photo-gallery-actions button{background:transparent;color:#8a6940;border:0;box-shadow:none;padding:4px 0;margin:0;border-radius:0;font-size:10.4px}
.photo-gallery .photo-gallery-actions button:hover{color:#735735;background:transparent}
.photo-gallery .photo-gallery-empty{display:block;width:100%;aspect-ratio:4/3;background:#faf8f4;border:1px dashed #d9cbb9;border-radius:0;color:#8a6940;padding:12px;margin:0;font-size:11.2px}
.photo-gallery-status{font-size:11.2px;margin:14px 0 0;overflow-wrap:anywhere}
.photo-gallery-status:empty{display:none}
.photo-gallery-dialog{width:min(1000px,calc(100vw - 24px));max-width:1000px;max-height:calc(100dvh - 24px);overflow:auto;padding:14px;border:1px solid #e0dbc9;border-radius:12px;background:#fffef8;color:#293e35}
.photo-gallery-dialog::backdrop{background:rgba(25,35,28,.75)}
.photo-gallery-dialog-heading{position:sticky;top:-14px;z-index:1;display:flex;justify-content:flex-end;background:#fffef8;padding:0 0 12px}
.photo-gallery-dialog-heading button{margin:0;min-height:40px}
.photo-gallery-dialog>img{display:block;width:100%;height:auto;max-height:calc(100dvh - 110px);object-fit:contain}
@media(max-width:700px){.photo-gallery-grid{gap:12px}.photo-gallery-item{flex-basis:calc((100% - 12px)/2)}.photo-gallery-actions{gap:4px 10px}.photo-gallery .photo-gallery-actions button{min-height:36px}.photo-gallery-hint{font-size:11.2px}}
@media(prefers-reduced-motion:reduce){.photo-gallery-picture img{transition:none}}

@media(min-width:701px){.home-information-sheet>.photo-gallery{width:calc(100vw - 48px);max-width:none;margin-left:calc(50% - 50vw + 24px);margin-right:calc(50% - 50vw + 24px)}}
