* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000;
    font-family: Arial, sans-serif;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.gallery img {
    width: calc(100% / 5 - 10px);
    /* 横向每行5张图片 */
    margin-bottom: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease-in-out;
    opacity: 0;
}

.gallery img.loaded {
    opacity: 1;
}

.gallery img:hover {
    transform: scale(1.1);
}

.con {
    text-align: center;
    filter: contrast(10);
}

.text {
    font-size: 40px;
    color: #fff;
    animation: expand 3s forwards;
}

.word {
    align-items: center;
    display: flex;
    flex-direction: column;

}

.title {
    font-size: 30px;
    transform: rotate(-10deg);
    display: block;
}

.title span {
    transform: skew(-10deg);
    opacity: 0;

    animation: move 1s forwards;

}

@keyframes move {
    from {
        opacity: 0;
        transform: skew(-10deg) translateY(300%);
    }

    to {
        opacity: 1;
        transform: skew(-10deg) translateY(0);
    }
}

.title:nth-child(1) {
    color: rgb(146, 177, 94);
}

.title:nth-child(2) {
    color: rgb(103, 180, 114);
}

.title:nth-child(3) {
    color: rgb(89, 151, 151);
}

.title:nth-child(4) {
    color: rgb(92, 114, 156);
}

.title:nth-child(5) {
    color: rgb(87, 72, 131);
}

@keyframes expand {
    from {
        letter-spacing: -50px;
        filter: blur(5px);
    }

    to {
        letter-spacing: 0px;
        filter: blur(0px);
    }
}
