.xyf-grid {
    display: grid;
    gap: 16px;
}

.xyf-columns-1 { grid-template-columns: 1fr; }
.xyf-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xyf-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xyf-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xyf-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xyf-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.xyf-card,
.xyf-thumb {
    box-sizing: border-box;
}

.xyf-media,
.xyf-thumb {
    display: block;
    width: 100%;
}

.xyf-thumb {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.xyf-title {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

.xyf-date {
    display: block;
    margin-top: 6px;
    font-size: .875em;
}

.xyf-style-plugin .xyf-card {
    overflow: hidden;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
}

.xyf-style-plugin .xyf-meta {
    padding: 12px;
}

.xyf-style-plugin .xyf-title a {
    color: #1d2327;
    text-decoration: none;
}

.xyf-style-plugin .xyf-title a:hover,
.xyf-style-plugin .xyf-title a:focus-visible {
    text-decoration: underline;
}

.xyf-style-plugin .xyf-date {
    color: #50575e;
}

.xyf-error {
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .xyf-columns-4,
    .xyf-columns-5,
    .xyf-columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .xyf-grid {
        grid-template-columns: 1fr;
    }
}
