/* 空间 */
.space-card {
    width: 500px;
    background-color: #f3f3f3;
    border-radius: 15px;
    margin-bottom: 40px;
}

.space-card div:nth-child(1) img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.space-card div:nth-child(2) {
    margin: 10px 30px;
    font-size: 20px;
    font-weight: bold;
}

.space-card div:nth-child(3) {
    float: right;
    margin: 10px 30px;
}

/* github */
#github-container svg {
    max-width: 90vw;
}

/* 图片展示 */
#img-show {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, .5);
}

#img-show span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#img-show img {
    position: relative;
    object-fit: contain;
    width: 0;
    height: auto;
    transition: .5s;
}

.close {
    z-index: 3;
    top: 30px;
    right: 30px;
    position: absolute;
    display: inline-block;
    width: 25px;
    height: 25px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 50%;
    border: #fff 5px solid;
    transition: .3s;
    box-shadow: 0 0 5px 5px #fff;
}
.close:hover{
    background-color: #f6f6f6;
    border: #f6f6f6 5px solid;
    box-shadow: 0 0 5px 5px #f6f6f6;
}
.close:hover::before,
.close:hover::after {
    background: #1ebcc5;
}
.close::before,
.close::after {
    transition: .3s;
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: #000;
}
.close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.img-alt {
    border-right: 3px solid;
    border-top: 3px solid;
    border-color: rgba(255, 255, 255, .5);
    border-radius: 2px;
    box-sizing: unset;
    height: 20px;
    width: 20px;
    cursor: pointer;
    transition: .3s;
    position: relative;
}

.img-alt:hover {
    border-color: #fff;
}

.img-alt::before {
    content: "";
    position: absolute;
    top: -13px;
    left: -7px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: .3s;
    z-index: -1;
}

.img-alt:hover::before {
    background-color: rgba(255, 255, 255, .2);
}

.next-img {
    transform: rotate(45deg);
}

.prev-img {
    transform: rotate(-135deg);
}