.gt-social-videos {
    --gt-video-ink: #330c25;
    --gt-video-gap: 14px;
    color: var(--gt-video-ink);
    padding: clamp(32px, 5vw, 72px) 0;
}

.gt-social-videos__inner {
    margin-inline: auto;
}

.gt-social-videos__heading {
    margin: 0 0 20px;
    color: inherit;
    font-size: clamp(26px, 3.08vw, 42px);
    line-height: 1.1;
    font-weight: 450;
    text-align:center;
}

.gt-social-videos__rail {
    display: flex;
    gap: var(--gt-video-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(51, 12, 37, .45) transparent;
    padding-bottom: 12px;
}

.gt-social-videos__rail::-webkit-scrollbar {
    height: 7px;
}

.gt-social-videos__rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(51, 12, 37, .45);
}

.gt-social-videos__rail:focus-visible {
    outline: 2px solid var(--gt-video-ink);
    outline-offset: 3px;
}

.gt-social-video {
    position: relative;
    flex: 0 0 clamp(250px, 27vw, 320px);
    min-width: 0;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    background: var(--gt-video-ink);
    color: #fff;
}

.gt-social-video::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 35%, rgba(25, 6, 24, .15) 55%, rgba(25, 6, 24, .86) 100%);
}

.gt-social-video__poster,
.gt-social-video__player,
.gt-social-video__player video,
.gt-social-video__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gt-social-video__poster {
    display: block;
    object-fit: cover;
}

.gt-social-video__player video {
    display: block;
    object-fit: contain;
    background: #150b14;
}

.gt-social-video__player iframe {
    display: block;
    border: 0;
    background: #150b14;
}

.gt-social-video__play {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--gt-video-ink);
    cursor: pointer;
}

.gt-social-video__play-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    transition: transform .2s ease;
}

.gt-social-video__play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid currentColor;
}

.gt-social-video__play:hover .gt-social-video__play-icon {
    transform: scale(1.08);
}

.gt-social-video__play:focus-visible,
.gt-social-video__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.gt-social-video__caption {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    gap: 5px;
    margin: 0;
    pointer-events: none;
}

.gt-social-video__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    line-height: 1.3;
}

.gt-social-video__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.42;
}

.gt-social-video__close {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: none;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--gt-video-ink);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.gt-social-video.is-playing::after,
.gt-social-video.is-playing .gt-social-video__poster,
.gt-social-video.is-playing .gt-social-video__play,
.gt-social-video.is-playing .gt-social-video__caption {
    display: none;
}

.gt-social-video.is-playing .gt-social-video__close {
    display: grid;
}

@media (max-width: 760px) {
    .gt-social-videos__rail {
        gap: 12px;
        padding-bottom: 10px;
    }

    .gt-social-video {
        flex: 0 0 min(72vw, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gt-social-video__play-icon { transition: none; }
}