/* CSS Document */

.design-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* 设置列间距 */
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
}

.design-post {
    flex: 0 1 calc(50% - 30px); /* 设置每个 post 占据 50% 的宽度，并减去间距 */
    box-sizing: border-box;
    margin-bottom: 20px;
    text-align: center;
}

.design-post .post-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 保持图片比例 */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.design-post .post-img:hover {
    transform: scale(1.05);
}

.lightbox-info {
    text-align: left;
}

.lightbox-info h4 {
	font-size: 20px;
    margin-top: 8;
	margin-bottom: 8;
}

.lightbox-info p {
    margin: 5px 0;
}

.design-post {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
}

.post-img {
    display: block;
    width: 100%;
    height: auto;
    transition: 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
}

.design-post:hover .post-img {
    opacity: 0.3;
}

.design-post:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text h3 {
    font-size: 60px; /* 调整为你希望的字体大小 */
    margin: 0;
    padding: 0;
}

.text p {
    font-size: 16px; /* 保持描述的字体大小 */
}
