/* Click-to-load gate over a video box (YouTube) or in place of a post (Instagram). */
.consent-gate {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: #111;
    color: #f8f9fa;
    cursor: pointer;
}

.consent-gate[hidden] {
    display: none !important;
}

.consent-gate__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.consent-gate__play {
    position: relative;
    align-self: center;
    /* Centred in the space left above the note */
    margin: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.consent-gate--youtube .consent-gate__play svg {
    width: 68px;
    height: 48px;
}

.consent-gate__play-bg {
    fill: #212121;
    fill-opacity: .85;
    transition: fill .1s, fill-opacity .1s;
}

.consent-gate:hover .consent-gate__play-bg,
.consent-gate__play:focus-visible .consent-gate__play-bg {
    fill: #f00;
    fill-opacity: 1;
}

.consent-gate__note {
    position: relative;
    margin: 0;
    padding: 1.6rem .9rem .6rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85) 35%);
    font-size: .78rem;
    line-height: 1.4;
    cursor: default;
}

.consent-gate__note a {
    color: inherit;
    text-decoration: underline;
}

.consent-gate__remember {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
    cursor: pointer;
}

.consent-gate__remember input {
    margin: 0;
    accent-color: #2ec4b6;
}

/* Instagram: no thumbnail, the gate takes the place of the post. */
.consent-gate--instagram {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, #4f5bd5, #962fbf 35%, #d62976 65%, #fa7e1e);
}

.consent-gate--instagram .consent-gate__play {
    padding: .6rem 1rem;
    border-radius: 2rem;
    background: rgba(0, 0, 0, .45);
    font-weight: 600;
}

.consent-gate--instagram .consent-gate__play svg {
    width: 1.4rem;
    height: 1.4rem;
}

.consent-gate--instagram .consent-gate__play:hover,
.consent-gate--instagram .consent-gate__play:focus-visible {
    background: rgba(0, 0, 0, .65);
}

@media (max-width: 575.98px) {
    .consent-gate__note {
        padding: .8rem .7rem .45rem;
        font-size: .68rem;
        line-height: 1.3;
    }

    .consent-gate--youtube .consent-gate__play svg {
        width: 54px;
        height: 38px;
    }
}
