.meteone-webcam-popup {
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1f2a;
    color: #fff;
    line-height: 1.35;
}

.meteone-webcam-gallery {
    position: relative;
    display: grid;
    width: 100%;
    overflow: hidden;
    background: #0b1f2a;
    color: #fff;
    grid-template-rows: minmax(0, 1fr) auto;
}

.meteone-webcam-gallery__viewport {
    display: grid;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0b1f2a;
    place-items: center;
}

.meteone-webcam-gallery__media,
.meteone-webcam-gallery__image-button {
    display: block;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0b1f2a;
}

.meteone-webcam-gallery__media {
    object-fit: contain;
}

.meteone-webcam-gallery__image-button {
    cursor: zoom-in;
}

.meteone-webcam-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 40px;
    height: 48px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 48%);
    border-radius: 10px;
    background: rgb(11 31 42 / 78%);
    box-shadow: 0 2px 9px rgb(0 0 0 / 28%);
    color: #fff;
    cursor: pointer;
    font: 700 34px/1 var(--meteone-map-font);
    place-items: center;
    transform: translateY(-70%);
}

.meteone-webcam-gallery__arrow.is-previous {
    left: 7px;
}

.meteone-webcam-gallery__arrow.is-next {
    right: 7px;
}

.meteone-webcam-gallery__toolbar {
    z-index: 1;
    display: flex;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    background: #123b52;
    font: 650 12px/1.2 var(--meteone-map-font);
}

.meteone-webcam-gallery__navigation {
    display: inline-flex;
    min-width: 34px;
    align-items: center;
    justify-content: center;
    margin-right: auto;
}

.meteone-webcam-gallery__counter {
    min-width: 34px;
    color: #fff;
    text-align: center;
}

.meteone-webcam-gallery__expand,
.meteone-webcam-gallery__external {
    display: inline-flex;
    min-height: 30px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid rgb(255 255 255 / 62%);
    border-radius: 8px;
    background: rgb(255 255 255 / 10%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.meteone-webcam-gallery__expand {
    margin-left: auto;
}

.meteone-webcam-gallery__expand:hover,
.meteone-webcam-gallery__external:hover,
.meteone-webcam-gallery__arrow:hover {
    background: #00669c;
    color: #fff;
}

.meteone-webcam-gallery__expand:focus-visible,
.meteone-webcam-gallery__external:focus-visible,
.meteone-webcam-gallery__arrow:focus-visible,
.meteone-webcam-gallery__image-button:focus-visible,
.meteone-webcam-overlay__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.meteone-webcam-gallery__status {
    display: grid;
    min-height: 180px;
    box-sizing: border-box;
    margin: 0;
    padding: 24px;
    align-self: stretch;
    color: #fff;
    font: 600 14px/1.35 var(--meteone-map-font);
    place-items: center;
    text-align: center;
}

.meteone-webcam-overlay {
    position: absolute;
    z-index: 1200;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    overflow: hidden;
    padding: 22px;
    background: rgb(5 18 26 / 76%);
    color: #fff;
    container-type: size;
    line-height: 1.35;
    overscroll-behavior: contain;
    place-items: center;
    touch-action: none;
}

.meteone-webcam-overlay[hidden],
.meteone-webcam-gallery__arrow[hidden],
.meteone-webcam-gallery__external[hidden],
.meteone-webcam-gallery__counter[hidden],
.meteone-webcam-gallery__toolbar[hidden] {
    display: none;
}

.meteone-live-stations .meteone-webcam-gallery__counter[hidden],
.meteone-live-stations .meteone-webcam-gallery__toolbar[hidden] {
    display: none !important;
}

.meteone-webcam-overlay__dialog {
    position: relative;
    display: grid;
    box-sizing: border-box;
    width: min(94%, 900px);
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 18px;
    background: #0b1f2a;
    box-shadow: 0 10px 38px rgb(0 0 0 / 44%);
    grid-template-rows: auto auto;
}

@supports (width: 1cqw) {
    .meteone-webcam-overlay__dialog {
        width: min(94cqw, 960px, max(220px, calc(170cqh - 190px)));
    }
}

.meteone-webcam-overlay__title {
    z-index: 2;
    overflow: hidden;
    margin: 0;
    padding: 12px 16px 10px;
    color: #fff;
    font: 700 20px/1.2 var(--meteone-map-font);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meteone-live-stations button.meteone-webcam-overlay__close {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    display: grid !important;
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    appearance: none !important;
    background: #123b52 !important;
    box-shadow: 0 3px 12px rgb(0 0 0 / 38%) !important;
    color: #fff !important;
    cursor: pointer;
    font: 700 22px/1 var(--meteone-map-font) !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    place-items: center !important;
    text-indent: 0 !important;
    text-transform: none !important;
    transform: translate(38%, -38%) !important;
}

.meteone-live-stations button.meteone-webcam-overlay__close::before,
.meteone-live-stations button.meteone-webcam-overlay__close::after {
    display: none !important;
    content: none !important;
}

.meteone-live-stations button.meteone-webcam-overlay__close:hover {
    background: #00669c !important;
}

.meteone-webcam-overlay__body {
    min-width: 0;
    min-height: 0;
}

.meteone-webcam-overlay__body {
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 10px 10px;
    border-radius: 0 0 17px 17px;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__viewport {
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__viewport,
.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__media {
    background: transparent;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__toolbar {
    justify-content: center;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__counter {
    margin-right: 0;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__navigation {
    margin-right: 0;
}

.meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__arrow {
    width: 48px;
    height: 58px;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .meteone-webcam-gallery__toolbar {
        min-height: 44px;
    }

    .meteone-webcam-gallery__arrow {
        width: 44px;
        height: 52px;
    }

    .meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        justify-content: normal;
    }

    .meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__navigation {
        grid-column: 2;
        gap: 6px;
    }

    .meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__arrow {
        position: static;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 28px;
        transform: none;
    }

    .meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__external {
        grid-column: 3;
        width: 34px;
        min-width: 34px;
        padding: 0;
        justify-self: end;
        font-size: 0;
    }

    .meteone-webcam-gallery.is-expanded .meteone-webcam-gallery__external::before {
        content: '\2197';
        font-size: 18px;
    }

    .meteone-webcam-overlay__title {
        padding-left: 12px;
        font-size: 17px;
    }

    .meteone-webcam-overlay__body {
        padding: 0;
    }

    .meteone-webcam-overlay {
        padding: 20px;
    }
}
