/* ielena page images: Buy and Sell picture stories */
html body .ipi-story, html body .ipi-wide {
	position: relative; left: 50%; transform: translateX(-50%);
	width: min(1100px, 92vw); max-width: none; margin: 34px 0 40px;
}
html body .ipi-story {
	list-style: none !important; padding: 0 !important; counter-reset: none;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
html body .ipi-story > li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body .ipi-story > li::before, html body .ipi-story > li::marker { content: none !important; display: none !important; }
html body .ipi-card figure { margin: 0; }
html body .ipi-card img, html body .ipi-wide img {
	display: block; width: 100%; height: auto; object-fit: cover; border-radius: 18px;
	box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 40px rgba(17,17,17,.12);
	transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
html body .ipi-card img { aspect-ratio: 3 / 4; }
html body .ipi-wide img { aspect-ratio: 16 / 9; border-radius: 22px; }
html body .ipi-card figure:hover img, html body .ipi-wide:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 26px 60px rgba(17,17,17,.18); }
html body .ipi-card figcaption { padding: 16px 4px 0; }
html body .ipi-n { display: block; font: 600 11px/1 Montserrat, system-ui, sans-serif; letter-spacing: .2em; color: #6E5515; margin-bottom: 8px; }
html body .ipi-card strong { display: block; font: 400 21px/1.2 Marcellus, Georgia, serif; color: #111111; margin-bottom: 6px; }
html body .ipi-line { display: block; font: 400 14px/1.5 Montserrat, system-ui, sans-serif; color: #555555; }
@media (min-width: 1000px) { html body .ipi-story:has(> li:nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
	html body .ipi-story {
		left: auto; transform: none; width: 100vw; max-width: 100vw; margin: 26px 0 34px calc(50% - 50vw); padding: 0 20px 8px !important; scroll-padding-inline: 20px; box-sizing: border-box;
		display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none;
		overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	html body .ipi-story::-webkit-scrollbar { display: none; }
	html body .ipi-story > li { scroll-snap-align: start; }
	html body .ipi-wide { left: auto; transform: none; width: auto; margin: 22px 0 28px; }
}
@media (prefers-reduced-motion: reduce) { html body .ipi-card img, html body .ipi-wide img { transition: none; } }
