/* 4Granite team lightbox: layers over the page without reflowing the card grid. */
html.fg-team-modal-open { overflow: hidden; }
.fg-team-modal {
    box-sizing: border-box; width: min(850px, calc(100vw - 28px)); max-width: none;
    max-height: min(90vh, 900px); max-height: min(90dvh, 900px);
    margin: auto; padding: 0; border: 0; border-top: 6px solid var(--fgmodern-accent, #9bc522);
    border-radius: 5px; background: #fff; color: #192329;
    box-shadow: 0 25px 85px rgba(0,0,0,.38); overflow: hidden;
}
.fg-team-modal:not([open]) { display: none; }
.fg-team-modal::backdrop { background: rgba(8, 15, 18, .76); }
.fg-team-modal__frame { display: flex; flex-direction: column; max-height: calc(min(90vh, 900px) - 6px); max-height: calc(min(90dvh, 900px) - 6px); min-height: 0; }
.fg-team-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 30px 20px; border-bottom: 1px solid #e3e9e4; background: #f5f7f4; flex: 0 0 auto; }
.fg-team-modal__kicker { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: #5f8215; margin: 0 0 9px; }
.fg-team-modal__title { font-size: clamp(1.6rem, 3vw, 2.35rem) !important; line-height: 1.12; color: #192329 !important; font-weight: 900; margin: 0 !important; overflow-wrap: anywhere; }
.fg-team-modal__role { margin: 8px 0 0 !important; color: #456119 !important; font-size: .88rem; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.fg-team-modal__close { appearance: none; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #a8b9a9; border-radius: 3px; background: #fff; color: #172025; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.fg-team-modal__close:hover { background: #e9efd9; }
.fg-team-modal__close:focus-visible { outline: 3px solid #57820a; outline-offset: 2px; }
.fg-team-modal__scroll { padding: 24px 30px 30px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.fg-team-modal .fg-team-expanded { padding: 0; border: 0; background: transparent; }
.fg-team-modal .fg-team-expanded.fg-team-modal__with-photo { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); column-gap: 28px; align-items: start; }
.fg-team-modal .fg-team-expanded.fg-team-modal__with-photo > .fg-team-photo { grid-column: 1; grid-row: 1 / span 10; }
.fg-team-modal .fg-team-expanded.fg-team-modal__with-photo > :not(.fg-team-photo) { grid-column: 2; min-width: 0; }
.fg-team-modal .fg-team-photo img { max-width: 100%; width: 100%; height: auto; max-height: 320px; object-fit: cover; margin: 0 0 18px; }
.fg-team-modal .fg-team-bio { min-width: 0; overflow-wrap: anywhere; }
.fg-team-modal .fg-team-bio > :first-child { margin-top: 0; }
.fg-team-modal .fg-team-bio img { max-width: 100%; height: auto; }
.fg-team-modal .fg-team-contact { margin-top: 20px; }
@media (max-width: 620px) {
    .fg-team-modal { width: calc(100vw - 16px); max-height: min(94vh, 980px); max-height: min(94dvh, 980px); }
    .fg-team-modal__frame { max-height: calc(min(94vh, 980px) - 6px); max-height: calc(min(94dvh, 980px) - 6px); }
    .fg-team-modal__head { padding: 16px 18px; }
    .fg-team-modal__scroll { padding: 18px; }
    .fg-team-modal .fg-team-expanded.fg-team-modal__with-photo { display: block; }
    .fg-team-modal .fg-team-photo img { max-height: 280px; width: 100%; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) { .fg-team-modal { scroll-behavior: auto; } }
