.wp-block-image.is-style-screenshot {
    border: 1px solid black;
    box-shadow: var(--wp--preset--shadow--natural);
}

.wp-block-image[class*=is-style-polaroid] {
    box-sizing: border-box;
    padding: 1rem;
    background-color: #fff;
    box-shadow:
        0 4px 10px 0 rgba(0, 0, 0, 0.3),
        0 0 4rem rgba(255, 255, 235, 0.5) inset;
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

.wp-block-image[class*=is-style-polaroid] figcaption {
    color: var(--wp--preset--color--contrast);
    margin-top: 1rem;
    margin-bottom: 0;
    font-style: normal;
    font-weight: 400;
    font-family: var(--wp--preset--font-family--ubuntu);
    font-size: var(--wp--preset--font-size--medium);
    text-align: center;
}

.wp-block-image.is-style-polaroid-tilt-left {
    /* Applying rotation to the entire block including padding and border */
    transform: scale( 0.99, 0.99 ) rotate(-2deg);
}

.wp-block-image.is-style-polaroid-tilt-right {
    /* Applying rotation to the entire block including padding and border */
    transform: scale( 0.99, 0.99 ) rotate(2deg);
}

.wp-block-image[class*=is-style-polaroid-tilt] {
    transition: all 0.2s ease-in-out;
}

.wp-block-image[class*=is-style-polaroid-tilt]:hover {
    transform: scale( 1, 1 ) rotate( 0 );
}

/* Add hover effect for straight polaroid images */
.wp-block-image.is-style-polaroid:not(.is-style-polaroid-tilt-left):not(.is-style-polaroid-tilt-right):hover {
    transform: rotate(2deg);
}
