.vehicle-media-embed {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}
.vehicle-media-embed > iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}
.vehicle-media-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}
.vehicle-media-help span { flex: 1 1 240px; }
.vehicle-media-help a {
    margin: 0;
    padding: 7px 10px;
    color: var(--media-link-color, #b2d2ff);
    border: 1px solid var(--media-border-color, #395272);
    border-radius: 7px;
    text-decoration: none;
}
.vehicle-media-help a:hover,
.vehicle-media-help a:focus-visible { color: #fff; background: #155fc1; }

.vehicle360 {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #020916;
    color: #fff;
}
.vehicle360-tabs, .vehicle360-footer, .vehicle360-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vehicle360-tabs { justify-content: center; padding: 8px; }
.vehicle360-footer { justify-content: space-between; flex-wrap: wrap; padding: 8px 12px; }
.vehicle360 button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #6981a5;
    border-radius: 7px;
    background: #102749;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.vehicle360 button[aria-pressed="true"], .vehicle360 button:hover { background: #2466c6; }
.vehicle360 button:focus-visible, .vehicle360-stage:focus-visible { outline: 3px solid #83b4ff; outline-offset: -3px; }
.vehicle360 button:disabled { opacity: .45; cursor: wait; }
.vehicle360-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: pan-y; }
.vehicle360[data-view="exterior"] .vehicle360-stage { cursor: grab; user-select: none; }
.vehicle360[data-view="exterior"] .vehicle360-stage:active { cursor: grabbing; }
.vehicle360 .vehicle360-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; background: #020916; }
.vehicle360-panorama { width: 100%; height: 100%; }
.vehicle360-panorama .pnlm-render-container { cursor: grab; }
.vehicle360-status { max-width: 100%; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-lightbox-media > .vehicle360 { height: min(68dvh, 720px); min-height: 240px; }
.catalog-lightbox .catalog-lightbox-dialog { width: 100%; min-width: 0; }
.detail-media-content > .vehicle360 { height: min(64vh, 620px); min-height: 240px; }
@media (max-width: 600px) {
    .vehicle360-tabs { padding: 6px; }
    .vehicle360-footer { padding: 6px 8px; gap: 5px; }
    .vehicle360 button { padding: 5px 9px; }
    .vehicle360-status { font-size: 10px; }
}
