.c-live-overlay {
    display: flex;
    flex-direction: column;
    background-color: #efefef;

    &.c-live-overlay--blurred {
        background: none;
        backdrop-filter: blur(.5rem);

        .c-live__date {
            color: #fff;
        }

        @supports not (backdrop-filter: blur(0)) {
            background-color: #efefef;

            .c-live__date {
                color: theme('colors.gray.900');
            }
        }
    }
}

// stylelint-disable

.c-live__top {
    flex: 1 0 auto;
    padding-bottom: 2.5rem;
}

.c-live__bottom {
    flex-shrink: 0;
}

.c-live__date {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: theme('colors.gray.900');
    font-weight: bold;

    @screen lg {
        margin-bottom: 5rem;
    }
}

// Live Columns

.c-live__columns {
    margin-right: -.5rem;
    margin-left: -.5rem;

    @screen lg {
        display: flex;
        flex-wrap: wrap;
    }
}

.c-live__column {
    padding: 0 .5rem;
    width: 100%;

    @screen lg {
        width: 33.33333%;
    }
}

.c-live__column + .c-live__column {
    margin-top: 1rem;

    @screen lg {
        margin-top: 0;
    }
}

// Live Item

.c-live-item {
    padding: 1rem;
    border: 1px solid theme('colors.gray.200');
    background: #fff;

    .c-icon--live-tab {
        top: 0;
        margin-left: auto;
        font-size: 1.5rem;
        transition: all .2s linear;
    }

    @screen lg {
        .c-icon--live-tab {
            display: none;
        }
    }
}

.c-live-item__title {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: theme('colors.primary.500');
    text-decoration: none;
    font-weight: bold;
    font-size: 1.375rem;

    h3 {
        font-size: inherit;
        margin: 0;
    }

    @screen lg {
        color: theme('colors.primary.500');
        cursor: default;
        pointer-events: none;
    }

    &[aria-expanded=true] {
        .c-icon--live-tab {
            transform: rotate(180deg);
        }
    }
}

.c-live-item__title--backend {
    pointer-events: auto;
}

.c-live-item__content {
    display: none;
    margin-top: 1rem;

    &.is-target,
    :target {
        display: block;
    }

    &::hover {
        text-decoration: none;
    }

    @screen lg {
        display: block;
    }
}

.c-live-item + .c-live-item {
    margin-top: 1rem;
}

// Live Webcam

.c-live-webcam {
    position: relative;
    overflow: hidden;
    display: block;
    flex: none;
    min-width: 100px;
    max-width: 30rem;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: block;
        height: 30%;
        width: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 100%);
        opacity: .5;
    }

    @screen lg {
        max-width: 21rem;
        margin-left: 0;
        margin-right: 0;
    }
}

.c-live-webcam__image {
    font-family: 'object-fit:cover', inherit;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.c-live-webcam__title {
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    font-size: .875rem;
    color: #fff;
    z-index: 1;
}

.c-live-weather__page-link,
.c-live-webcam__page-link {
    display: block;
    color: theme('colors.primary.500');
    text-decoration: none;
    margin-top: 1rem;

    &:hover,
    &:focus {
        color: theme('colors.primary.700');
        text-decoration: underline;
    }
}

.c-live-webcam + .c-live-webcam {
    margin-top: 1rem;
}

// Events Widget Overrides
.c-live-item__content {
    .tb-event-teaser-list-item__topline {
        color: theme('colors.gray.700');
    }

    h3.tb-event-teaser-list-item__title {
        font-size: 1rem;
        margin-top: .25rem
    }

    .tb-event-teaser-list-item__subline {
        margin-top: .25rem;

        &:empty {
            display: none;
        }
    }

    .tb-event-teaser-list-item + .tb-event-teaser-list-item {
        padding-top: .75rem;
        border-top: 1px solid theme('colors.gray.light');
        margin-top: .75rem;
    }
}

.c-live-overlay {
    .tb-weather-list {
        flex-direction: column;
    }
}

// stylelint-enable