
.brochure-trigger{cursor:pointer;font:inherit}.hero .brochure-trigger{background:transparent;color:#d2eef2;border:1px solid #789ca8;padding:11px 18px;border-radius:4px}.brochure-entry{display:flex;justify-content:flex-end;margin:0 0 18px}.brochure-entry button{color:#356779;background:#f3f8fa;border:1px solid #cbdde5;padding:9px 16px;border-radius:4px}
#brochure-dialog{box-sizing:border-box;width:min(1120px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:0;border:1px solid #d5e1e6;border-radius:8px;color:#173d51;background:white}#brochure-dialog::backdrop{background:rgba(8,27,40,.72)}.brochure-shell{height:100%;display:flex;flex-direction:column}.brochure-top,.brochure-tools,.brochure-bottom{display:flex;align-items:center;gap:10px;padding:12px 18px;flex-shrink:0}.brochure-top{justify-content:space-between;border-bottom:1px solid #dce6eb}.brochure-top h2{margin:0;font-size:19px}.brochure-tools{flex-wrap:wrap}.brochure-shell button,.brochure-bottom a{font:inherit;font-size:14px;cursor:pointer;border:1px solid #c4d8e1;border-radius:4px;background:#fff;color:#28556a;padding:7px 12px;text-decoration:none}.brochure-shell button[aria-pressed=true]{background:#e6f3f5;border-color:#69aeb8;color:#007c8b}.brochure-view{flex:1;min-height:0;overflow:auto;background:#edf2f5;padding:14px;text-align:center}.brochure-view img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;margin:0 auto;object-fit:contain}.brochure-view.zoomed img{max-width:none;max-height:none;width:1600px;margin:0}.brochure-bottom{justify-content:flex-end;border-top:1px solid #dce6eb}@media(max-width:600px){.brochure-top,.brochure-tools,.brochure-bottom{padding:10px}.brochure-top h2{font-size:17px}.brochure-tools{gap:6px}.brochure-view{padding:6px}}

/* Fit the whole image on first open; size the dialog for its orientation. */
#brochure-dialog{width:min(1200px,96vw);height:min(980px,94dvh);max-height:94dvh}
#brochure-dialog[data-format="landscape"]{width:min(1200px,96vw,calc((94dvh - 170px)*1.415 + 30px));height:min(94dvh,calc( min(1200px,96vw) / 1.415 + 170px))}
#brochure-dialog[data-format="portrait"]{width:min(800px,96vw,calc((94dvh - 170px)*.707 + 30px));height:94dvh}
.brochure-view{box-sizing:border-box;display:flex;align-items:center;justify-content:center}
.brochure-view img{width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain;margin:0}
.brochure-view.zoomed{display:block;text-align:left}.brochure-view.zoomed img{width:1600px;height:auto;max-width:none;max-height:none;margin:0}
@media(max-width:600px){#brochure-dialog[data-format="portrait"]{width:96vw}.brochure-shell button,.brochure-bottom a{padding:6px 9px;font-size:13px}}
@media(max-height:500px){.brochure-top,.brochure-tools,.brochure-bottom{padding:5px 10px}.brochure-top h2{font-size:15px}.brochure-shell button,.brochure-bottom a{padding:4px 8px;font-size:12px}#brochure-dialog[data-format="portrait"]{width:min(96vw,calc((94dvh - 120px)*.707 + 20px))}#brochure-dialog[data-format="landscape"]{width:min(96vw,calc((94dvh - 120px)*1.415 + 20px))}}

/* Portrait height follows the available image width instead of filling tall screens. */
#brochure-dialog[data-format="portrait"]{height:min(94dvh,calc(min(800px,96vw) * 1.416 + 150px))}
