/* Base Styles for WP Woo Image Swap */
.wp-wpis-image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 0;
}

.wp-wpis-image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-wpis-image-wrapper .wp-wpis-main-image {
    width: 100%;
}

.wp-wpis-image-wrapper .wp-wpis-secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    object-fit: cover;
}

/* On hover, enable clicks on the secondary image */
.wp-wpis-image-wrapper.wp-wpis-has-secondary:hover .wp-wpis-secondary-image {
    pointer-events: auto;
}

/* Default state for main image */
.wp-wpis-image-wrapper.wp-wpis-has-secondary .wp-wpis-main-image {
    opacity: 1;
}