.program-template-content__header {
    margin-bottom: var(--wp--preset--spacing--40);
    text-align: center;
}

.program-template-content__title {
    margin: 0 0 var(--wp--preset--spacing--12);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 700;
    line-height: 1.2;
}

.program-template-content__intro {
    margin: 0 0 var(--wp--preset--spacing--30);
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--intro);
}

.program-template-content__details-content {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--body);
}

/* Repeater: vertical boxed cards (3-column grid). */
.program-template-content__details-cards {
    display: grid;
    gap: var(--wp--preset--spacing--20);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-block-program-template-content .program-template-content__details-cards {
    margin-top: var(--wp--preset--spacing--80);
}

.program-template-content__details-card {
    background: var(--wp--preset--color--base);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--12);
    padding: var(--wp--preset--spacing--30);
}

.program-template-content__details-card-icon {
    align-items: center;
    background: #eef6f8;
    border-radius: 0.5rem;
    display: flex;
    flex-shrink: 0;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.program-template-content__details-card-icon-image {
    display: block;
    height: 1.5rem;
    object-fit: contain;
    width: 1.5rem;
}

.program-template-content__details-card-title {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.program-template-content__details-card-text {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.5;
    margin: 0;
}

/* Shortcode: horizontal list items (2-column grid). */
.program-template-content__details-list {
    display: grid;
    gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
    grid-template-columns: repeat(var(--details-list-columns, 2), minmax(0, 1fr));
}

.program-template-content__details-content .program-template-content__details-list {
    margin-block: var(--wp--preset--spacing--40);
}

.program-template-content__details-list-item {
    align-items: flex-start;
    display: flex;
    gap: var(--wp--preset--spacing--12);
}

.program-template-content__details-list-item-icon {
    align-items: center;
    background: #eef6f8;
    border-radius: 0.5rem;
    display: flex;
    flex-shrink: 0;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.program-template-content__details-list-item-icon-image {
    display: block;
    height: 1.5rem;
    object-fit: contain;
    width: 1.5rem;
}

.program-template-content__details-list-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
    min-width: 0;
}

.program-template-content__details-list-item-title {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.program-template-content__details-list-item-text {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.5;
    margin: 0;
}

/* Speakers: 4-column card grid. */
.program-template-content__speakers-grid {
    display: grid;
    gap: var(--wp--preset--spacing--20);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-template-content__speaker-card {
    background: var(--wp--preset--color--base);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-template-content__speaker-card:hover {
    border-color: #53a2be;
    box-shadow: 0 4px 24px color-mix(in srgb, #53a2be 15%, transparent);
}

.program-template-content__speaker-card-top {
    display: flex;
    justify-content: center;
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
}

.program-template-content__speaker-card-figure {
    align-items: center;
    display: flex;
    height: 10rem;
    justify-content: center;
    margin: 0;
    position: relative;
    width: 10rem;
}

/* .program-template-content__speaker-card-figure::after {
    background-color: color-mix(in srgb, #53a2be 100%, transparent);
    border-radius: 50%;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    transition: background-color 0.3s ease;
    mix-blend-mode: multiply;
    z-index: 1;
}

.program-template-content__speaker-card:hover .program-template-content__speaker-card-figure::after {
    background-color: color-mix(in srgb, #53a2be 55%, transparent);
} */

.program-template-content__speaker-card-image {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 0;
}

.program-template-content__speaker-card-trigger {
    align-items: center;
    background-color: var(--wp--preset--color--base);
    border: 1.5px solid #e85d2a;
    border-radius: 50%;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
    color: #e85d2a;
    cursor: pointer;
    display: flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: -1.125rem;
    top: calc(50% - 1.125rem);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    width: 2.25rem;
    z-index: 2;
}

.program-template-content__speaker-card:hover .program-template-content__speaker-card-trigger,
.program-template-content__speaker-card-trigger:focus-visible {
    background-color: #e85d2a;
    border-color: #e85d2a;
    color: var(--wp--preset--color--base);
}

.program-template-content__speaker-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
    padding: 0 var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.program-template-content__speaker-card-name {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.program-template-content__speaker-card-title {
    color: #53a2be;
    font-size: var(--wp--preset--font-size--caption);
    line-height: 1.4;
    margin: 0;
}

.program-template-content__speaker-card-company {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--caption);
    line-height: 1.4;
    margin: 0;
}

.program-template-content__speaker-card-divider {
    background-color: #e85d2a;
    height: 2px;
    margin: var(--wp--preset--spacing--8) auto 0;
    width: 2rem;
}

.program-template-content__speaker-card-excerpt {
    color: color-mix(in srgb, var(--wp--preset--color--accent-4) 70%, transparent);
    font-size: var(--wp--preset--font-size--caption);
    line-height: 1.5;
    margin: 0;
}

/* Speaker modal (wired to modal.js). */
.program-template-content__speaker-modal {
    align-items: center;
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
    border: none;
    display: none;
    height: 100vh;
    inset: 0;
    justify-content: center;
    margin: 0;
    max-height: 100vh;
    max-width: 100vw;
    padding: var(--wp--preset--spacing--20);
    position: fixed;
    width: 100vw;
    z-index: 1000;
}

.program-template-content__speaker-modal.modal--is-visible {
    display: flex;
}

.program-template-content__speaker-modal::backdrop {
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
}

.program-template-content__speaker-modal-panel {
    background: var(--wp--preset--color--base);
    border-radius: 0.75rem;
    max-height: calc(100vh - var(--wp--preset--spacing--40));
    max-width: 40rem;
    overflow: auto;
    position: relative;
    width: 100%;
}

.program-template-content__speaker-modal-close {
    align-items: center;
    background-color: #e85d2a;
    border: none;
    border-radius: 50%;
    color: var(--wp--preset--color--base);
    cursor: pointer;
    display: flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: var(--wp--preset--spacing--12);
    top: var(--wp--preset--spacing--12);
    width: 2.25rem;
    z-index: 1;
}

.program-template-content__speaker-modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
    padding: var(--wp--preset--spacing--30);
}

.program-template-content__speaker-modal-figure {
    margin: 0 auto;
}

.program-template-content__speaker-modal-image {
    border-radius: 50%;
    display: block;
    height: 8rem;
    margin: 0 auto;
    object-fit: cover;
    width: 8rem;
}

.program-template-content__speaker-modal-content {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
    text-align: center;
}

.program-template-content__speaker-modal-name {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.program-template-content__speaker-modal-title {
    color: #53a2be;
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.4;
    margin: 0;
}

.program-template-content__speaker-modal-company {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.4;
    margin: 0;
}

.program-template-content__speaker-modal-bio {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.6;
    margin-top: var(--wp--preset--spacing--12);
    text-align: left;
}

/* Sponsors: 6-column logo grid. */
.program-template-content__sponsors-grid {
    border-radius: 0.75rem;
    display: grid;
    gap: var(--wp--preset--spacing--20);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: var(--wp--preset--spacing--30);
}

.program-template-content__sponsor-card {
    align-items: center;
    background: var(--wp--preset--color--base);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
    display: flex;
    justify-content: center;
    min-height: 7rem;
    padding: var(--wp--preset--spacing--20);
}

.program-template-content__sponsor-logo {
    display: block;
    height: auto;
    max-height: 3.5rem;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

/* Careers Expo: sponsor grid cards with optional bio modal trigger. */
.program-template-content__company-card {
    position: relative;
}

.program-template-content__company-card-name {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--caption);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.program-template-content__company-card-trigger {
    right: var(--wp--preset--spacing--12);
    top: var(--wp--preset--spacing--12);
    transform: none;
}

.program-template-content__company-card:hover .program-template-content__company-card-trigger,
.program-template-content__company-card-trigger:focus-visible {
    background-color: #e85d2a;
    border-color: #e85d2a;
    color: var(--wp--preset--color--base);
}

.program-template-content__company-modal-image {
    border-radius: 0;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 8rem;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.program-template-content__company-modal-link {
    margin: var(--wp--preset--spacing--12) 0 0;
}

.program-template-content__company-modal-link a {
    color: #53a2be;
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.4;
    text-decoration: underline;
    word-break: break-word;
}

.program-template-content__company-modal-link a:hover,
.program-template-content__company-modal-link a:focus-visible {
    color: var(--wp--preset--color--contrast);
}

/* Gallery: responsive mosaic grid (Programiz / CSS-Tricks pattern). */
.program-template-content__gallery {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
}

.program-template-content__gallery-mosaic {
    --gallery-gap: var(--wp--preset--spacing--20);
    /* Tune mosaic height: lower = shorter rows (1 = default, 0.85 ≈ 15% shorter). */
    --gallery-row-scale: 0.5;
    --gallery-row: calc((100cqi - 2 * var(--gallery-gap)) / 6 * var(--gallery-row-scale));
    container-type: inline-size;
    display: grid;
    gap: var(--gallery-gap);
    grid-auto-rows: var(--gallery-row);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.program-template-content__gallery-item--pos-1 {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.program-template-content__gallery-item--pos-2 {
    grid-column: 1;
    grid-row: 4 / span 3;
}

.program-template-content__gallery-item--pos-3 {
    grid-column: 2 / span 2;
    grid-row: 1 / span 3;
}

.program-template-content__gallery-item--pos-4 {
    grid-column: 2;
    grid-row: 4 / span 2;
}

.program-template-content__gallery-item--pos-5 {
    grid-column: 3;
    grid-row: 4 / span 2;
}

.program-template-content__gallery-item--pos-6 {
    grid-column: 2 / span 2;
    grid-row: 6 / span 1;
}

.program-template-content__gallery-remainder {
    display: grid;
    gap: var(--wp--preset--spacing--20);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.program-template-content__gallery-item {
    background: none;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.program-template-content__gallery-remainder .program-template-content__gallery-item {
    aspect-ratio: 4 / 3;
}

.program-template-content__gallery-figure {
    inset: 0;
    margin: 0;
    position: absolute;
}

.program-template-content__gallery-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.program-template-content__gallery-modal {
    align-items: center;
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
    border: none;
    display: none;
    height: 100vh;
    inset: 0;
    justify-content: center;
    margin: 0;
    max-height: 100vh;
    max-width: 100vw;
    padding: var(--wp--preset--spacing--20);
    position: fixed;
    width: 100vw;
    z-index: 1000;
}

.program-template-content__gallery-modal.modal--is-visible {
    display: flex;
}

.program-template-content__gallery-modal::backdrop {
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
}

.program-template-content__gallery-modal-panel {
    background: var(--wp--preset--color--base);
    border-radius: 0.75rem;
    max-height: calc(100vh - var(--wp--preset--spacing--40));
    max-width: 56rem;
    overflow: auto;
    position: relative;
    width: 100%;
}

.program-template-content__gallery-modal-close {
    align-items: center;
    background-color: #e85d2a;
    border: none;
    border-radius: 50%;
    color: var(--wp--preset--color--base);
    cursor: pointer;
    display: flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: var(--wp--preset--spacing--12);
    top: var(--wp--preset--spacing--12);
    width: 2.25rem;
    z-index: 2;
}

.program-template-content__gallery-modal-nav {
    align-items: center;
    background-color: #e85d2a;
    border: none;
    border-radius: 50%;
    color: var(--wp--preset--color--base);
    cursor: pointer;
    display: flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    z-index: 2;
}

.program-template-content__gallery-modal-nav--prev {
    left: var(--wp--preset--spacing--12);
}

.program-template-content__gallery-modal-nav--next {
    right: var(--wp--preset--spacing--12);
}

.program-template-content__gallery-modal-body {
    padding: var(--wp--preset--spacing--30);
}

.program-template-content__gallery-modal-figure {
    margin: 0;
}

.program-template-content__gallery-modal-image {
    border-radius: 0.5rem;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: calc(100vh - 12rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.program-template-content__gallery-modal-caption {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--caption);
    line-height: 1.5;
    margin-top: var(--wp--preset--spacing--12);
    text-align: center;
}

.program-template-content__gallery-modal-caption:empty {
    display: none;
}

@media (max-width: 1200px) {
    .program-template-content__sponsors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .program-template-content__speakers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-template-content__gallery-mosaic {
        grid-auto-rows: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-template-content__gallery-mosaic [class*="program-template-content__gallery-item--pos-"] {
        aspect-ratio: 4 / 3;
        grid-column: auto;
        grid-row: auto;
    }

    .program-template-content__gallery-item--pos-3,
    .program-template-content__gallery-item--pos-6 {
        grid-column: span 2;
    }
}

@media (max-width: 981px) {
    .program-template-content__sponsors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 781px) {
    .program-template-content__details-cards {
        grid-template-columns: 1fr;
    }

    .program-template-content__details-list {
        gap: var(--wp--preset--spacing--20);
        grid-template-columns: 1fr;
    }

    .program-template-content__speakers-grid {
        grid-template-columns: 1fr;
    }

    .program-template-content__sponsors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-template-content__gallery-mosaic {
        grid-template-columns: 1fr;
    }

    .program-template-content__gallery-item--pos-3,
    .program-template-content__gallery-item--pos-6 {
        grid-column: auto;
    }
}