/* The paper and its contents dissolve together over the photograph behind the dialog. */
#group-view[open]{
 opacity:0;
 transition:opacity 360ms cubic-bezier(.42,0,.55,1);
}
#group-view[open][data-phase="visible"]{
 opacity:1;
 transition-duration:560ms;
}
#group-view header{
 transform:translateY(8px);
 transition:transform 520ms cubic-bezier(.22,.7,.25,1);
}
#group-view[data-phase="visible"] header{transform:none}
@media(prefers-reduced-motion:reduce){
 #group-view[open],#group-view header{transition:none;transform:none}
}

#group-view .group-copy-paragraph{display:block;margin:0 0 1em;text-align:left;line-height:1.95}
#group-view .group-copy-source{display:block;margin-top:1em;text-align:left;font-size:12px;color:#737373;line-height:1.7}
#group-view .group-copy-source a{color:inherit;text-underline-offset:.2em}
/* Long statements scroll above the shared, fixed sound footer. */
#group-view{padding-bottom:max(9svh,150px)}
#group-view::after{content:"";position:fixed;inset:auto 0 0;height:80px;background:#fff;z-index:4;pointer-events:none}
@media(max-width:700px){#group-view::after{height:128px}}

/* Individual photo notes stay with their image, outside the full-screen overlay. */
#group-view .group-images figcaption{max-width:46em;margin:1.1em auto 0;text-align:left;font-size:14px;line-height:1.8;letter-spacing:.02em}
#group-view .photo-caption-title{display:block;font-size:16px;color:#171717}
#group-view .photo-caption-description{margin:.5em 0 0;color:#444}
#group-view .photo-tags{display:flex;flex-wrap:wrap;gap:.3em 1.2em;list-style:none;padding:0;margin:.65em 0 0;font-size:12px;color:#666}
#group-view .photo-tags li::before{content:'#';margin-right:.12em;color:#777}
@media(max-width:700px){#group-view .group-images figcaption{font-size:13px}#group-view .photo-caption-title{font-size:15px}.group-images .photo-tags{gap:.25em 1em}}
/* The rest of a long statement, folded under its first paragraph. */
#group-view .group-copy-more{display:block;margin:0 0 1em;text-align:left}
#group-view .group-copy-more summary{display:inline-block;cursor:pointer;list-style:none;font-size:12px;color:#555;text-decoration:underline;text-underline-offset:.3em;padding:.3em 0}
#group-view .group-copy-more summary::-webkit-details-marker{display:none}
#group-view .group-copy-more[open] summary{display:none}
#group-view .group-copy-rest{display:block}

#group-view .figure-reading, #group-view .series-readings a { display:block; width:fit-content; padding:.35em 0; font-size:13px; line-height:1.65; color:#555; text-decoration:underline; text-underline-offset:.25em; }
#group-view .figure-reading { margin-top:.65em; }
#group-view .group-end { max-width:40em; margin:2.5em auto 0; }
#group-view .series-readings { display:grid; gap:.3em; margin-bottom:1.3em; }
