/*
 * Materialen page styles.
 * Ported from u-design-child for the FSE theme.
 */

/* ── Materiaallijst: grid of material category cards (parent page) ───── */

.materiaallijst {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	grid-gap: 20px;
	align-content: flex-start;
	margin: 0 0 30px;
	padding: 0;
	list-style-type: none;
}

.materiaallijst h4 {
	font-size: 15px !important;
	line-height: 18px;
	margin: 5px 0;
	padding: 0;
	text-transform: uppercase;
	font-weight: bold;
}

.materiaallijst > li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.materiaallijst > li > img {
	width: 100%;
	height: auto;
	display: block;
}

.materiaallijst li ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.materiaallijst li ul li {
	margin: 0 0 2px;
	padding: 0;
	list-style-type: none;
	display: block;
	background: #eee;
	font-size: 11px;
	line-height: 15px;
}

.materiaallijst li ul li:hover {
	background: #ddd;
}

.materiaallijst li ul li a {
	display: block;
	color: #333;
	text-decoration: underline;
}

.materiaallijst li ul li img {
	margin: 0 4px 0 0;
	padding: 0;
	display: block;
	float: left;
}

/* ── Instructielijst: grid of info/link tiles (parent page) ──────────── */

.instructielijst {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	grid-gap: 20px;
	align-content: flex-start;
	margin: 0 0 30px;
	padding: 5px 0 0;
	list-style-type: none;
}

.instructielijst li.instructie {
	margin: 0;
	padding: 0;
	list-style-type: none;
	background: #fff;
}

.instructielijst li.instructie > a {
	display: block;
	width: 100%;
	overflow: hidden;
}

.instructielijst img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}

.instructielijst .instructielijst_beschrijving {
	display: block;
	margin: 0;
	padding: 12px 0;
	font-size: 18px;
	line-height: 23px;
	min-height: 40px;
	font-weight: 500;
	color: var(--wp--preset--color--primary, #c30);
	background: #fff;
}

/* ── List-11: arrow-bullet list used in material subpages ────────────── */

ul.list-11 {
	margin: 5px 0 5px 5px;
	position: relative;
	overflow: hidden;
}

ul.list-11 ul {
	margin-left: 0;
}

ul.list-11 li {
	list-style: none;
	margin-left: 0;
	margin-bottom: 2px !important;
	padding-bottom: 2px !important;
	padding-left: 24px;
	position: relative;
}

ul.list-11 li::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	position: absolute;
	top: 6px;
	left: 4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='2,0 10,5 2,10' fill='%23555'/%3E%3C/svg%3E") no-repeat center;
	background-size: 8px 8px;
}

ul.list-11 > li::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='2,0 10,5 2,10' fill='%23555'/%3E%3C/svg%3E") no-repeat center;
	background-size: 8px 8px;
}

/* ── Custom table: specs table (MDF pages) ───────────────────────────── */

table.custom-table {
	font-size: 12px;
	margin: 10px 0;
	width: 100%;
	text-align: left;
	border-collapse: collapse;
}

table.custom-table td,
table.custom-table th {
	border: 0 none;
	word-break: break-all;
	text-align: left;
}

table.custom-table th {
	border-bottom: 2px solid #999;
	padding: 12px;
	font-size: 14px;
	font-weight: bold;
}

table.custom-table td {
	padding: 9px 12px;
	border-top: 1px solid #fff;
}

table.custom-table tbody td {
	background: #f5f5f5;
}

table.custom-table tbody tr:hover td,
table.custom-table tbody tr:focus td {
	background: #eee;
}

/* ── Zoombox: MagicZoom image gallery ────────────────────────────────── */

.zoombox-inner {
	position: relative;
	height: 680px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.zoombox .selectors {
	display: flex;
	justify-content: center;
	padding-top: 25px;
	width: 600px;
	margin: 0 auto;
}

.zoombox .selectors a {
	margin: 0 5px 5px 0;
	width: 120px;
}

@media screen and (min-width: 720px) and (max-width: 959px) {
	.zoombox-inner {
		width: 100%;
		height: auto;
	}
}

@media screen and (max-width: 719px) {
	.zoombox-inner {
		width: 100%;
		height: auto;
	}
	.zoombox .selectors {
		width: 100%;
	}
}
