.aivpafe-breeds-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.aivpafe-breeds-grid--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Avada's Code element can wrap shortcode output in a code tag. */
.aivpafe-breeds-grid > code {
	display: contents;
}

.aivpafe-breed-card {
	min-width: 0;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aivpafe-breed-card:hover,
.aivpafe-breed-card:focus-within {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.aivpafe-breed-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.aivpafe-breed-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f4f4;
}

.aivpafe-breed-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.aivpafe-breed-card:hover .aivpafe-breed-card__image img,
.aivpafe-breed-card:focus-within .aivpafe-breed-card__image img {
	transform: scale(1.03);
}

.aivpafe-breed-card__content {
	padding: 20px;
}

.aivpafe-breed-card__title {
	margin: 0;
	font-size: 22px !important;
	line-height: 1.3;
}

.aivpafe-breed-card__excerpt {
	margin-top: 10px;
}

.aivpafe-breed-card__excerpt > :first-child {
	margin-top: 0;
}

.aivpafe-breed-card__excerpt > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.aivpafe-breeds-grid,
	.aivpafe-breeds-grid--columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.aivpafe-breeds-grid,
	.aivpafe-breeds-grid--columns-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aivpafe-breed-card,
	.aivpafe-breed-card__image img {
		transition: none;
	}
}

.aivpafe-breed-details {
	margin-block: 40px;
}

.aivpafe-breed-details__title {
	margin: 0 0 20px;
}

.aivpafe-breed-details__section {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.aivpafe-breed-details__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	background: var(--awb-color3);
	transition: background-color 0.2s ease;
}

.aivpafe-breed-details__summary::-webkit-details-marker {
	display: none;
}

.aivpafe-breed-details__summary::after {
	content: '+';
	flex: 0 0 auto;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
}

.aivpafe-breed-details__summary:hover,
.aivpafe-breed-details__summary:focus-visible {
	background: var(--awb-color3);
}

.aivpafe-breed-details__section[open] > .aivpafe-breed-details__summary {
	background: var(--awb-color3);
}

.aivpafe-breed-details__section[open] > .aivpafe-breed-details__summary::after {
	content: '\2212';
}

.aivpafe-breed-details__content {
	padding: 22px 20px 26px;
	background: var(--awb-color2);
}

.aivpafe-breed-details__content > :first-child {
	margin-top: 0;
}

.aivpafe-breed-details__content > :last-child {
	margin-bottom: 0;
}

html body.single-aivpafe_breed #wrapper #main #content #aivpafe-breed-details .aivpafe-breed-details__content h3,
html body.single-aivpafe_breed #wrapper #main #content #aivpafe-breed-details .aivpafe-breed-details__content h3.fusion-responsive-typography-calculated {
	margin-top: 0.65em !important;
	margin-block-start: 0.65em !important;
	margin-bottom: 0.4em;
	font-size: 1.1rem;
}

html body.single-aivpafe_breed #wrapper #main #content #aivpafe-breed-details .aivpafe-breed-details__content > h3:first-child {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

.aivpafe-breed-details__content h4 {
	margin-top: 1.25em;
	margin-bottom: 0.35em;
	font-size: 1rem;
}

@media (max-width: 640px) {
	.aivpafe-breed-details {
		margin-block: 30px;
	}

	.aivpafe-breed-details__summary {
		padding: 16px;
	}

	.aivpafe-breed-details__content {
		padding: 20px 16px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aivpafe-breed-details__summary {
		transition: none;
	}
}
