/* [iyg-yacht-grid] — 2-column listing grid, full width like search results. */

.entry-content > .wp-block-shortcode:has(.iyg-yacht-grid-shortcode),
.hentry > .entry-content > .wp-block-shortcode:has(.iyg-yacht-grid-shortcode) {
	max-width: calc(100% + 40px) !important;
	margin-left: -20px !important;
	margin-right: -20px !important;
	width: auto !important;
}

@media screen and (min-width: 768px) {
	.entry-content > .wp-block-shortcode:has(.iyg-yacht-grid-shortcode),
	.hentry > .entry-content > .wp-block-shortcode:has(.iyg-yacht-grid-shortcode) {
		max-width: calc(100% + 100px) !important;
		margin-left: -50px !important;
		margin-right: -50px !important;
	}
}

.iyg-yacht-grid-shortcode {
	width: 100%;
	box-sizing: border-box;
	padding-left: 20px;
	padding-right: 20px;
}

.iyg-yacht-grid-shortcode > .row {
	display: flex !important;
	flex-wrap: wrap !important;
	margin-left: -10px;
	margin-right: -10px;
}

.iyg-yacht-grid-shortcode > .row > .col-12 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	padding: 16px;
}

@media screen and (min-width: 992px) {
	.iyg-yacht-grid-shortcode > .row > .col-12.col-lg-6 {
		flex: 0 0 50% !important;
		max-width: 50% !important;
		width: 50% !important;
	}

	.iyg-yacht-grid-shortcode > .row > .col-12 {
		padding: 20px;
	}
}

.iyg-yacht-grid-shortcode > .row > .col-12:hover {
	background-color: #f1f5f9;
}

#iyg-yacht-grid-pagination {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 30px;
}

#iyg-yacht-grid-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	list-style: none;
	padding-left: 0;
	margin: 0;
}

#iyg-yacht-grid-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid black;
	color: black;
	text-decoration: none;
	background-color: #ffffff;
	padding: 8px 15px;
}

#iyg-yacht-grid-pagination .page-numbers.current {
	background-color: #c00020;
	color: #ffffff;
	border-color: #c00020;
}
