/* wp-content/plugins/ceca-widgets/widgets/image-links/image-links.css */

/* Figma 2887:2190: 25/30 title, 20px gap, 3:2 white panel (1px #D4D4D4,
   radius 5) with the image contained mid-panel. Whole card is the link. */

.ceca-il__heading {
	margin: 0 0 30px;
	font-size: 30px;
	line-height: 35px;
	font-weight: 700;
	color: #000000;
}

.ceca-il__grid {
	display: grid;
	grid-template-columns: repeat(var(--ceca-il-cols, 4), minmax(0, 1fr));
	gap: 24px;
}

.ceca-il a.ceca-il__card,
.ceca-il .ceca-il__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/* Panels sit at the foot of each card, so a title that wraps to two lines
   doesn't push its logo below the others in the row. */
.ceca-il__panel {
	margin-top: auto;
}

/* Hover/focus use the brand plum, stated explicitly so Elementor kit link
   colours never apply. */
.ceca-il a.ceca-il__card:hover .ceca-il__title,
.ceca-il a.ceca-il__card:focus-visible .ceca-il__title {
	color: var(--ceca-plum, #411024);
}

.ceca-il a.ceca-il__card:hover .ceca-il__panel,
.ceca-il a.ceca-il__card:focus-visible .ceca-il__panel {
	border-color: var(--ceca-plum, #411024);
}

.ceca-il__title {
	display: block;
	margin: 0 0 20px;
	font-size: 25px;
	line-height: 30px;
	font-weight: 400;
	color: #000000;
}

.ceca-il__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 306 / 204;
	padding: 24px;
	background: #FFFFFF;
	border: 1px solid #D4D4D4;
	border-radius: 5px;
	box-sizing: border-box;
}

.ceca-il__panel img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 125px;
	object-fit: contain;
}

.ceca-il__notice {
	padding: 20px;
	background: #F3F3F3;
	border: 1px dashed #C4C4C4;
	font-size: 15px;
	line-height: 20px;
	color: #545454;
}
