/* Luc Otten site: product overviews, product page and "Nieuwe producten" (styles taken from the old Drupal theme). */

/* Overview grid */
.lom-tiles {
	display: grid;
	grid-template-columns: repeat(var(--lom-columns, 4), minmax(0, 1fr));
	gap: 0;
}

.lom-tile {
	padding: 5px 0 10px 5px;
	text-align: center;
}

.lom-tile:hover {
	background-color: #ccc;
}

.lom-tile-image {
	display: block;
	margin-top: 5px;
}

.lom-tile-image img {
	background-color: #fff;
	border: 1px solid #bbb;
	padding: 5px;
	max-width: 100%;
	height: auto;
}

.lom-tile-title,
.lom-tile-title a {
	color: #000;
	text-decoration: none;
}

@media (max-width: 767px) {
	.lom-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Product page */
.lom-product {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.lom-product-details {
	flex: 1 1 0;
}

.lom-product-photos {
	flex: 1 1 0;
	min-width: 0;
}

.lom-product-label {
	color: #000;
	font-weight: bold;
}

.lom-product-project {
	margin-top: 20px;
}

@media (max-width: 767px) {
	.lom-product {
		flex-direction: column;
	}
}

/* Photo slider with thumbnails */
.lom-slider {
	position: relative;
}

.lom-slides {
	position: relative;
	background: #fff;
	border: 1px solid #ccc;
	padding: 5px;
}

.lom-slide {
	display: none;
}

.lom-slide.is-active {
	display: block;
}

.lom-slide img {
	display: block;
	width: 100%;
	height: auto;
}

.lom-thumbs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 10px;
}

.lom-slider .lom-thumb {
	display: block;
	width: 60px;
	padding: 2px;
	border: 1px solid #ccc;
	background: #fff;
	opacity: 0.7;
	cursor: pointer;
}

.lom-slider .lom-thumb.is-active,
.lom-slider .lom-thumb:hover {
	opacity: 1;
	background: #fff;
}

.lom-slider .lom-thumb img {
	display: block;
	width: 100%;
	height: 45px;
	object-fit: cover;
}

/* Nieuwe producten */
.lom-new-product {
	border-bottom: 1px solid rgb(197, 197, 197);
	margin: 5px 0;
	padding-bottom: 5px;
}

.lom-new-product-title {
	display: block;
	color: #000;
	font-weight: bold;
	text-decoration: none;
}

.lom-new-product-body {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.lom-new-product-body img {
	display: block;
	max-width: 100px;
	height: auto;
}

.lom-new-product-body p {
	margin: 0;
}

/* Neutralise the Hello Elementor theme's pink button and underlined link styles */
.lom-slider .lom-thumb,
.lom-slider .lom-thumb:hover,
.lom-slider .lom-thumb:focus {
	border: 1px solid #ccc;
	border-radius: 0;
}

.lom-thumb:focus {
	outline: 2px solid #444;
	outline-offset: -2px;
}

.lom-tiles a,
.lom-new-products a {
	text-decoration: none;
}

.lom-slider .lom-thumb:hover,
.lom-slider .lom-thumb:focus {
	background: none;
}

/* Previous/next buttons on the product photo, in the style of the main menu (white, #444 on hover) */
.lom-slider .lom-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	border: 1px solid #e9e9e9;
	border-radius: 0;
	background: #fff;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s;
}

.lom-slider .lom-arrow-prev {
	left: 10px;
}

.lom-slider .lom-arrow-next {
	right: 10px;
}

.lom-slider .lom-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #444;
	border-right: 2px solid #444;
}

.lom-slider .lom-arrow-prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.lom-slider .lom-arrow-next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.lom-slides:hover .lom-arrow,
.lom-slider .lom-arrow:focus-visible {
	opacity: 0.9;
}

.lom-slider .lom-arrow:hover,
.lom-slider .lom-arrow:focus-visible {
	opacity: 1;
	background: #444;
	border-color: #444;
}

.lom-slider .lom-arrow:hover::before,
.lom-slider .lom-arrow:focus-visible::before {
	border-color: #fff;
}

@media (hover: none) {
	.lom-slider .lom-arrow {
		opacity: 0.9;
	}
}
