.ds-schedule {
    --minute-height: 2px;
    --minutes-total: 300;
}

.ds-times,
.ds-day {
    display: grid;
    grid-template-rows: repeat(var(--minutes-total), var(--minute-height));
    position: relative;
}

.ds-times .ds-time-label {
    height: calc(60 * var(--minute-height));
    color: #666;
    position: relative;
}

.ds-times .ds-time-bar {
    position: absolute;
    left: 0;
    height: 1px;
    background: #ddd;
    width: 100%;
}

.ds-day {
    overflow: visible;
    min-height: calc(10 * var(--minute-height));
    padding: 0;
}

.ds-class {
    grid-row-start: var(--start-row);
    grid-row-end: var(--end-row);
    background: var(--color, #7dd87d);
    border-radius: .5rem;
    padding: 6px;
    color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: -5px 2px 2px 2px;
}

@media (max-width: 768px) {
    .ds-schedule {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .ds-schedule .col {
        margin: 0 !important;
        padding: 0 !important;
    }

    .ds-schedule .ds-day {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        grid-template-rows: initial;
        min-height: initial;
    }

    .ds-schedule .col:first-child .ds-day-wrap {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .ds-schedule .col:not(:first-child) .ds-day-wrap {
        border-top: none;
    }

    .ds-schedule .col:last-child .ds-day-wrap {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .ds-times,
    .ds-day-header {
        display: none !important;
    }

    .ds-day-wrap {
        border: 1px solid #ddd;
        background-color: #f9f9f9;
        padding: 0 !important;
    }

    .ds-day-wrap::before {
        content: attr(data-day);
        font-weight: bold;
        display: block;
        padding: 5px 10px;
        font-size: 1.2em;
        color: #333;
    }

    .ds-class {
        grid-row-start: initial !important;
        grid-row-end: initial !important;
        position: relative;
        margin: 0;
        padding: 10px 15px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        color: #111;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .ds-class .ds-time {
        font-size: 14px;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .ds-class .ds-title {
        font-size: 16px;
        margin-bottom: 4px;
        font-weight: 700;
    }

    .ds-class .ds-meta {
        font-size: 14px;
        opacity: 1;
    }
}
