/* Insights archives, topic cards and video player. */
.insights-page {
    padding: var(--wp--preset--spacing--80) 0;
    color: #303030;
}

.insights-archive-header {
    margin-bottom: 28px;
}

.insights-archive-header .insights-topic-title {
    font-weight: 300;
    margin-top: 24px;
    margin-bottom: var(--wp--preset--spacing--50);
}

.insights-breadcrumbs > span[aria-hidden="true"] {
    margin-inline: 0.5em;
}

.insights-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1769aa;
}


.insights-page h3,
.video-modal h3{
    font-size: clamp(20px, 1.14rem + ((1vw - 3px) * 0.9), 35px);
    margin: 0;
    line-height: 1.14;
    font-weight: 300;
    margin-bottom: 12px;
}
.video-modal h3{
    margin-bottom: var(--wp--preset--spacing--50);
}
.insights-archive-header__description {
    max-width: 720px;
    margin: 16px 0 0;
    color: #52606d;
    line-height: 1.6;
}

.insights-grid,
.insights-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: var(--wp--preset--spacing--40);
}

.video-card,
.insights-grid .post-card,
.insights-topic-card {
    overflow: hidden;
    border: 1px solid #DCDCDC;
    background: #ffffff;
    padding: 14px 14px 0;
    margin: 0;
}

.insights-topic-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.video-card__image,
.insights-grid .post-card__img,
.insights-topic-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #d9e2ec;
}

.video-card__content,
.insights-grid .post-card__body,
.insights-topic-card__content {
    display: block;
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
}

/*.video-card h2,
.insights-topic-card__title {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}*/

.insights-topic-card__description {
    display: block;
    margin-bottom: 16px;
    color: #52606d;
    line-height: 1.55;
}

.insights-topic-card__count {
    display: inline-flex;
    color: #1769aa;
    font-size: 14px;
    font-weight: 700;
}

.video-card p,
.insights-grid .post-card__excerpt {
    margin: 0 0 18px;
    color: #52606d;
    line-height: 1.55;
}

.video-card__media-button,
.video-card__title-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    color: inherit;
    background: none;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.video-card__title-button:hover,
.video-card__title-button:focus,
.insights-grid .post-card__title a:hover,
.insights-grid .post-card__title a:focus {
    color: var(--wp--preset--color--accent-1);
}

.video-card__meta {
    margin-bottom: 10px;
    color: #1769aa;
    font-size: 14px;
    font-weight: 700;
}

.watch-button.btn,
.insights-grid .post-card__body > .btn {
    color: var(--wp--preset--color--accent-1);
    appearance: none;
    background: none;
    border: none;
    padding: 0;
}
.watch-button.btn::after,
.insights-grid .post-card__body > .btn::after {
    background-color: var(--wp--preset--color--accent-1);
}
.watch-button:hover,
.watch-button:focus,
.insights-grid .post-card__body > .btn:hover,
.insights-grid .post-card__body > .btn:focus {
    color: var(--wp--preset--color--accent-2);
}
.watch-button.btn:hover::after,
.watch-button.btn:focus::after,
.insights-grid .post-card__body > .btn:hover::after,
.insights-grid .post-card__body > .btn:focus::after {
    background-color: var(--wp--preset--color--accent-2);
}
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal.is-open {
    display: flex;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFF;
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
}

.video-modal__close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 36px;
    /*height: 36px;*/
    border: 0;
    background-color: transparent;
    color: var(--wp--preset--color--accent-1);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    outline: 0;
}

.video-modal__close:hover,
.video-modal__close:focus {
    color: var(--wp--preset--color--accent-2);
    font-size: 38px;
}

.video-modal h2 {
    margin: 0 48px 16px 0;
    font-size: 24px;
}

.video-modal__frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #000000;
}

.video-modal__frame iframe,
.video-modal__frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.video-modal-open {
    overflow: hidden;
}
@media (max-width: 1360px) {
    .video-card, .insights-grid .post-card, .insights-topic-card {
        padding: 8px 8px 0;
    }
    .video-card__content, .insights-grid .post-card__body, .insights-topic-card__content {
        padding: 15px 10px;
    }
}
@media (max-width: 860px) {
    .insights-grid,
    .insights-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .insights-page {
        width: min(100% - 24px, 1120px);
        padding: 36px 0;
    }

    .insights-grid,
    .insights-topic-grid {
        grid-template-columns: 1fr;
    }

    .video-modal {
        padding: 14px;
    }

    .video-modal__dialog {
        padding: 30px 15px;
        max-height: calc(100dvh - 28px);
    }
    .video-modal__close {
        top: 5px;
        right: 10px;
        width: 36px;
        font-size: 30px;
    }
    .video-modal__close:hover {
        font-size: 32px;
    }
}
/* Video popup disclaimer. */

.video-modal__disclaimer{
  margin-top: 1em;
  /*font-size: var(--wp--preset--font-size--small);*/
  font-weight: 500;
  color: #8f8f91;
  text-align: center;
  padding: 0 5px;
}
.video-modal__disclaimer p{
  margin: 0;
}

/* Unified Insights cards and video popup. */
.video-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-right: 48px;
    margin-bottom: var(--wp--preset--spacing--40);
}
.video-modal__header h3 { flex: 1; margin-bottom: 0; }
.video-modal__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 75px;
    object-fit: contain;
}
.video-modal__logo[hidden] { display: none; }
.video-modal__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.single-post-inner.single-post-inner--no-filters {
    grid-template-columns: minmax(0, 1fr);
    max-width: 960px;
    margin-inline: auto;
}
.insights-video-single__card { max-width: 800px; }
.insights-grid .post-card { min-width: 0; }
.insights-grid .post-card__img { flex-shrink: 0; }
.insights-grid .post-card__img--fallback { display: flex; background: #122e44; }
.insights-grid .post-card__title a { font-weight: inherit; }
.insights-page .pagination { margin-top: var(--wp--preset--spacing--50); }
.insights-page .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.insights-page .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #DCDCDC; text-decoration: none; }
.insights-page .page-numbers.current { background: var(--wp--preset--color--accent-1); color: #fff; }
@media (max-width: 640px) {
    .video-modal__header { gap: 12px; padding-right: 24px; }
    .video-modal__logo { max-width: 90px; max-height: 50px; }
}
