
/* Styling for the container */
#crm-event-block.crm-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background-color: #efefef;
}

/* Styling for the individual items */
#crm-event-block.crm-container p {
    background-color: #d9ebd2;
    padding: 15px;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.4;
    min-width: 150px;
    flex: 1 1 200px; /* Flexible sizing */
    display: flex;
    flex-direction: column; /* Stack image and text */
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Pseudo-elements for images */
#crm-event-block.crm-container p::before {
    content: '';
    display: block;
    width: 100%; /* Full width of the flex item */
    aspect-ratio: 1; /* Maintain the aspect ratio */
    background-size: cover; /* Ensure the image fills the pseudo-element */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    margin-bottom: 10px; /* Space between image and text */
}


/* Specific images for each item */
#crm-event-block.crm-container p:nth-child(1)::before {
    background-image: url("https://gewaltfreihandeln.org/sites/default/files/inline-images/SE%20Reihe%20Diversit%C3%A4t%20Gerechtigkeit-Seminare%20%28Instagram%20Post%20%28Quadratisch%29%29.png");
}
#crm-event-block.crm-container p:nth-child(2)::before {
    background-image: url("https://gewaltfreihandeln.org/sites/default/files/inline-images/SharePic%20Friedenslogik.png");
}
#crm-event-block.crm-container p:nth-child(3)::before {
    background-image: url("https://gewaltfreihandeln.org/sites/default/files/2024-11/2025%20Gedenkst%C3%A4ttenseminar%20Ausschwitz.png");
}
#crm-event-block.crm-container p:nth-child(4)::before {
    background-image: url("https://gewaltfreihandeln.org/sites/default/files/inline-images/SharePic%20Friedenslogik.png");
}

/* Responsive styling */
@media (max-width: 800px) {
    #crm-event-block.crm-container {
        flex-direction: column; /* Stack items vertically */
    }
    #crm-event-block.crm-container p {
        max-width: 100%; /* Items take full width */
    }
    #crm-event-block.crm-container p::before {
    display: none;
    }
}