#egi_storiesVideos.egi_storiesReveal:has(> .gwif--youtube),
#egi_storiesSocial.egi_storiesReveal:has(> .gwif--facebook) {
    opacity: 1;
    transform: none;
}

.gwif {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #24282a;
}

.gwif--youtube {
    margin-block: clamp(1.5rem, 3vw, 2.5rem) 1rem;
}

.gwif .gwif__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gwif .gwif__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #fff;
    color: #24282a;
    text-align: left;
}

.gwif .gwif__media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.gwif .gwif__video,
.gwif .gwif__player,
.gwif .gwif__playlist {
    aspect-ratio: 16 / 9;
    background: #14171a;
}

.gwif .gwif__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwif .gwif__photo {
    aspect-ratio: 4 / 3;
    background: #eff2f3;
}

.gwif .gwif__photo img {
    object-fit: contain;
}

.gwif .gwif__play {
    position: absolute;
    inset: auto auto 0.8rem 0.8rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00539f;
}

.gwif .gwif__play::after {
    width: 0;
    height: 0;
    margin-left: 0.18rem;
    border-block: 0.4rem solid transparent;
    border-left: 0.66rem solid #fff;
    content: "";
}

.gwif .gwif__body {
    padding: clamp(1rem, 2vw, 1.5rem);
    overflow-wrap: anywhere;
}

.gwif .gwif__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.85rem;
    color: #52585a;
    font-size: 0.875rem;
    line-height: 1.4;
}

.gwif .gwif__meta span {
    color: #00539f;
    font-weight: 800;
}

.gwif .gwif__title {
    margin: 0.55rem 0 0;
    font-size: clamp(1.125rem, 1.55vw, 1.4rem);
    font-weight: 800;
    line-height: 1.23;
}

.gwif .gwif__title a {
    color: #1d2529;
    text-decoration: none;
}

.gwif .gwif__title a:hover {
    color: #00539f;
    text-decoration: underline;
}

.gwif .gwif__message {
    margin: 0.75rem 0 0;
    color: #24282a;
    font-size: 1rem;
    line-height: 1.55;
    white-space: pre-line;
}

.gwif .gwif__footer {
    margin-top: 1.25rem;
    text-align: right;
}

.gwif .gwif__footer a {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.23em;
}

.gwif a:focus-visible {
    outline: 3px solid #00539f;
    outline-offset: 2px;
}

.gwif .gwif__footer a:focus-visible {
    outline-color: #fff;
}

.gwif .gwif__video:focus-visible {
    outline: 4px solid #ffd600;
    outline-offset: -4px;
    z-index: 1;
}

.gwif .gwif__player,
.gwif .gwif__playlist,
.gwif .gwif__timeline {
    display: block;
    width: 100%;
    margin-inline: auto;
    border: 0;
}

.gwif .gwif__playlist {
    max-width: 56rem;
}

.gwif .gwif__timeline {
    max-width: 500px;
    height: 620px;
    background: #fff;
}
