/* Only the nine SKU-scoped galleries receive this class. Native zoom images are excluded. */
.avs3d-equestrian-gallery .flexy-view,
.avs3d-equestrian-gallery .flexy-items .ct-media-container {
	height: var(--avs3d-gallery-height, min(70vh, 720px)) !important;
}
.avs3d-equestrian-gallery .flexy-items .ct-media-container {
	background: #f7f7f5;
	aspect-ratio: auto !important;
}
.avs3d-equestrian-gallery .flexy-items img:not(.zoomImg) {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}
.avs3d-equestrian-gallery .flexy-pills img {
	object-fit: contain !important;
	background: #f7f7f5;
}
.avs3d-equestrian-gallery .ct-product-gallery-container { position: relative; }
.avs3d-equestrian-gallery .avs3d-gallery-open {
	position: absolute; z-index: 5; top: 12px; right: 12px;
	width: 40px; height: 40px; min-height: 0; padding: 0;
	border: 1px solid #ddd6cb; border-radius: 50%; background: #fff; color: #332b22;
	font-size: 23px; line-height: 1; cursor: pointer;
}
.avs3d-gallery-dialog {
	width: min(1100px, 96vw); max-width: 96vw; max-height: 96dvh;
	padding: 12px; border: 0; border-radius: 10px; background: #fafaf8; color: #27231e;
}
.avs3d-gallery-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.avs3d-gallery-dialog img { display: block; width: 100%; height: 78dvh; object-fit: contain; }
.avs3d-gallery-dialog nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.avs3d-gallery-dialog button, .avs3d-gallery-dialog a { font: inherit; }
.avs3d-gallery-dialog button { padding: 8px 12px; min-height: 42px; cursor: pointer; }
.avs3d-gallery-dialog figcaption { margin: 7px 0; }
@media (max-width: 689px) {
	.avs3d-gallery-dialog img { height: 68dvh; }
	.avs3d-gallery-dialog { padding: 8px; }
}
