/* Gallery Container */
.bwg-gallery-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border: none;  /* 确保容器没有边框 */
}

.bwg-gallery-container h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Filter Section */
.bwg-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.bwg-filter-table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 auto;
    border: none;  /* 去除表格的边框 */
}

.bwg-filter-table td {
    padding: 0 5px;
    border: none;  /* 去除单元格的边框 */
}

.bwg-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    width: 120px;
    height: 36px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.bwg-filter-btn, .bwg-reset-btn {
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border: none;  /* 移除按钮的边框 */
    outline: none; /* 移除按钮的轮廓 */
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    height: 36px;
    margin-left: 5px;
}

.bwg-filter-btn:hover, .bwg-reset-btn:hover {
    background-color: #3367d6;
}

.bwg-reset-btn {
    background-color: #6c757d;
}

.bwg-reset-btn:hover {
    background-color: #5a6268;
}

/* Gallery */
.bwg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bwg-gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: bwg-fadeIn 0.5s ease forwards;
}

@keyframes bwg-fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bwg-gallery-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.bwg-gallery-img-container {
    height: 200px;
    overflow: hidden;
}

.bwg-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bwg-gallery-item:hover .bwg-gallery-img {
    transform: scale(1.05);
}

.bwg-gallery-info {
    padding: 12px;
    text-align: center;
}

.bwg-gallery-title {
    color: #495057;
    font-size: 15px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bwg-gallery-title-with-date {
    color: #495057;
    font-size: 15px;
    line-height: 1.4;
}

.bwg-gallery-date {
    color: #6c757d;
    font-size: 13px;
    margin-top: 3px;
}

/* Loading and Load More */
.bwg-loading {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    padding: 20px;
    grid-column: 1 / -1;
}

.bwg-load-more {
    text-align: center;
    margin: 20px 0;
    grid-column: 1 / -1;
}

.bwg-load-more-btn {
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.bwg-load-more-btn:hover {
    background-color: #3367d6;
}

.bwg-download-link {
    color: #4285f4;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.bwg-download-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bwg-gallery {
        grid-template-columns: 1fr;
    }
    
    .bwg-filter-select {
        width: 100px;
    }
}
