.myrecipes-image-gallery { margin-block: 1rem; min-width: 0; }
.myrecipes-gallery-slides:not(.slick-initialized) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .5rem;
}
.myrecipes-gallery-image { display: block; min-width: 0; cursor: zoom-in; }
.myrecipes-gallery-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	border-radius: .65rem;
}
.myrecipes-gallery-slides .slick-list { margin-inline: -.25rem; }
.myrecipes-gallery-slides .slick-slide { padding-inline: .25rem; }
.myrecipes-gallery-image:focus-visible img { outline: 2px solid var(--focus); outline-offset: -3px; }
.myrecipes-gallery-controls { display: none; }
.myrecipes-image-gallery.has-gallery-controls .myrecipes-gallery-controls {
	display: flex;
	justify-content: center;
	gap: .4rem;
	margin-top: .5rem;
}
.myrecipes-gallery-controls button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: var(--green);
	font: inherit;
	cursor: pointer;
}
.myrecipes-gallery-controls button:hover { background: var(--accent-hover); }
.myrecipes-gallery-controls .slick-disabled { opacity: .5; cursor: default; }
.myrecipes-fancybox .fancybox-image { border-radius: 1rem; }
.myrecipes-fancybox .fancybox-button:hover:not([disabled]) { background-color: #1e1e1ed9; }
@media (prefers-reduced-motion: no-preference) {
	.myrecipes-fancybox .fancybox-button { transition: background-color .22s ease, color .22s ease; }
	.myrecipes-fancybox .fancybox-navigation .fancybox-button {
		transition: opacity .25s ease, visibility 0s ease .25s, background-color .22s ease, color .22s ease;
	}
	.myrecipes-fancybox.fancybox-show-nav .fancybox-navigation .fancybox-button { transition-delay: 0s; }
}
@supports not (aspect-ratio: 1 / 1) {
	.myrecipes-gallery-image { position: relative; }
	.myrecipes-gallery-image::before { content: ""; display: block; padding-top: 75%; }
	.myrecipes-gallery-image img { position: absolute; inset: 0; height: 100%; }
}
@media (max-width: 1024px) {
	.myrecipes-gallery-slides:not(.slick-initialized) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.myrecipes-gallery-slides:not(.slick-initialized) { grid-template-columns: minmax(0, 1fr); }
}
