/* Only affects products with MP4. */
.ambra-media-stage { position:relative; width:100%; }
.ambra-media-stage .ambra-video-pane[hidden], .ambra-media-stage #open-gallery[hidden] { display:none !important; }
.ambra-video-pane { width:100%; aspect-ratio:1/1; background:#111; display:flex; align-items:center; justify-content:center; }
.ambra-video-pane video { display:block; width:100%; height:100%; object-fit:contain; }
.ambra-video-thumb button { border:1px solid #b89b60; border-radius:5px; background:#171717; color:#d6bb7b; cursor:pointer; min-height:50px; padding:8px 12px; font-weight:600; }
.ambra-video-thumb button:hover { background:#b89b60; color:#111; }

/* All product thumbnails visible; keep video and photos in one responsive grid. */
.ambra-detail .mini-gallery .imagesSmall {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    list-style: none;
}
.ambra-detail .mini-gallery .imagesSmall > li {
    display: block !important;
    float: none !important;
    position: static;
    flex: 0 0 80px;
    width: 80px;
    height: auto;
    margin: 0 !important;
    padding: 0;
}
.ambra-detail .mini-gallery .imagesSmall > li > a { display: block; }
.ambra-detail .mini-gallery .imagesSmall .mini-img {
    display: block;
    width: 80px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}
.ambra-detail .mini-gallery .ambra-video-thumb button {
    width: 80px;
    min-height: 80px;
    padding: 5px;
}

/* Subtle rounded corners matching product cards. */
.ambra-detail #foto-detail,
.ambra-detail .ambra-video-pane,
.ambra-detail .ambra-video-pane video {
    border-radius: 7px;
}
.ambra-detail .ambra-video-pane { overflow: hidden; }
.ambra-detail .mini-gallery .imagesSmall .mini-img,
.ambra-detail .mini-gallery .ambra-video-thumb button {
    border-radius: 6px;
}
.ambra-detail .mini-gallery .imagesSmall > li > a {
    border-radius: 6px;
    overflow: hidden;
}
