.image-switcher {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-switcher img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: opacity 0.5s ease-in-out;
}

.image-switcher .second-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.image-switcher:hover .second-img {
    opacity: 1;
}

.image-switcher:hover .first-img {
    opacity: 0;
}