.mcbvd {
    box-sizing: border-box;
    font-family: "filson-pro", sans-serif;
    padding: 30px 18px;
    width: 100%;
}

.mcbvd *,
.mcbvd *::before,
.mcbvd *::after {
    box-sizing: inherit;
}

.mcbvd__inner {
    background: #f7f7f7;
    border-radius: 28px;
    margin-inline: auto;
    max-width: 1200px;
    padding: clamp(28px, 4.5vw, 58px);
}

.mcbvd__title {
    color: #ec008c;
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 500;
    margin: 0 0 clamp(28px, 4vw, 50px);
    text-align: center;
}

.mcbvd__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.mcbvd__card {
    background: #ec008c;
    border-radius: 10px;
    box-shadow: 0 25px 24px -22px rgb(0 0 0 / 55%);
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.mcbvd__card--theme,
.mcbvd__card--theme .mcbvd__caption,
.mcbvd__card--override,
.mcbvd__card--override .mcbvd__caption {
    background: var(--mcbvd-card-color);
}

.mcbvd__card--theme {
    overflow: visible;
}

.mcbvd__card--theme .mcbvd__figure {
    border-radius: 10px 10px 0 0;
}

.mcbvd__card--theme .mcbvd__caption {
    border-radius: 0 0 10px 10px;
}

.mcbvd__theme-icon {
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%));
    height: var(--mcbvd-theme-icon-size);
    left: var(--mcbvd-theme-icon-x);
    object-fit: contain;
    position: absolute;
    right: auto;
    top: var(--mcbvd-theme-icon-y);
    transform: rotate(var(--mcbvd-theme-icon-rotation));
    transform-origin: center;
    width: var(--mcbvd-theme-icon-size);
    z-index: 2;
}

.mcbvd__card--theme .mcbvd__caption small {
    font-family: "filson-pro", sans-serif;
    font-size: 14px;
    margin-top: 5px;
}

.mcbvd__card--icon-no-photo .mcbvd__caption {
    border-radius: 10px;
    padding-left: calc(var(--mcbvd-theme-icon-size) + 30px);
}

.mcbvd__figure {
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
}

.mcbvd__figure img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mcbvd__caption {
    align-items: center;
    background: #ec008c;
    color: var(--mcbvd-card-text, #fff);
    display: flex;
    flex-direction: column;
    font-family: agenda, sans-serif;
    font-size: clamp(18px, 2vw, 25px);
    justify-content: center;
    line-height: 1.25;
    min-height: 100px;
    padding: 12px;
    text-align: center;
}

.mcbvd__caption time {
    font-weight: 400;
    white-space: nowrap;
}

.mcbvd__caption p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 20px;
}

.mcbvd__button {
    background: var(--mcbvd-button);
    border-radius: 6px;
    color: #fff !important;
    display: table;
    font-weight: 500;
    margin: 42px auto 0;
    padding: 12px 22px;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mcbvd__button:hover {
    filter: brightness(0.88);
    transform: translateY(-1px);
}

.mcbvd__empty {
    margin: 0;
    text-align: center;
}

@media (max-width: 540px) {
    .mcbvd {
        padding-inline: 10px;
    }

    .mcbvd__inner {
        border-radius: 16px;
        padding: 25px 14px;
    }

    .mcbvd__grid {
        grid-template-columns: 1fr;
    }

    .mcbvd__caption {
        min-height: 82px;
    }

    .mcbvd__theme-icon {
        height: min(var(--mcbvd-theme-icon-size), 30vw);
        left: var(--mcbvd-theme-icon-x);
        right: auto;
        top: var(--mcbvd-theme-icon-y);
        width: min(var(--mcbvd-theme-icon-size), 30vw);
    }

    .mcbvd__card--icon-no-photo .mcbvd__caption {
        padding-left: calc(min(var(--mcbvd-theme-icon-size), 30vw) + 26px);
    }
}
