.mg-product-gallery {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 26px;
    padding: 16px;
    display: grid;
    grid-template-areas: "thumbs main";
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.mg-product-gallery__thumbs {
    grid-area: thumbs;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mg-product-gallery__main {
    grid-area: main;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
}

.mg-product-gallery__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
}

.mg-product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 36px;
}

.mg-product-gallery__placeholder {
    min-height: 100%;
}

.mg-product-gallery__thumb {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    display: grid;
    place-items: center;
    padding: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}

.mg-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mg-product-gallery__thumb.is-active {
    border-color: rgba(130, 1, 0, .4);
    box-shadow: inset 0 0 0 1px rgba(130, 1, 0, .12);
}

.mg-product-gallery__thumb--more {
    font-size: 12px;
    font-weight: 800;
    color: #820100;
}

/* Arrows */
.mg-product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    color: #374151;
    transition: .15s;
}

.mg-product-gallery__arrow:hover {
    background: #fff;
    border-color: rgba(130, 1, 0, .28);
    color: #820100;
}

.mg-product-gallery__arrow--prev {
    left: 14px;
}

.mg-product-gallery__arrow--next {
    right: 14px;
}

/* Dots */
.mg-product-gallery__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}

.mg-product-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.mg-product-gallery__dot.is-active {
    background: #820100;
    transform: scale(1.25);
}