.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(1, minmax(200px, 1fr));

    box-sizing: border-box;
    background: rgba(217, 217, 217, 0.58);
    border: 1px solid white;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    border-radius: 17px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    user-select: none;
    font-weight: bolder;
    color: black;
}

.gallery-item:hover {
    border: 1px solid black;
    transform: scale(1.05) rotateZ(1.7deg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 17px 17px 0 0;
    margin: 0px;

}

.caption {
    text-align: center;
    padding: 10px;
}

/* 添加链接的样式，使其更像正常文本 */
.gallery a {
    text-decoration: none;
    /* 去掉下划线 */
    color: #333;
    /* 设置字体颜色 */
    font-weight: bold;
}