/* sketchcal/sketchcal.css version 3.5.2 */

.sketchcal-event {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    font-family: sans-serif;
}

.sketchcal-event-banner h2,
.sketchcal-event-square h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
}

/* Updated Date Column Styles to match the provided image */
.sketchcal-date-column {
    display: flex;
    flex-direction: column; /* Stacks the content vertically */
    align-items: center;
    justify-content: center; /* Vertically centers content in the column */
    text-align: center;
    background-color: #e9e9e9;
    padding: 15px;
    /* Use the CSS variable for min-width */
    min-width: var(--gsgt-date-col-width, 120px);
}

/* Added specific styles for the "This Day" and "In History" text */
.sketchcal-date-column > span:first-of-type,
.sketchcal-date-column > span:last-of-type {
    margin-bottom: .5rem;
    margin-top: .5rem;
    font-size: 0.8em;
    text-transform: uppercase;
}

/* ADDED: New container to stack month and day */
.sketchcal-date-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sketchcal-date-month {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

.sketchcal-date-day {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

/* Banner Style (Three-Column Layout) */
.sketchcal-event-banner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.sketchcal-event-banner .sketchcal-date-column {
    border-right: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-content-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 0;
}

.sketchcal-event-banner .sketchcal-description-column {
    /* Use the CSS variable for flex-grow */
    flex-grow: var(--gsgt-desc-col-flex, 2);
    font-size: 1em;
    margin-bottom: 10px;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-prompt-column {
    /* Use the CSS variable for flex-grow */
    flex-grow: var(--gsgt-prompt-col-flex, 1);
    font-style: italic;
    font-size: 0.9em;
    padding: 20px;
}

/* Added specific styles for the prompt title to match the image */
.sketchcal-prompt-column strong {
    font-style: normal;
    display: block;
    margin-bottom: 5px;
}

/* Square Style (Stacked Layout) */
.sketchcal-event-square {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.sketchcal-event-square .sketchcal-date-column {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.sketchcal-event-square .sketchcal-description-column {
    font-size: 1em;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.sketchcal-event-square .sketchcal-prompt-column {
    font-style: italic;
    font-size: 0.9em;
}

/* Remove bottom margin/padding from last element */
.sketchcal-description-column > *:last-child,
.sketchcal-prompt-column > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Style for the 'Read More' link */
.sketchcal-read-more :hover{   
    text-decoration: underline;
}

/* General responsive adjustments */
@media (max-width: 600px) {
    .sketchcal-event-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sketchcal-event-banner .sketchcal-date-column {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between; /* This is the key change */
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .sketchcal-date-column > span:first-of-type,
    .sketchcal-date-column > span:last-of-type {
        /* Add padding to give them space from the edges */
        padding: 0 10px;
    }
    
    .sketchcal-event-banner .sketchcal-date-day {
        font-size: 1.5em;
    }

    .sketchcal-event-banner .sketchcal-content-wrapper {
        flex-direction: column;
        padding-left: 0;
    }

    /* Make all content columns full width on mobile */
    .sketchcal-event-banner .sketchcal-description-column,
    .sketchcal-event-banner .sketchcal-prompt-column {
        width: 100%;
        border-right: none;
    }
}