/* Enable the added video controls while retaining the original image layout. */
video.vrc360-timelapse-frame {
    width: 100%;
    height: 100%;
    left: 0;
    min-width: 0;
    object-fit: contain;
    touch-action: auto;
    transform: none;
}
video.vrc360-timelapse-frame.is-active {
    pointer-events: auto;
}


.vrc360-timeline-text {
    position: absolute;
    right: 20px;
    bottom: 28px;
    z-index: 10;
    max-width: min(520px, calc(100% - 40px));
    max-height: 30%;
    overflow: auto;
    padding: 10px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    pointer-events: auto;
}
.vrc360-timeline-text[hidden] { display: none; }
/* Keep the panorama compass clear of the bottom-right caption position. */
.vrc360-stage .pnlm-compass { bottom: 24px; right: 24px; }

/* Gold compass rose on a transparent background, rotated by the aerial viewer. */
.vrc360-stage .pnlm-compass {
    position: absolute;
    right: max(38px, calc(env(safe-area-inset-right, 0px) + 28px));
    bottom: max(38px, calc(env(safe-area-inset-bottom, 0px) + 28px));
    width: 112px;
    height: 112px;
    z-index: 5;
    border: 0;
    border-radius: 50%;
    background: transparent url('../images/compass-rose.svg?v=2') center / 94% no-repeat;
    box-shadow: none;
    pointer-events: none;
    transform-origin: center;
}
.vrc360-stage .pnlm-compass::before,
.vrc360-stage .pnlm-compass::after,
.vrc360-stage .pnlm-compass .compass-direction,
.vrc360-stage .pnlm-compass .compass-needle { display: none; }
@media (max-width: 600px) {
    .vrc360-stage .pnlm-compass {
        width: 92px;
        height: 92px;
        right: max(30px, calc(env(safe-area-inset-right, 0px) + 22px));
        bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 22px));
    }
}

/* Month ruler adapted from the supplied reference assets. */
.vrc360-month-slider {
    position: absolute;
    z-index: 30;
    left: calc(var(--vrc360-panel-width) + (100% - var(--vrc360-panel-width)) / 2);
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(900px, calc(100% - var(--vrc360-panel-width) - 30px));
    box-sizing: border-box;
    padding: 25px 20px 17px;
    border: 1px solid rgba(217, 182, 122, .29);
    border-radius: 15px;
    background: #10171e;
    color: #e5c389;
    box-shadow: 0 14px 45px rgba(0, 0, 0, .26);
    font-family: Arial, sans-serif;
    pointer-events: auto;
}
.vrc360-month-slider[hidden] { display: none; }

.vrc360-ruler-scale { display: flex; align-items: center; gap: 12px; }
.vrc360-month-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(212, 181, 124, .6);
    border-radius: 50%;
    background: #1c2730;
    color: #e5c389;
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
}
.vrc360-month-next:not(:disabled) { background: #e5c389; color: #10171e; }
.vrc360-month-arrow:disabled { opacity: .45; cursor: default; }
.vrc360-month-arrow:hover:not(:disabled) { background: #e5c389; color: #10171e; }
.vrc360-month-viewport {
    flex: 1;
    position: relative;
    min-width: 0;
    height: 82px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}
.vrc360-month-viewport::-webkit-scrollbar { display: none; }
.vrc360-month-viewport.is-dragging { cursor: grabbing; }
.vrc360-month-list { position: relative; display: flex; width: max-content; min-width: 100%; height: 76px; }
.vrc360-month-list::after { content: ''; position: absolute; top: 39px; left: 0; right: 0; height: 1px; background: #c0c9d3b3; pointer-events: none; }
.vrc360-month-item {
    appearance: none;
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8b9299;
    font: 400 11px/1.3 Arial, sans-serif;
    cursor: pointer;
}
.vrc360-month-label { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.vrc360-month-item::before { content: ''; position: absolute; left: 0; right: 0; top: 39px; height: 13px; background: repeating-linear-gradient(to right, transparent 0, transparent 9px, #b1bbc580 9px, #b1bbc580 10px); }
.vrc360-month-dot { position: absolute; z-index: 3; left: 50%; top: 34px; transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%; border: 1px solid #c6ab79; background: #10171e; }
.vrc360-month-item.is-active { color: #e5c389; font-weight: 700; }
.vrc360-month-item.is-active .vrc360-month-dot { background: #e5c389; box-shadow: 0 0 10px #f0c26f99; }
.vrc360-month-item.is-active::after { content: ''; position: absolute; z-index: 4; left: 50%; top: 23px; width: 2px; height: 46px; transform: translateX(-50%); background: #e5b967; box-shadow: 0 0 11px rgba(231, 184, 95, .55); pointer-events: none; }
.vrc360-month-item:focus-visible, .vrc360-month-arrow:focus-visible, .vrc360-month-viewport:focus-visible { outline: 2px solid #edca8d; outline-offset: -2px; }
.vrc360-tour.vrc360-menu-closed .vrc360-month-slider { left: 50%; width: min(94%, 900px); }
.vrc360-tour:has(.vrc360-month-slider:not([hidden])) .vrc360-timeline-text { bottom: 160px; }
@media (max-width: 1024px) {
    .vrc360-month-slider { left: 50%; width: 94%; bottom: max(12px, env(safe-area-inset-bottom)); padding: 20px 10px 12px; }
    .vrc360-ruler-scale { gap: 6px; }
    .vrc360-month-item { flex-basis: 124px; width: 124px; }
    .vrc360-month-arrow { flex-basis: 30px; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .vrc360-month-viewport { scroll-behavior: auto; }
}

/* Fixed January–December calendar spacing; only uploaded months are selectable. */
.vrc360-month-item:disabled { cursor: default; color: #7f8790; }
.vrc360-month-item:disabled .vrc360-month-dot { border-color: #616973; background: #10171e; }
