/*
 * Styles for Custom Horizontal Scroll Posts Plugin
 */

/* 横スクロールのコンテナ */
.chs-row-scroll {
    overflow-x: auto;
    /* For smooth scrolling on touch devices */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar on some browsers but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.chs-row-scroll::-webkit-scrollbar {
    display: none;
}


/* カードを横並びにするためのコンテナ */
.chs-row {
    display: flex;
    gap: 12px;
    /* Ensure content doesn't wrap and stays in a single line */
    min-width: max-content;
    padding-bottom: 8px; /* Add some space at the bottom */
}

/* 個々のカード */
.chs-card {
    display: block;
    width: 220px;
    flex: 0 0 auto; /* Prevent card from shrinking */
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease-in-out;
}
.chs-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* カードのサムネイル部分 */
.chs-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f3f4f6; /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
}
.chs-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* カードのテキスト部分 */
.chs-card-body {
    padding: 10px;
}
.chs-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em; /* 2 lines height */
    /* Clamp text to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chs-card-date {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}
