/* Titles and places share the same quiet hierarchy in both galleries. */
#atlas-space .floating-photo>.atlas-caption{display:block!important;position:static;margin:8px 0 0;padding:0;white-space:normal;text-align:left;font-size:12px;line-height:1.4;letter-spacing:.01em;overflow-wrap:break-word;color:#ececea}
#atlas-space .atlas-caption strong{display:inline;font:inherit;font-weight:400}
#atlas-space .atlas-caption small{display:inline;margin-top:0;font-size:10px;line-height:1.4;color:#a6adaf;letter-spacing:.025em}
.floating-photo:focus-visible{outline:1px solid #ececea;outline-offset:5px}
.public-photo-caption strong{display:inline;font:inherit;font-weight:400}
.public-photo-caption small{display:inline;margin-top:0;color:#a6adaf;font-size:.85em;line-height:1.4}
.work-location{color:#adb5b9;font-size:13px;line-height:1.5;margin:8px 0 10px;letter-spacing:.025em}
#print-location:empty{display:none}
#print-title{margin-bottom:10px}
#print-reference{margin:0 0 6px}
.author-note-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;margin:0 0 20px;color:inherit;background:none;border:0;border-bottom:1px solid #ffffff55;font:inherit;font-size:13px;letter-spacing:.025em;text-align:left;cursor:pointer}
.author-note-link:not(:disabled):after{content:'↗';margin-left:10px;font-size:16px}
.author-note-link:disabled{color:#8f969b;border-bottom-color:#ffffff20;cursor:default;opacity:.65}
.author-note-link:focus-visible{outline:1px solid currentColor;outline-offset:5px}
#author-note-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(640px,calc(100vw - 40px));height:fit-content;max-width:640px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #ffffff26;border-radius:2px;color:#f3f2ee;background:#141b20;overflow:auto;box-shadow:0 24px 100px #0008}
#author-note-dialog::backdrop{background:#05090db8;backdrop-filter:blur(5px)}
#author-note-dialog .note-inner{padding:42px 46px 36px}
#author-note-dialog .note-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
#author-note-dialog .note-label{font:11px/1.5 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#aeb7bc;margin:0}
#author-note-dialog .note-close{position:static;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-14px -14px -14px 0;padding:8px;border:0;background:none;color:#f3f2ee;font:28px/1 Arial,sans-serif;cursor:pointer}
#author-note-dialog h2{font:normal 30px/1.2 Georgia,serif;letter-spacing:0;text-transform:none;overflow-wrap:break-word;margin:0 0 10px}
#author-note-dialog .note-place{font:12px/1.5 Arial,sans-serif;color:#aeb7bc;margin:0 0 26px}
#author-note-dialog .note-body p{font:17px/1.75 Georgia,serif;color:#e0e3e4;margin:0 0 18px}
#author-note-dialog .note-signature{font:12px/1.5 Arial,sans-serif;margin:25px 0 0;color:#aeb7bc;letter-spacing:.04em}
@media(max-width:800px),(max-width:950px) and (max-height:500px){
 #atlas-space .floating-photo>.atlas-caption{font-size:11px;line-height:1.4;margin-top:7px}
 #atlas-space .atlas-caption small{font-size:10px}
 #author-note-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 #author-note-dialog .note-inner{padding:24px}
 #author-note-dialog h2{font-size:26px}
 #author-note-dialog .note-body p{font-size:16px;line-height:1.7}
}
#author-note-dialog .note-top{position:static;inset:auto;width:auto;min-height:0;transform:none;padding:0;background:none;z-index:auto}

/* The note is a compact reading window, independent of global dialog chrome. */
#author-note-dialog>.dialog-home,#author-note-dialog #music-dock{display:none!important}

#author-note-dialog{padding:0!important}

/* Keep the place beside the title, allowing natural wrapping. */
#atlas-space .atlas-caption strong+small::before,.public-photo-caption strong+small::before{content:" · ";white-space:pre}
#atlas-space .atlas-caption small+small{display:block;margin-top:3px}

/* Desktop captions: number and title left, location at the outer right edge. */
@media(min-width:951px) and (min-height:501px){
 #atlas-space .floating-photo>.atlas-caption,.public-photo-caption{display:grid!important;grid-template-columns:minmax(0,1fr) fit-content(42%);column-gap:12px;align-items:baseline}
 #atlas-space .atlas-caption strong,.public-photo-caption strong{display:block;min-width:0;text-align:left;overflow-wrap:break-word}
 #atlas-space .atlas-caption strong[data-photo-number]:not([data-photo-number=""])::before,.public-photo-caption strong[data-photo-number]:not([data-photo-number=""])::before{content:attr(data-photo-number) " · ";color:#a6adaf;font-size:.85em;white-space:nowrap}
 #atlas-space .atlas-caption strong+small,.public-photo-caption strong+small{display:block;margin:0;text-align:right;overflow-wrap:break-word}
 #atlas-space .atlas-caption strong+small::before,.public-photo-caption strong+small::before{content:none}
 #atlas-space .atlas-caption .room-caption{grid-column:1/-1;text-align:left;margin-top:3px}
}

/* Keep each location immediately after its title on desktop as well. */
@media(min-width:951px) and (min-height:501px){
 #atlas-space .floating-photo>.atlas-caption,.public-photo-caption{display:block!important}
 #atlas-space .atlas-caption strong,.public-photo-caption strong{display:inline}
 #atlas-space .atlas-caption strong+small,.public-photo-caption strong+small{display:inline;text-align:left}
 #atlas-space .atlas-caption strong+small::before,.public-photo-caption strong+small::before{content:" · ";white-space:pre}
 #atlas-space .atlas-caption .room-caption{display:block;text-align:left}
}

/* Compact print heading, with the place on the same flowing line. */
#print-dialog .print-heading{margin:0 0 10px;line-height:1.4}
#print-dialog #print-title{display:inline;font-size:27.455px;margin:0;line-height:1.2}
#print-dialog #print-title.numbered-title{font-size:21.8025px}
#print-dialog #print-title.diptych-title{font-size:19.38px}
#print-dialog #print-location{display:inline;margin:0;font-size:13px;line-height:1.4;white-space:normal}
#print-dialog #print-location:not(:empty)::before{content:" · ";white-space:pre;color:#a6adaf}
.author-note-link::before{content:"";display:inline-block;flex:0 0 16px;width:16px;height:18px;margin-right:8px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8zM14 3v5h5M8 12h8M8 16h6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:800px),(max-width:950px) and (max-height:500px){
 #print-dialog #print-title{font-size:21.8025px}
 #print-dialog #print-title.numbered-title{font-size:18.5725px}
 #print-dialog #print-title.diptych-title{font-size:17.765px}
}

/* Align the print-panel signature with its content column on desktop. */
@media(min-width:801px) and (min-height:501px){#print-dialog .dialog-home{left:45px}}

/* The shop signature remains a home link without underlining. */
html body #print-dialog .dialog-home,html body #print-dialog .dialog-home:is(:hover,:focus,:focus-visible,:active),html body #print-dialog .dialog-home *{text-decoration:none!important;border-bottom:0!important}
html body #print-dialog .dialog-home:focus-visible{outline:1px solid #ffffff70!important;outline-offset:5px}

/* Desktop photo caption links directly to the current work's print options. */
#chapter .journey-print-link{display:none}
@media(min-width:951px) and (min-height:501px){
 #chapter .journey-photo-kind{display:none}
 #chapter .journey-print-link{display:inline-block;pointer-events:auto;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;border:0;background:none;padding:10px 0;margin:-10px 0;cursor:pointer}
 #chapter .journey-print-link:hover{text-decoration:underline;text-underline-offset:4px}
 #chapter .journey-print-link:focus-visible{outline:1px solid currentColor!important;outline-offset:4px}
}

/* Full-screen photographs must not inherit the generic mobile dialog footer. */
html body #print-photo-zoom{padding:0!important}
