.card-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;

    /* Important when inside another flex container */
    min-width: 0;
    max-width: 100%;
}

.card-track {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;

    flex: 0 0 632px;
    max-width: 632px;

    scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
    display: none;
}


/* ========================================
   STANDARD IMAGE CARDS
   ======================================== */

.card {
    position: relative;
    width: 200px;
    flex: 0 0 200px;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
	
	font-size: 16px;
    line-height: 1.35;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    box-sizing: border-box;
    text-align: center;

    background: rgba(0,0,0,0.25);
    color: white;
}

.card,
.overlay {
    border-radius: 12px;
    overflow: hidden;
}


/* ========================================
   ARROWS
   ======================================== */

.arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    border-radius: 50%;
    border: none;

    background: rgba(0,0,0,0.5);
    color: white;
    cursor: pointer;

    font-size: 18px;
}

.arrow:hover {
    background: rgba(0,0,0,0.7);
}


/* ========================================
   FEED CARDS
   ======================================== */

.feed-slider .feed-card {
    width: calc((100% - 32px) / 3);
    flex: 0 0 calc((100% - 32px) / 3);

    padding: 16px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feed-card:hover {
    transform: translateY(-4px);
    transition: 0.2s ease;
}


/* ========================================
   FEED TEXT
   ======================================== */

.feed-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.feed-content p {
    font-size: 14px;
    line-height: 1.4;
    color: #444;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ========================================
   AUTO-COMPLETE
   ======================================== */


.writer-lookup {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
	margin-bottom:10px;
}

.writer-lookup strong {
    white-space: nowrap;
}

#writer-search {
    width: 180px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

#writer-results {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#writer-results a {
    text-decoration: none;
}

#writer-results a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {

    .writer-lookup {
        display: block;
    }

    #writer-search {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-top: 8px;
    }

    #writer-results {
        display: block;
        margin-top: 8px;
    }

    #writer-results a {
        display: block;
        margin-bottom: 6px;
    }
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {

    .card-wrapper {
        gap: 8px;
    }

    .card-track {
        gap: 12px;
    }

    .card {
        width: 180px;
        flex-basis: 180px;
    }

    .card img {
        height: 135px;
    }


    .arrow {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}


/* ========================================
   PHONE
   ======================================== */

@media (max-width: 600px) {

    .card-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .card-track {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .card {
        width: 200px;
        max-width: none;
        flex: 0 0 200px;
        box-sizing: border-box;
    }

    .card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

     .arrow {
        display: block;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        padding: 0;
        font-size: 16px;
        z-index: 2;
    }

    /* Feed slider: one item at a time */
    .feed-slider .feed-card {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}