/* One picture-frame system for the site's photo and document viewers. */
:root{--media-border:2px solid #b49aa3;--media-radius:8px;--media-space:12px;--media-height:min(60vh,480px)}
@supports(height:1svh){:root{--media-height:min(60svh,480px)}}
body main :is(.anna-photo-section,.anna-reference-photo,.anna-user-carousel,.document-reader,.record-golf-photo,.record-portrait,.family-record-grid>figure,.tom-public-gallery>figure,.case-person-photo,.reference-photo,.reference-context-photo){box-sizing:border-box;min-width:0;border:var(--media-border);border-radius:var(--media-radius);padding:var(--media-space);margin-block:16px;background:#fffdfa;box-shadow:none}
body main :is(.anna-user-carousel,.anna-reference-photo,.document-reader){width:100%;max-width:760px;margin-inline:auto}
body main .anna-photo-section>h2{margin:0 0 var(--media-space)}
body main .anna-photo-section>.anna-user-carousel{border:0;border-radius:0;padding:0;margin-block:0;background:transparent}
body main .anna-photo-section>.anna-user-carousel+.anna-user-carousel{margin-top:16px}
body main .anna-photo-grid:empty{display:none}
body main .anna-photo-grid:not(:empty){gap:var(--media-space);margin-top:var(--media-space)}
body main :is(.anna-user-carousel,.anna-reference-photo) figure{margin:0}
body main .anna-user-carousel>[data-carousel-slide]>a,
body main [data-business-gallery]>div>figure>a{display:grid;place-items:center;width:100%;height:var(--media-height);min-height:0;line-height:0;background:#fff}
body main .anna-user-carousel>[data-carousel-slide]>a>img,
body main .anna-user-carousel>[data-carousel-slide]>a>svg,
body main [data-business-gallery]>div>figure>a>img{display:block;width:100%!important;height:var(--media-height)!important;max-width:100%;max-height:var(--media-height);min-height:0;margin:0;object-fit:contain}
/* The page and its highlight overlay always share the same aspect ratio. */
body main .anna-user-carousel :is(.anna-resume-visual,.anna-page-visual){display:block;width:min(100%,calc(var(--media-height)*.77272727));height:auto;margin:0 auto;line-height:0}
body main .anna-user-carousel :is(.anna-resume-visual,.anna-page-visual)>img{display:block;width:100%!important;height:auto!important;max-width:100%;max-height:none!important;margin:0}
body main .anna-user-carousel :is(.anna-resume-visual,.anna-page-visual)>svg{width:100%;height:100%;max-height:none;margin:0}
body main :is(.anna-user-carousel,.document-reader) :is(.anna-carousel-hint,.document-reader-hint),
body main [data-business-gallery]>p{margin:0 0 8px!important;max-width:none;text-align:center!important;text-align-last:center;line-height:1.45;font-size:.9rem}
body main .anna-user-carousel>h3{margin:0 0 8px}
body main :is(.anna-user-carousel,.anna-reference-photo,.document-reader,.record-golf-photo,.record-portrait,.family-record-grid,.tom-public-gallery,.case-person-photo,.reference-photo,.reference-context-photo) figcaption{margin:0;padding:8px 0 0;text-align:center;text-align-last:center;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}
body main .anna-user-carousel figcaption:empty{display:none}
body main .anna-carousel-controls{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:8px}
body main .anna-carousel-controls button,
body main .photo-carousel-controls>button,
body main .document-reader-toolbar .document-page-arrow{box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #783c4e;border-radius:6px;background:#783c4e;color:#fff;font:700 26px/1 system-ui,sans-serif}
body main .photo-carousel-controls>button::before{display:none}
body main .photo-carousel-controls>button svg{width:20px;height:20px}
body main :is(.anna-carousel-controls,.document-reader-toolbar) button:disabled{background:#e5d9da;color:#8b777c;border-color:#d8c7c8;cursor:default}
body main .anna-carousel-controls [data-carousel-count]{min-width:58px;text-align:center;font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums}
body main .document-reader-toolbar{position:relative;top:auto;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;margin-bottom:8px}
body main .document-page-link{display:grid;place-items:center;height:var(--media-height)!important;aspect-ratio:auto!important;border:0;border-radius:0;box-shadow:none;background:#fff}
body main .document-page-link img{width:100%!important;height:var(--media-height)!important;max-height:var(--media-height)!important;min-height:0;object-fit:contain!important}
body main .card .document-reader{border:0;padding:0;margin:0;max-width:100%}
body main :is(.family-record-grid,.tom-public-gallery,.case-people-photos){gap:var(--media-space)}
body main :is(.family-record-grid,.tom-public-gallery,.case-people-photos)>figure{margin:0}
body main .tom-public-gallery figure>a{aspect-ratio:4/3}
body main :is(.family-record-grid>figure>img,.case-person-photo>img,.record-golf-photo>img,.reference-context-photo>img,.anna-reference-photo img){display:block;width:100%;height:auto;aspect-ratio:4/3;max-height:480px;object-fit:contain;border-radius:0;background:#fff}
body main .tom-public-gallery img{max-height:none}
body main .anna-photo{border:var(--media-border);border-radius:var(--media-radius);padding:var(--media-space);background:#fffdfa}
body main .anna-photo img{width:100%;height:auto;aspect-ratio:4/3;max-height:480px;object-fit:contain;background:#fff}
body main .anna-photo figcaption{padding:8px 0 0;text-align:center}
body main .library-photo-frame{border:var(--media-border);border-radius:var(--media-radius);height:auto;aspect-ratio:4/3;margin-top:var(--media-space)}
body main .reference-photo .library-photo-frame{border:0;border-radius:0;margin:0;min-height:0;max-height:none}
body main .reference-photo .library-photo-frame img{max-height:100%}
body #haley [data-haley=media]>.card{border:var(--media-border);border-radius:var(--media-radius);padding:var(--media-space)!important;gap:8px;box-shadow:none}
body #haley [data-haley=media]>.card .caption{padding:8px 0 0!important}
body main .photo-carousel-frame{border-radius:0;background:#fff}
@media(max-width:600px){:root{--media-space:10px;--media-height:min(52vh,380px)}body main .anna-photo-section{margin-block:16px}body main .document-page-position{font-size:14px}}
@media print{body main :is(.anna-photo-section,.anna-user-carousel,.document-reader){border:0;padding:0}body main :is(.document-page-link,.anna-user-carousel>[data-carousel-slide]>a){height:auto!important}body main .document-page-link img{height:auto!important}}

@supports(height:1svh){@media(max-width:600px){:root{--media-height:min(52svh,380px)}}}

/* Put the same 44px controls immediately below each image, before captions. */
body main .anna-share-meme{max-width:760px;margin:0 auto}
body main .anna-share-meme a{display:block;line-height:0}
body main .anna-share-meme img{display:block;width:100%;height:auto;max-height:var(--media-height);object-fit:contain;margin:0 auto}
body main .anna-share-download{margin:12px 0 0;text-align:center;text-align-last:center}
body main .anna-share-download a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:8px 20px;border:1px solid #783c4e;border-radius:6px;background:#783c4e;color:#fff;font-weight:700;text-decoration:underline}
body main .anna-share-download a:focus-visible{outline:3px solid #925d6b;outline-offset:3px}
body main .anna-user-carousel{display:flex;flex-direction:column}
body main .anna-user-carousel>[data-carousel-slide]{display:contents}
body main .anna-user-carousel>[data-carousel-slide]>a{order:2}
body main .anna-user-carousel>.anna-carousel-controls{order:3;margin-top:8px;gap:20px}
body main .anna-user-carousel>[data-carousel-slide]>figcaption{order:4}
body main .anna-carousel-controls [data-carousel-count]{box-sizing:border-box;width:80px;min-width:80px}

body main .photo-carousel-frame{display:grid;grid-template-columns:minmax(0,1fr) 44px 80px 44px minmax(0,1fr);justify-content:center;column-gap:20px;row-gap:8px;aspect-ratio:auto;overflow:visible;height:auto}
body main .photo-carousel-viewport{grid-column:1/-1;grid-row:1;width:100%;height:auto;aspect-ratio:4/3}
body main .photo-carousel-controls{display:contents;position:static;inset:auto}
body main .photo-carousel-controls>[data-photo-previous]{grid-column:2;grid-row:2}
body main .photo-carousel-controls>[data-photo-next]{grid-column:4;grid-row:2}
body main .photo-carousel-controls>button:disabled{visibility:visible;background:#e5d9da;color:#8b777c;border-color:#d8c7c8}
body main .photo-carousel-status{position:static;grid-column:3;grid-row:2;align-self:center;width:80px;max-width:none;box-sizing:border-box;padding:0;background:transparent;color:inherit;font:700 14px/1.4 system-ui,sans-serif;text-align:center}

body main .document-reader{display:flex;flex-direction:column}
body main .document-reader-pages,body main .document-reader-page{display:contents}
body main .document-reader-page>.document-page-link{order:2}
body main .document-reader-toolbar{order:3;align-self:center;width:208px;grid-template-columns:44px 80px 44px;gap:20px;margin:8px 0 0;padding:0}
body main .document-reader-page>figcaption,body main .document-reader-page>.photo-date{order:4}
body main .document-reader-error{order:5}
body main .document-page-position{gap:0;font-size:14px}
body main .document-reader:has(.document-reader-page:only-child) .document-page-position select{display:none}
@media print{body main .photo-carousel-frame,body main .photo-carousel-viewport{display:block;height:auto}body main :is(.anna-carousel-controls,.photo-carousel-controls>button,.photo-carousel-status,.document-reader-toolbar){display:none}}
