/* sketchcal/sketchcal.css version 3.6.1 */

:root {
    --gsgt-date-col-width: 120px;
    --gsgt-desc-col-flex: 2;
    /* Increased the default flex for the prompt/image column */
    --gsgt-prompt-col-flex: 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;
}

/* --- Date Column Styles --- */
.sketchcal-date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #d1e6ef;
    padding: 15px;
    min-width: var(--gsgt-date-col-width, 120px);
}

.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;
}

.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;
}

/* Daily History Columns */
.sketchcal-event-banner .sketchcal-description-column {
    flex-grow: var(--gsgt-desc-col-flex, 2);
    font-size: 1em;
    padding: 20px;
    border-right: 1px solid #ccc;
}

/* Weekly Pick Columns */
.sketchcal-event-banner .sketchcal-weeklydescription-column {
    flex-grow: var(--gsgt-desc-col-flex, 2);
    font-size: 1em;
    padding: 20px;
    border-left: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-weeklydescription-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
}

/* Image / Prompt Column - Updated for larger images */
.sketchcal-event-banner .sketchcal-prompt-column {
    flex-grow: var(--gsgt-prompt-col-flex, 2);
    font-style: italic;
    font-size: 0.9em;
    padding: 10px; /* Reduced padding to allow image growth */
    min-width: 320px; /* Prevents text from squashing image column */
}

.sketchcal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    height: 100%;
}

.sketchcal-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    /* max-height is controlled by PHP inline style, usually 500px */
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) { /* Increased breakpoint to handle wider image column */
    .sketchcal-event-banner {
        flex-direction: column;
    }

    .sketchcal-event-banner .sketchcal-date-column {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

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

    .sketchcal-event-banner .sketchcal-description-column,
    .sketchcal-event-banner .sketchcal-weeklydescription-column,
    .sketchcal-event-banner .sketchcal-prompt-column {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #eee;
        min-width: 0; /* Reset min-width for mobile */
    }

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