/* Scoped to the existing shortcode; thumbnail and zoom geometry stay native. */
#product_gallery_shortcode .fb-gallery-media-fixed.nickx-slider-for,
#product_gallery_shortcode .fb-gallery-media-fixed > .nswiper-wrapper,
#product_gallery_shortcode .fb-gallery-media-fixed > .nswiper-wrapper > .nswiper-slide {
    height: var(--fb-gallery-height) !important;
    min-height: 0 !important;
    max-height: var(--fb-gallery-height) !important;
}

#product_gallery_shortcode .fb-gallery-media-fixed > .nswiper-wrapper > .nswiper-slide {
    align-items: center;
}

#product_gallery_shortcode .fb-gallery-media-fixed > .nswiper-wrapper > .nswiper-slide > img:not(.zoomImg),
#product_gallery_shortcode .fb-gallery-media-fixed .tc_video_slide .product_video_iframe {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--fb-gallery-height) !important;
    max-height: var(--fb-gallery-height) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center;
}

#product_gallery_shortcode .fb-gallery-media-fixed .fluid-width-video-wrapper {
    width: 100% !important;
    height: var(--fb-gallery-height) !important;
    padding: 0 !important;
}

#product_gallery_shortcode .fb-gallery-media-fixed .tc_video_slide .overlay-div {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Hide unusable audio controls where the browser permits it. */
video[data-fb-silent]::-webkit-media-controls-mute-button,
video[data-fb-silent]::-webkit-media-controls-volume-slider {
    display: none !important;
}
