/* --- CONTENT CARDS TILES (content-cards, variant 'tiles') ---
   An opt-in look of the content-cards grid: picture tiles of a set width in a centred row, each title under its
   picture with a short rule, the section title over a short rule too, and the picture zooming in a little on hover
   (--content-cards-tiles-*). Every rule is scoped to .content-cards--tiles, so other card sections are untouched.
   Load it after content-cards.css. */

.content-cards--grid.content-cards--tiles {
    padding: var(--content-cards-tiles-padding, 40px 0);
}
.content-cards--grid.content-cards--tiles .content-cards__inner {
    max-width: none;
    padding: 0 var(--content-cards-tiles-gutter, 0);
}
.content-cards--grid.content-cards--tiles .content-cards__header {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--content-cards-tiles-header-margin, 0);
}
.content-cards--grid.content-cards--tiles .content-cards__title {
    font-size: var(--content-cards-tiles-title-size, 32px);
    line-height: var(--content-cards-tiles-title-line-height, 35px);
    font-weight: var(--content-cards-tiles-title-weight, 400);
    color: var(--content-cards-tiles-title-color, inherit);
    text-align: center;
}
.content-cards--grid.content-cards--tiles .content-cards__title::after,
.content-cards--grid.content-cards--tiles .content-cards__card-title::after {
    content: '';
    display: block;
    width: var(--content-cards-tiles-rule-width, 32px);
    height: var(--content-cards-tiles-rule-height, 3px);
    margin: var(--content-cards-tiles-rule-margin, 16px auto 0);
    background: var(--content-cards-tiles-rule-color, var(--color-primary));
}
.content-cards--grid.content-cards--tiles .content-cards__card-title::after {
    margin: var(--content-cards-tiles-card-rule-margin, 10px auto 0);
}
.content-cards--grid.content-cards--tiles .content-cards__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--content-cards-tiles-row-gap, 0) var(--content-cards-tiles-gap, 30px);
    margin-top: var(--content-cards-tiles-list-margin, 34px);
}
.content-cards--grid.content-cards--tiles .content-cards__item {
    flex: 0 0 var(--content-cards-tiles-width, 310px);
    max-width: var(--content-cards-tiles-width, 310px);
}
.content-cards--grid.content-cards--tiles .content-cards__card {
    background: transparent;
    box-shadow: none;
}
.content-cards--grid.content-cards--tiles .content-cards__media {
    height: auto;
    aspect-ratio: var(--content-cards-tiles-image-ratio, 310 / 250);
    overflow: hidden;
}
.content-cards--grid.content-cards--tiles .content-cards__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--content-cards-tiles-zoom-speed, 0.4s);
}
.content-cards--grid.content-cards--tiles .content-cards__card:hover .content-cards__media img,
.content-cards--grid.content-cards--tiles .content-cards__card:focus-within .content-cards__media img {
    transform: scale(var(--content-cards-tiles-zoom, 1));
}
.content-cards--grid.content-cards--tiles .content-cards__body {
    margin: 0;
    padding: var(--content-cards-tiles-body-padding, 11px 0 0);
    background: transparent;
    text-align: center;
}
.content-cards--grid.content-cards--tiles .content-cards__card-title {
    font-size: var(--content-cards-tiles-card-title-size, 33px);
    line-height: var(--content-cards-tiles-card-title-line-height, 43px);
    font-weight: var(--content-cards-tiles-card-title-weight, 400);
    color: var(--content-cards-tiles-card-title-color, inherit);
}
