.panolens-fullscreen-button {
    margin-right: 10px !important;
}

/* The stage was an inline height and a #444 ground printed into the markup,
   so it opened as the same dark grey box on every demo. */
.panorama_stage {
    position: relative;
    width: min(80vw, 1400px);
    height: 75vh;
    overflow: hidden;
    border-radius: var(--u-media-radius, 0);
    background-color: var(--u-sunken, #444);
    box-shadow: var(--u-shadow-3, none);
}

#panorama-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.panorama_section {
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    transition: 0.2s;
}

.opened {
    visibility: visible;
    opacity: 1;
}

.panorama_close {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -10;
    background: rgba(0, 0, 0, 0.5);
}

/* The close control and the switch strip take the theme's own surface, so the
   panorama opens in the palette the rest of the shop is wearing rather than in
   a white-on-#444 default that belonged to no demo. */
button.panorama_close {
    position: absolute;
    left: unset;
    top: 10px;
    right: 10px;
    bottom: unset;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    z-index: 100;
    background-color: var(--u-surface, #fff);
    color: var(--u-surface-fg, #555);
    border: 1px solid var(--u-border, transparent);
    box-shadow: var(--u-shadow-2, 0 0 15px rgba(0, 0, 0, 0.15));
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: border-color .22s var(--u-ease, ease);
}

button.panorama_close:hover {
    border-color: var(--u-border-strong, rgba(36, 31, 28, .28));
}

#buttons-container {
    display: flex;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background-color: var(--u-surface, rgba(255, 255, 255, .9));
    border: 1px solid var(--u-border, transparent);
    box-shadow: var(--u-shadow-1, none);
}

.panorama-switch {
    color: var(--u-surface-fg, #241F1C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    margin-right: 2px;
    background: none;
    border: none;
    cursor: pointer;
}

.panorama-switch:last-child {
    margin-right: 0;
}

.panorama-switch img {
    width: 30px;
    height: 30px;
}

@media screen and (max-width: 768px) {
    #buttons-container {
        padding: 3px;
    }

    .panorama-switch {
        width: 30px;
        height: 30px;
    }

    .panorama-switch img {
        width: 25px;
        height: 25px;
    }
}