/* style.css */
.wp-block-roundup-article-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.roundup-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.roundup-description {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

.roundup-item {
    margin-bottom: 40px;
    position: relative;
    background: #fff;
    border-radius: 8px;
}

.roundup-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #ff9800;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 1;
}

.roundup-content {
    display: flex;
    width: 100%;
}

.roundup-image-container {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

.roundup-image {
    width: 100%;
    /* Set height to be 1.5 times the width for 2:3 ratio */
    height: 450px;
    overflow: hidden;
}

.roundup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roundup-text {
    padding: 20px;
    flex-grow: 1;
}

.roundup-text h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.roundup-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.make-recipe-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #973c6c;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.make-recipe-button:hover {
    background-color: #7b2d55;
}

.essb-pin {
    height: 100%;
}

@media (max-width: 768px) {
    .roundup-content {
        flex-direction: column;
    }

    .roundup-image-container {
        width: 100%;
    }

    .roundup-image {
        /* Maintain 2:3 ratio on mobile */
        height: 0;
        padding-bottom: 150%; /* This creates a 2:3 ratio */
        position: relative;
    }

    .roundup-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}