/**
 * Single product content styling overrides.
 *
 * Loaded via InfraBuild\Core\Controller\EnqueueController at PHP_INT_MAX
 * priority so these rules win the cascade over theme/module output.
 */

.ibr-single-prod-content #specifications {
	font-family: Inter, sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 25.6px;
	color: #5F6569;
}

@media (max-width: 992px) {
	.ibr-single-prod-content #specifications {
		padding: 0 !important;
	}
}

/* PDF / product download button. */
.ibr-pdf-button .masonry-brick {
	display: flex;
	justify-content: space-evenly;
}

.ibr-pdf-button .fl-post-grid.masonry {
	width: 100% !important;
	height: 100% !important;
}

.ibr-pdf-button .product_download {
	position: static !important;
	margin-bottom: 0px !important;
	border: none;
	overflow: visible;
	width: fit-content !important;
}

.ibr-pdf-button .product-download-btn {
	font-family: Inter, sans-serif;
	font-weight: 700;
	font-size: 16px;
	border: 1px solid #000;
	background-color: #CDFA55;
	color: #000;
	padding: 16px 18px;
}

.ibr-pdf-button .product-download-btn:hover {
	background-color: #000;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 575px) {
	.ibr-pdf-button .masonry-brick {
		justify-content: left;
		flex-wrap: wrap;
		gap: 50px;
	}
}

/* Specifications file rendered as an image. */
.ibr-spec-image {
	max-width: 100%;
	height: auto;
	display: block;
}


/* Product Fields image layouts by count (scoped to the product-fields block). */
.ibr-product-images-wrapper .ibr-image-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.ibr-product-images-wrapper .ibr-image-grid .gallery-item-slick {
	position: relative;
}

/* Each grid image keeps a consistent ratio and fills its column. */
.ibr-product-images-wrapper .ibr-image-grid .gallery-item-slick .product-image {
	width: 100%;
	aspect-ratio: 3 / 2;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* 1 image = full width. */
.ibr-product-images-wrapper.is-1 .ibr-image-grid .gallery-item-slick {
	flex: 0 0 100%;
	max-width: 100%;
}

/* 2 images = 50 / 50. */
.ibr-product-images-wrapper.is-2 .ibr-image-grid .gallery-item-slick {
	flex: 0 0 calc(50% - 8px);
	max-width: calc(50% - 8px);
}

/* 3 images = 33% each on one line. */
.ibr-product-images-wrapper.is-3 .ibr-image-grid .gallery-item-slick {
	flex: 0 0 calc(33.333% - 11px);
	max-width: calc(33.333% - 11px);
}

/* 4+ images = slick slider (3 at a time). */
.ibr-product-images-wrapper.is-slider .product-images.slick-slider .gallery-item-slick .product-image {
	aspect-ratio: 3 / 2;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.ibr-product-images-wrapper.is-slider .slick-slide {
	margin: 0 8px;
}

/* Stack grids on small screens so 2/3-up don't get too narrow. */
@media (max-width: 640px) {
	.ibr-product-images-wrapper.is-2 .ibr-image-grid .gallery-item-slick,
	.ibr-product-images-wrapper.is-3 .ibr-image-grid .gallery-item-slick {
		flex: 0 0 100%;
		max-width: 100%;
	}
}
