@import url('https://fonts.googleapis.com/css2?family=Plaster&display=swap');

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: #EEE;
    font-family: "Plaster", system-ui;
    font-weight: 400;
    font-style: normal;
}

h1 {
    text-align: center;
    font-size: 14svw;
    line-height: 10svw;
    text-transform: uppercase;
    background-image: url(../images/three-cats.jpg);
    background-size: 90%;
    background-position: 50% 50%;
    background-clip: text;
    color: transparent;  
}

section.three_boxes {
    margin: 150px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}

section.three_boxes div {
    /* flex: 0 0 20%; */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 20%;
    aspect-ratio: 1;
    border: 8px solid hotpink;
    transform: rotate(-45deg);
    border-radius: 0%;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 500px;
}

section.three_boxes div figure {
    background-image: url(../images/three-cats.jpg);
    background-size: 400%;
    width: 145%;
    aspect-ratio: 1;
    rotate: 45deg;
    position: absolute;
    top: -23%; left: -23%;
}

section.three_boxes div:nth-child(1) figure {
    background-position: 15% 35%;
}

section.three_boxes div:nth-child(2) figure {
    background-position: 49% 40%;
}

section.three_boxes div:nth-child(3) figure {
    background-position: 75% 45%;
    background-size: 450%;    
}