/* Leadership In Frames: standalone page styling using HUDCO DBIM palette.
   Load after the site's shared DBIM variables and inner-page hero CSS. */

.leadership-frames-hero {
    background: var(--brand-900, #771D1D);
    background-image: none;
    border: 0;
    border-radius: 0;
    min-height: auto;
    padding: clamp(26px, 3vw, 48px) max(20px, calc((100vw - 1320px) / 2));
}

.leadership-frames-hero .inner-page-hero-content {
    width: 100%;
    max-width: 860px;
    margin: 0;
}

.leadership-frames-hero .leader-h {
    margin: 0 0 10px;
    color: var(--surface-primary, #FFFFFF);
    font-size: clamp(1.65rem, 2.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.leadership-frames-hero .leader-p {
    max-width: 760px;
    margin: 0;
    color: var(--surface-primary, #FFFFFF);
    font-size: clamp(.95rem, 1.1vw, 1.05rem);
    line-height: 1.65;
}

.leadership-frames-section {
    background: var(--surface-primary, #FFFFFF);
    padding: clamp(24px, 3.2vw, 44px) 0 clamp(42px, 5vw, 72px);
}

.leadership-frames-container {
    width: min(100% - 40px, 1320px);
    margin-inline: auto;
}

.leadership-frames-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.leadership-frame-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-primary, #FFFFFF);
    border: 1px solid var(--border-light, #C6C6C6);
    border-radius: 12px;
}

.leadership-frame-image-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border-light, #C6C6C6);
    background: var(--surface-secondary, #EBEAEA);
    cursor: zoom-in;
    overflow: hidden;
}

.leadership-frame-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.leadership-frame-expand {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--surface-primary, #FFFFFF);
    color: var(--brand-900, #771D1D);
    border: 1px solid var(--border-light, #C6C6C6);
}

.leadership-frame-image-button:focus-visible {
    outline: 3px solid var(--brand-700, #A72626);
    outline-offset: -4px;
    z-index: 1;
}

.leadership-frame-caption {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-height: 96px;
    padding: 16px 18px;
}

.leadership-frame-caption p {
    margin: 0;
    color: var(--text-primary, #150202);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.leadership-frames-empty {
    margin: 0;
    padding: 32px;
    text-align: center;
    color: var(--text-secondary, #606060);
    background: var(--surface-secondary, #EBEAEA);
    border-radius: 8px;
}

.leadership-frames-lightbox[hidden] { display: none !important; }
.leadership-frames-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(21, 2, 2, 0.90);
}
.leadership-frames-lightbox-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 100%);
    max-height: 100%;
    overflow: auto;
}
.leadership-frames-lightbox-panel img {
    display: block;
    max-width: 100%;
    max-height: min(75vh, 760px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.leadership-frames-lightbox-caption {
    max-width: 850px;
    padding: 12px 16px 0;
    margin: 0;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    font-size: 1rem;
}
.leadership-frames-lightbox-close {
    position: sticky;
    top: 0;
    z-index: 1;
    align-self: flex-end;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: var(--brand-900, #771D1D);
    background: #fff;
    border: 1px solid var(--border-light, #C6C6C6);
    border-radius: 8px;
    cursor: pointer;
}
.leadership-frames-lightbox-close:focus-visible {
    outline: 3px solid var(--brand-300, #FAAAAA);
    outline-offset: 3px;
}
body.frames-lightbox-open { overflow: hidden; }

@media (max-width: 991.98px) {
    .leadership-frames-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 575.98px) {
    .leadership-frames-container { width: min(100% - 28px, 480px); }
    .leadership-frames-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .leadership-frame-caption { min-height: 0; padding: 14px; }
    .leadership-frame-caption p { font-size: .96rem; }
    .leadership-frames-lightbox { padding: 12px; }
    .leadership-frames-lightbox-panel img { max-height: 65vh; }
}
