.gallery-board .gallery-list {
    padding: 28px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 24px 0 32px;
}
.gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wl-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.gallery-card:hover,
.gallery-card:focus-within {
    border-color: #d5b4a9;
    box-shadow: 0 8px 22px rgb(65 59 44 / 7%);
}
.gallery-card-link {
    display: block;
    height: 100%;
}
.gallery-card-link:focus-visible {
    outline: 2px solid var(--wl-coral);
    outline-offset: -3px;
    border-radius: 12px;
}
.gallery-thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--wl-line);
    background: #f1f1e9;
}
.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.gallery-placeholder {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #969b8e;
    font-size: 12px;
}
.gallery-placeholder svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
.gallery-pin {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #fff;
    color: var(--wl-coral);
    font-size: 11px;
    font-weight: 700;
}
.gallery-card-copy {
    padding: 18px 16px;
}
.gallery-category {
    display: block;
    min-height: 16px;
    margin-bottom: 9px;
    line-height: 16px;
    color: var(--wl-coral);
    font-size: 11px;
}
.gallery-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.9em;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: var(--wl-muted);
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.gallery-comment-count {
    color: #9f6d5d;
}
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 479px) {
    .gallery-board .gallery-list {
        padding: 12px;
    }
    .gallery-grid {
        gap: 16px 10px;
        padding: 16px 0 22px;
    }
    .gallery-card-copy {
        padding: 12px 10px;
    }
    .gallery-category {
        min-height: 14px;
        margin-bottom: 6px;
        font-size: 10px;
        line-height: 14px;
    }
    .gallery-card h3 {
        margin-bottom: 10px;
        font-size: 13px;
    }
    .gallery-meta {
        display: grid;
        gap: 2px;
        font-size: 10px;
    }
    .gallery-meta > span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .gallery-pin {
        top: 8px;
        left: 8px;
        padding: 4px 6px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-card {
        transition: none;
    }
}
