/* Default */
.ils-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}

.ils-related-grid--columns {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .ils-related-grid--columns {
        grid-template-columns: 1fr;
    }
}

.ils-related-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ils-related-thumb-wrap {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.ils-related-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.ils-related-meta {
    flex: 1;
    min-width: 0;
}

.ils-related-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.ils-related-title a {
    text-decoration: none;
    color: inherit;
}

.ils-related-title a:hover {
    text-decoration: underline;
}

.ils-related-date {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Grid */
.ils-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.ils-grid-item {
    text-align: center;
}

.ils-grid-thumb-wrap {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
    aspect-ratio: 3 / 2;
}

.ils-grid-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.ils-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 0;
    line-height: 1.4;
}

.ils-grid-title a {
    text-decoration: none;
    color: inherit;
}

.ils-grid-title a:hover {
    text-decoration: underline;
}

/* Classic */
.ils-classic-layout {
    margin: 24px 0;
}
.ils-classic-item {
    margin-bottom: 24px;
}
.ils-classic-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.ils-classic-title a {
    text-decoration: none;
    color: inherit;
}
.ils-classic-title a:hover {
    text-decoration: underline;
}
.ils-classic-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Compact */
.ils-compact-list {
    margin: 16px 0;
    padding-left: 20px;
}
.ils-compact-list li {
    margin: 6px 0;
}
.ils-compact-list a {
    text-decoration: none;
    color: #0073aa;
}
.ils-compact-list a:hover {
    text-decoration: underline;
}

/* Thumbright */
.ils-thumbright-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
.ils-thumbright-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ils-thumbright-content {
    flex: 1;
    padding-right: 12px;
}
.ils-thumbright-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.ils-thumbright-date {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}
.ils-thumbright-thumb {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}
.ils-thumbright-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
