/*
 Theme Name: Bricks Child (E3 International)
 Template: bricks
 Version: 1.0
*/

/* PhotoSwipe lightbox above sticky header and cookie banner */
html body .pswp.brx { --pswp-root-z-index: 2147483000; z-index: 2147483000; }

/* People page bio dialog (people-bios.js): large photo left, compact text right */
.person-dialog { width: min(112rem, calc(100vw - 3.2rem)); max-height: calc(100vh - 4rem); max-height: calc(100dvh - 2.4rem); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--text); overflow: hidden; }
.person-dialog::backdrop { background: rgba(0,0,0,.65); }
.person-dialog__body { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); max-height: calc(100vh - 4rem); max-height: calc(100dvh - 2.4rem); }
.person-dialog__photo { background: var(--canvas); padding: 3.2rem; display: flex; justify-content: center; align-items: flex-start; }
.person-dialog__photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(42rem, calc(100vh - 12rem)); max-height: min(42rem, calc(100dvh - 12rem)); border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.person-dialog__text { padding: 3.6rem 4rem 3.2rem; overflow-y: auto; font-size: 1.4rem; line-height: 1.6; }
.person-dialog__text h2 { margin: 0 4rem 0 0; font-size: var(--text-xl); font-weight: 400; line-height: 1.2; color: var(--ink); }
.person-dialog__role { margin: .6rem 0 2rem; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.person-dialog__text p { margin: 0 0 1.1rem; }
.person-dialog__close { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 1; width: 4.4rem; height: 4.4rem; padding: 0; border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink); font-size: 0; cursor: pointer; }
.person-dialog__close::before, .person-dialog__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1.8rem; height: 2px; margin: -1px 0 0 -0.9rem; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.person-dialog__close::after { transform: rotate(-45deg); }
.person-dialog__close:hover { background: var(--line); }
@media (max-width: 767px) { .person-dialog__body { grid-template-columns: minmax(0,1fr); overflow-y: auto; } .person-dialog__photo { padding: 2.4rem 2.4rem 0; background: none; } .person-dialog__photo img { max-height: 32rem; } .person-dialog__text { overflow: visible; padding: 2.4rem; } }
