/*
 * Ochanta — Grille de boîtes d'icône (the7_icon_box_grid_widget).
 *
 * Colonnes et écarts : réglages du widget (grid-template-columns, grid-column-gap,
 * --grid-row-gap). Séparateurs entre rangées : --divider-width ; ils sont masqués sur la
 * première rangée par le CSS calculé du widget (selon les colonnes de chaque appareil).
 * Le reste (icône, titre, texte, bouton) : the7-icon-box-widget.css.
 */

.dt-css-grid {
	display: grid;
	transition: all .33s;
}

.dt-css-grid .wf-cell {
	display: flex;
	padding: 0;
}

.dt-css-grid .wf-cell > a,
.dt-css-grid .wf-cell > article,
.dt-css-grid .wf-cell > div {
	width: 100%;
}

.the7-box-grid-wrapper .dt-css-grid {
	grid-template-rows: auto;
}

.the7-box-grid-wrapper .wf-cell {
	position: relative;
	min-width: 0;
}

.the7-box-grid-wrapper .rp-heading {
	margin-bottom: 20px;
}

.the7-box-grid-wrapper .wf-cell .the7-icon-box-grid {
	display: flex;
	flex-flow: row nowrap;
	height: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: all .3s ease;
}

.icon-position-top .the7-box-grid-wrapper .the7-icon-box-grid {
	flex-wrap: wrap;
}

/* Séparateur au-dessus de chaque case, au milieu de l'écart entre rangées. */
.the7-box-grid-wrapper.widget-divider-on .wf-cell::before {
	position: absolute;
	top: calc(-1 * (var(--grid-row-gap, 0px) + var(--divider-width, 0px)) / 2);
	left: 0;
	width: 100%;
	border-bottom-width: var(--divider-width, 0px);
	border-bottom-color: var(--the7-divider-color);
	content: "";
}
