* {
    padding: 0;
    margin: 0;
    list-style: none;
}
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
h1, h2 {
    text-align: center;
}
img {
    width: 100%;
}

.collage {
    width: 100vw;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pictures {
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    max-width: 1000px;
    justify-content: center;
}



.picture {
    position: relative;
    padding: .5rem;
    margin: -1rem -3rem;
    width: 300px;
    max-width: 50vw;
    box-sizing: border-box;
    background-color: white;
    border: 2px outset rgb(223, 223, 223);
    overflow: hidden;
    box-shadow: 2px 2px 5px black;

}
.picture label {
    display: block;
    text-transform: capitalize;
    position: absolute;
    top: 10%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 3px;
    left: -200px;
} 

.picture, .picture label {
    transition: .5s;
}

.picture:nth-child(odd) {
    rotate: 10deg;
}
.picture:nth-child(even) {
    rotate: -10deg;
}
.picture:nth-child(3n) {
    rotate: 2deg;
}


.picture:hover {
    rotate: 0deg;
    scale: 1.5;
    box-shadow: 0 0 10px black;
    z-index: 1;
}
.picture:hover label {
    left: .5rem;
}

@media (max-width: 600px) {
    .picture:hover {
        scale: 1.3;
    }
}