.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    }

    .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    }

    .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    }

    img.lazyload {
      opacity: 0;
      }


    @keyframes spin {
    to {
       transform: rotate(360deg);
    }
    }