{% block extra_css %}
<link rel="stylesheet" href="{% static 'css/story_cards.css' %}">
<style>
/* Only include truly template-specific styles */

/* Story collection layout for this template */
.story-collection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Author cards container - specific to Short Story Collections page */
.author-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card header styling for author cards */
.card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    font-weight: bold;
    font-size: 1.6em;
    margin-bottom: 0.25rem;
}

.card-header h3 {
    font-weight: bold;
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* Card body layout */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Image container specific to this layout */
.img-container {
    float: right;
    margin-left: 8px;
    padding-top: 18px;
    margin-right: 18px;
    width: 350px;
    max-width: 100%;
    position: relative;
    aspect-ratio: 3/4;
}

.img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

/* Grid system for story links */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Story link specific styling */
.story-link {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Mobile adjustments specific to this template */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .img-container {
        float: none;
        margin: 1rem auto;
        width: 100%;
        max-width: 350px;
    }
    
    .card-header h2 {
        font-size: 1.4em;
    }
    
    .card-header h3 {
        font-size: 1em;
    }
}
</style>
{% endblock extra_css %}

