.eumg-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    box-sizing: border-box;
}
.eumg-product-gallery {
    float: left;
    width: 48%;
    margin-bottom: 2em;
}
@media (max-width: 768px) {
    .eumg-product-gallery {
        float: none;
        width: 100%;
    }
}
.eumg-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.eumg-slide {
    width: 100%;
    text-align: center;
}
.eumg-slide[hidden] {
    display: none !important;
}
.eumg-slide[data-type="video"],
.eumg-slide[data-type="youtube"] {
    background: #000;
}
.eumg-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.eumg-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72vh;
    margin: 0 auto;
    object-fit: contain;
}
.eumg-video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.eumg-video {
    display: block;
    width: 100%;
    max-height: 72vh;
    margin: 0 auto;
    background: #000;
}
.eumg-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.eumg-video-frame.is-short {
    aspect-ratio: 9 / 16;
    max-height: 72vh;
    max-width: 405px;
    margin: 0 auto;
}
.eumg-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Setas discretas no palco */
.eumg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}
.eumg-stage:hover .eumg-nav,
.eumg-nav:focus {
    opacity: 1;
}
.eumg-nav:hover {
    background: rgba(17, 24, 39, 0.85);
}
.eumg-prev {
    left: 10px;
}
.eumg-next {
    right: 10px;
}

/* Faixa de miniaturas selecionáveis */
.eumg-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
}
.eumg-thumb-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.eumg-thumb-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #f3f4f6;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.eumg-thumb-btn:hover,
.eumg-thumb-btn:focus {
    opacity: 1;
    border-color: #9ca3af;
}
.eumg-thumb-btn.is-active {
    opacity: 1;
    border-color: #111827;
}
.eumg-thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}
.eumg-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #1f2937;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    gap: 2px;
}
.eumg-thumb-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.eumg-thumb-play svg {
    margin-left: 2px;
}

@media (max-width: 600px) {
    .eumg-nav {
        opacity: 0.85;
    }
    .eumg-thumb-btn {
        width: 58px;
        height: 58px;
    }
}
