.product__carousel {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.product__carousel a {
    display: block;
    max-width: 100%;
}

.product__carousel .gallery-top {
    border: 1px solid #ebebeb;
    border-radius: 3px;
    margin-bottom: 12px;
    width: 100%;
    height: auto !important;
    overflow: hidden;
}
.product__carousel .gallery-top .swiper-wrapper {
    height: auto;
}
.product__carousel .gallery-top .swiper-slide {
    position: relative;
    overflow: hidden;
    height: auto;
}
.product__carousel .gallery-top .swiper-slide a {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}
.product__carousel .gallery-top .swiper-slide a img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.product__carousel .gallery-top .swiper-slide .easyzoom {
    display: block;
    width: 100%;
    max-width: 100%;
}
.product__carousel .gallery-top .swiper-slide .easyzoom-flyout img {
    min-width: 100%;
    min-height: 100%;
}

/* 手机：一行 2 张 */
.image-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
}

.image-row__item {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    overflow: hidden;
    background: #fafafa;
    box-sizing: border-box;
}

.image-row__item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.image-row__portrait-group {
    display: contents;
}

/* 电脑：横图一行 1 张，竖图一组内一行 3 张 */
@media (min-width: 768px) {
    .product__carousel {
        max-width: 700px;
        overflow: visible;
    }

    .image-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10px;
        width: 200%;
        max-width: none;
    }

    .image-row__item--landscape {
        width: 100%;
        max-width: 100%;
    }

    .image-row__portrait-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .image-row__item--portrait {
        width: 100%;
        max-width: 100%;
    }
}
