/* 瀑布流布局样式 */
.waterfall-grid {
    column-count: 2;
    column-gap: 15px;
    padding: 10px;
}

.waterfall-item {
    break-inside: avoid;
    margin-bottom: 15px;
    width: 100%;
}

@media (max-width: 768px) {
    .waterfall-grid {
    column-count: 1;
}
}

/* 作品容器样式 */
.work-container-1, .work-container-2, .work-container-3 {
    flex: 1;
    min-width: 250px;
}
.work-container-4 {
    width: 100%;
}
.content-placeholder {
    height: 200px;
    background-color: #333;
    border-radius: 4px;
    margin-top: 15px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    padding: 20px;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff4d4f;
}

/* 1号容器：单张图展示 */
.single-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.single-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    display: block;
}

/* 2号容器：瀑布流网格 */
.masonry-grid {
    column-count: 2;
    column-gap: 20px;
    margin-top: 20px;
}
.masonry-item {
    border-radius: 8px;
    overflow: hidden;
    height: auto;
    background-color: rgba(255,255,255,0.1);
    break-inside: avoid;
    margin-bottom: 20px;
}
.masonry-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    overflow: hidden;
}
.masonry-item.tall {
    grid-row: span 2;
}

/* 3号容器：上下两张图 */
.stacked-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.stacked-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: block;
}