.format-cards .course-content .card-deck.cards {
    justify-content: center;
}

.format-cards .course-content ul.cards {
    padding: 0;
}

.format-cards .dashboard-card-deck .dashboard-card {
    margin-bottom: .5rem;
    width: 100%;
    min-width: 225px;

    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
}

.format-cards .dashboard-card-deck {
    display: flex;
    flex-flow: row wrap;
    margin-right: -.25rem;
    margin-left: -.25rem;
}

.format-cards .subsectionsascards .activity.subsection > .activity-item {
    border: 0;
}

@media (min-width: 576px) {
    .format-cards .dashboard-card-deck:not(.fixed-width-cards) .dashboard-card {
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) {
    .format-cards .dashboard-card-deck:not(.fixed-width-cards) .dashboard-card {
        width: calc(33.33% - 0.5rem);
    }
}

@media (min-width: 992px) {
    .format-cards .dashboard-card-deck:not(.fixed-width-cards) .dashboard-card {
        width: calc(25% - 0.5rem);
    }
}

.format-cards .course-content .card-deck .card {
    aspect-ratio: 5 / 7;
    border: none;

    max-width: 325px;
}
.format-cards .course-content .card-deck .card.card-horizontal {
    aspect-ratio: 7 / 5;

    max-width: 450px;
}
.format-cards .course-content .card-deck .card.card-square {
    aspect-ratio: 1 / 1;
    max-width: 400px;
}

.format-cards .course-content .card-deck .card.highlighted {
    box-shadow: 0 0 10px var(--primary, #0f6cbf);
}

.format-cards .course-content .card-deck .card.highlighted .card-overlay {
    box-shadow: 0 0 20px var(--primary, #0f6cbf) inset;
}

.format-cards .course-content .card-deck .card .card-main-content {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
}

.format-cards .course-content .card-deck .card .card-main-content,
.format-cards .course-content .card-deck .card {
    border-radius: .5em;
}

.format-cards .course-content .card-deck .card .card-main-content .card-img-top {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: transform .4s;
}

.format-cards .course-content .card-deck .card:hover .card-main-content .card-img-top,
.format-cards .course-content .card-deck .card .card-main-content:focus-visible .card-img-top {
    transform: scale(1.1);
}

.format-cards .course-content .card-deck .card .card-header {
    background: rgba(0, 0, 0, 0.6);
    border: 0;
}
.format-cards .course-content .card-deck .card.card-horizontal .card-header {
    padding-top: 0;
}

.format-cards .course-content .card-deck .card .card-header .card-title {
    margin: 0;
}

.format-cards .course-content .card-deck .card .card-header .card-title,
.format-cards .course-content .card-deck .card .card-header a,
.format-cards .course-content .card-deck .card .card-header .summary {
    color: #fff !important;
}

.format-cards .course-content .card-deck .card .card-header .summary {
    display: inline-block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    max-height: 6rem;
    line-height: 1.5rem;
    text-overflow: ellipsis;
    font-weight: normal;
}

.format-cards .course-content .card-deck .card.card-horizontal .card-header .summary {
    -webkit-line-clamp: 2;
    max-height: 3rem;
    margin-top: .25rem;
}

.format-cards .course-content .card-deck .card .card-overlay {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.format-cards .course-content .card-deck .card .card-overlay .card-header-fade {
    flex: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6));
}
.format-cards .course-content .card-deck .card.card-horizontal .card-overlay .card-header-fade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6));
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion,
.format-cards .course-content .card-deck .card .card-header-fade .section-availability {
    position: absolute;
    top: 0;
    margin: 0.5rem;
    padding: 0.35rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 0;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion {
    right: 0;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-availability {
    left: 0;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion svg {
    position: absolute;
    transform: rotate(-90deg);
    width: 3rem;
    height: 3rem;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion svg circle.outer {
    stroke: #e6e6e6;
    stroke-width: 5;
    fill: none;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion svg circle.inner {
    stroke: #357a32;
    stroke-width: 5;
    fill: none;
    stroke-dasharray: 100;
}

.format-cards .course-content .card-deck .card .card-header-fade .section-completion svg circle.inner.complete {
    stroke-dasharray: 0;
}

.format-cards .empty-placeholder-image-lg {
    height: 5rem;
}

.format-cards .single-section .course-section {
    border: none;
}

.format-cards .course-content .single-section .section-navigation {
    margin-bottom: unset;
}

.format-cards .course-content .card-deck .card .card-img-top {
    transition: 0.4s filter ease-in-out;
}

.format-cards .course-content .card-deck .card:hover .card-img-top,
.format-cards .course-content .card-deck .card .card-main-content:focus-visible .card-img-top {
    filter: brightness(110%);
}
.format-cards .course-content .card-deck .card.hiddenfromstudents .card-img-top {
    filter: blur(1px) grayscale(80%);
}
.format-cards .course-content .card-deck .card.hiddenfromstudents:hover .card-img-top,
.format-cards .course-content .card-deck .card.hiddenfromstudents .card-main-content:focus-visible .card-img-top {
    filter: grayscale(75%);
}

.format-cards .course-content .card-deck .section.course-section {
    width: 100%;
}

.format-cards .course-content .card-deck .section-break {
    list-style: none;
    display: block;
    width: 100%;
}

@media (max-width: 576px) {

    .format-cards .course-content .card-deck .card .card-header .card-title {
        /** Try to make card titles responsive on smaller devices */
        font-size: min(3rem, 16vw);
    }
}

.format-cards .course-content .section-item .activity:first-of-type {
    border: none;
}
