.mcb-themes {
	color: #111126;
	font-family: "filson-pro", sans-serif;
	width: 100%;
	padding: 0 20px;
}

.mcb-themes *,
.mcb-themes *::before,
.mcb-themes *::after {
    box-sizing: border-box;
}

.mcb-themes__inner {
    margin: 0 auto;
    max-width: 1400px;
    padding: 30px 20px;
}

.mcb-themes__intro {
    margin-bottom: 30px;
}

.mcb-themes__outro {
    margin-top: 30px;
}

.mcb-themes__intro > :first-child,
.mcb-themes__outro > :first-child {
    margin-top: 0;
}

.mcb-themes__intro > :last-child,
.mcb-themes__outro > :last-child {
    margin-bottom: 0;
}

.mcb-themes__list {
    display: grid;
    gap: 24px;
}

.mcb-theme {
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgb(17 17 38 / 11%);
    display: grid;
    grid-template-columns: 190px minmax(220px, 34%) minmax(0, 1fr);
    min-height: 240px;
    overflow: visible;
    position: relative;
    scroll-margin-top: 30px;
}

.mcb-theme--no-image {
    grid-template-columns: 190px minmax(0, 1fr);
}

.mcb-theme:target {
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--mcb-theme-color) 35%, transparent),
        0 16px 35px rgb(17 17 38 / 15%);
}

.mcb-theme__date {
    align-items: center;
    background: var(--mcb-theme-color);
    border-radius: 8px 0 0 8px;
    color: #fff;
    display: flex;
    justify-content: center;
    overflow: visible;
    padding: 24px;
    position: relative;
    text-align: center;
}

.mcb-theme__date time {
    display: grid;
    gap: 8px;
}

.mcb-theme__date b {
    font-size: 1.2rem;
}

.mcb-theme__date span {
    font-weight: 700;
}

.mcb-theme__figure {
    margin: 0;
    min-height: 240px;
    position: relative;
}

.mcb-theme__photo {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mcb-theme__content {
    padding: 34px;
    position: relative;
}

.mcb-theme__content h2 {
    color: var(--mcb-theme-color);
    margin: 0 0 8px;
}

.mcb-theme__occasion {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.mcb-theme__presenter {
    margin: 0 0 12px;
}

.mcb-theme__short p:first-child,
.mcb-theme__long p:first-child {
    margin-top: 0;
}

.mcb-theme__short p:last-child,
.mcb-theme__long p:last-child {
    margin-bottom: 0;
}

.mcb-theme__icon {
    height: var(--mcb-theme-icon-size);
    left: var(--mcb-theme-icon-x);
    object-fit: contain;
    position: absolute;
    right: auto;
    top: var(--mcb-theme-icon-y);
    transform: rotate(var(--mcb-theme-icon-rotation));
    transform-origin: center;
    width: var(--mcb-theme-icon-size);
    z-index: 2;
}

.mcb-theme details {
    border-top: 1px solid rgb(17 17 38 / 12%);
    margin-top: 18px;
    padding-top: 12px;
}

.mcb-theme summary {
    color: var(--mcb-theme-color);
    cursor: pointer;
    font-weight: 800;
    width: max-content;
}

.mcb-theme__long {
    padding-top: 14px;
}

.mcb-themes__empty {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .mcb-theme,
    .mcb-theme--no-image {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .mcb-theme__figure {
        grid-column: 2;
        grid-row: 1;
        min-height: 210px;
    }

    .mcb-theme__date {
        border-radius: 8px 0 0 0;
        grid-row: 1;
    }

    .mcb-theme__photo {
        border-radius: 0 8px 0 0;
    }

    .mcb-theme__content {
        grid-column: 1 / -1;
        padding: 28px;
    }

    .mcb-theme--no-image .mcb-theme__date {
        border-radius: 8px 0 0 8px;
    }

    .mcb-theme--no-image .mcb-theme__content {
        grid-column: 2;
        grid-row: 1;
    }

}

@media (max-width: 600px) {
    .mcb-themes__inner {
        padding: 20px 0;
    }

    .mcb-theme,
    .mcb-theme--no-image {
        display: block;
    }

    .mcb-theme__date {
        border-radius: 8px 8px 0 0;
        padding: 16px;
    }

    .mcb-theme__figure {
        min-height: 0;
    }

    .mcb-theme__photo {
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }

    .mcb-theme__content {
        padding: 24px;
    }

    .mcb-theme__icon {
        height: min(var(--mcb-theme-icon-size), 30vw);
        width: min(var(--mcb-theme-icon-size), 30vw);
    }

}
