.gall-notice-list {
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.gall-notice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.gall-notice-row:last-child {
    border-bottom: none;
}

.gall-notice-row:hover {
    opacity: 0.75;
}

.gall-notice-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1.4;
}

.gall-notice-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gall-notice-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-light);
}

.gall-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.gall-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.gall-count strong {
    color: var(--text-primary);
    font-weight: 600;
}

.gall-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.gall-write-btn:hover {
    opacity: 0.85;
}

.gall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
}

.gall-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gall-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="dark"] .gall-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.gall-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-main);
}

.gall-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gall-card:hover .gall-thumb img {
    transform: scale(1.04);
}

.gall-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.gall-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.gall-badge.notice {
    background: var(--accent);
    color: #fff;
}

.gall-badge.new {
    background: #3b82f6;
    color: #fff;
}

.gall-info {
    padding: 12px 14px;
}

.gall-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gall-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.gall-author {
    font-weight: 500;
    color: var(--text-secondary);
}

.gall-stats {
    display: flex;
    gap: 8px;
}

.gall-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
    gap: 12px;
}

.gall-empty p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 1200px) {
    .gall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .gall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    .gall-info {
        padding: 10px 12px;
    }
    .gall-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gall-grid {
        gap: 8px;
        padding: 8px;
    }
    .gall-card {
        border-radius: 8px;
    }
    .gall-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

.gallery-view {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.gallery-view .breadcrumb {
    margin-bottom: 12px;
}

.gallery-view .board-section {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 20px;
    overflow: hidden;
}

.gallery-view .post-header {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--border) !important;
}

.gallery-view .post-content {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
    min-height: 0;
}

.gallery-view .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.gallery-view .post-inline-image {
    margin: 8px 0;
}

.gallery-view .post-content-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.gallery-view .post-files {
    background: none;
    border: none;
    border-radius: 0;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.gallery-view .post-nav {
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.gallery-view .comments-section {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.gallery-view .post-bottom {
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
}
