.ty-product-page-content .ty-product-page-img-holder .ty-img-holder { border: 0; }

/* Center the complete product layout, including the information tabs. */
.ty-product-page-content,
.ty-product-page-additional-content {
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    box-sizing: border-box;
}

.ty-product-page-content > .ty-product-page-img-holder,
.ty-product-page-content > .ty-product-page-details-holder {
    min-width: 0;
}

/* Keep the desktop gallery compact on wide screens. */
@media (min-width: 960px) {
    .ty-product-page-img-holder-desktop {
        width: 100%;
        max-width: 440px;
        margin-inline: auto;
        align-content: flex-start;
    }
    .ty-product-page-img-holder-desktop .ty-img-holder.featured {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 12px;
    }
    .ty-product-page-img-holder-desktop .ty-img-holder.featured img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 380px;
        object-fit: contain;
    }
}

/* Leave breathing room below the fixed desktop navigation. */
@media (min-width: 960px) {
    .ty-product-page-content { padding-top: 24px; }
}

/* Use the existing swipeable gallery on desktop as well as mobile. */
@media (min-width: 960px) {
    #main-content .ty-product-page-img-holder-mobile {
        display: block; width: 100%; max-width: 440px; margin-inline: auto;
    }
    #main-content .ty-product-page-img-holder-mobile .product-splide .splide__track {
        aspect-ratio: 1 / 1; max-height: 404px;
    }
    #main-content .ty-product-page-img-holder-mobile .product-splide .splide__slide img {
        max-height: 380px; align-self: center;
    }
    #main-content .ty-product-page-img-holder-mobile .product-splide .splide__slide {
        display: flex; align-items: center; justify-content: center;
    }
}
