/* Color story (Inspiracje) singles — layout matches Elementor template 1437. */

.site-main--story {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

.color-story {
	padding-bottom: 70px;
}

.color-story-parallax {
	background-color: var(--paper);
	background-image: var(--color-story-parallax);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.color-story-parallax__lcp {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.color-story-hero {
	position: relative;
	display: grid;
	min-block-size: 500px;
	place-items: center;
}

.color-story-hero__copy {
	position: relative;
	z-index: 1;
	padding-block: 80px;
	padding-inline: var(--gutter);
	text-align: center;
}

.color-story-hero__title {
	font-size: clamp(50px, 10vw, 140px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.05;
	color: var(--paper);
}

.color-story-box {
	width: min(1280px, 100%);
	margin-inline: auto;
}

.color-story-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding-block: 4%;
}

.color-story-intro__photo {
	display: flex;
	flex: 0 0 40%;
	align-items: center;
	justify-content: center;
	max-width: 40%;
	margin: 0;
}

.color-story-intro:not(:has(.color-story-intro__photo)) .color-story-intro__text {
	max-width: 42rem;
	margin-inline: auto;
}

.color-story-intro__photo img {
	width: 70%;
	height: auto;
	background: var(--cream);
}

.color-story-intro__text {
	flex: 1 1 50%;
	max-width: 42rem;
	padding: 2%;
	font-size: 16px;
	line-height: 1.85;
	color: var(--muted);
}

.color-story-intro__text p:empty {
	display: none;
}

.color-story-split {
	display: flex;
	align-items: stretch;
}

.color-story-split--reverse {
	flex-direction: row-reverse;
}

.color-story-split__photo {
	flex: 0 0 500px;
	width: 500px;
	min-block-size: 30vh;
	background-image: var(--color-story-aside);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.color-story-split--reverse .color-story-split__photo {
	flex: 0 0 40%;
	width: 40%;
	min-block-size: 35vh;
}

.color-story-split__main {
	flex: 1 1 70%;
	min-width: 0;
	padding: 4% 2%;
}

.color-story-split--reverse .color-story-split__main {
	flex-basis: 60%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.color-story-split h2,
.color-story-yarns h2 {
	margin-bottom: 36px;
	text-align: center;
}

.color-story-yarns {
	padding-block: 4%;
	background: #e6deda;
	text-align: center;
}

.color-story-yarns__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

.color-story-yarns__card {
	flex: 0 1 25%;
	max-width: 25%;
}

.color-story-yarns__grid[data-count="1"] .color-story-yarns__card,
.color-story-yarns__grid[data-count="2"] .color-story-yarns__card {
	max-width: 280px;
	flex-basis: 280px;
}

.color-story-yarns__card img {
	width: 100%;
	aspect-ratio: 1 / 1.1;
	object-fit: contain;
	background: #f1f2ed;
}

.color-story-cta {
	position: relative;
	display: grid;
	min-block-size: 70vh;
	place-items: center;
	padding-block: 6%;
	/* New koszyk shot: basket sits lower-center; keep it in frame on wide covers. */
	background-position: 50% 62%;
}

.color-story-cta__inner {
	max-width: 36rem;
	padding: 6% 4%;
	background: #e6deda;
	text-align: center;
}

.color-story--accent .color-story-cta__inner {
	box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-story-accent) 26%, transparent);
}

.color-story-cta__inner p {
	margin: 18px 0 22px;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
}

.color-story-cta .text-link {
	justify-content: center;
}

.color-story-footer {
	display: grid;
	gap: 28px;
	padding-block: 36px 0;
}

.color-story-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
}

.color-story-share p {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--olive);
}

.color-story-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.color-story-share a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-block-size: 44px;
	border-bottom: 1px solid transparent;
	font-size: 14px;
	color: var(--forest);
	transition: color var(--fy-motion-fast) var(--fy-ease), border-color var(--fy-motion-fast) var(--fy-ease);
}

.color-story-share a:hover,
.color-story-share a:focus-visible {
	color: var(--hover);
	border-bottom-color: currentColor;
}

.color-story-share a:focus-visible {
	outline: 2px solid var(--forest);
	outline-offset: 4px;
}

.color-story-share svg.fy-icon--fill {
	width: 14px;
	height: 14px;
	fill: currentColor;
	stroke: none;
}

.color-story-share::after {
	content: "";
	flex: 1 1 80px;
	height: 1px;
	background: var(--line);
}

.color-story .post-navigation {
	width: 100%;
}

.color-story .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	min-height: 280px;
}

.color-story .nav-links:not(:has(.nav-previous)),
.color-story .nav-links:not(:has(.nav-next)) {
	grid-template-columns: 1fr;
}

.color-story .nav-previous,
.color-story .nav-next {
	min-width: 0;
}

.color-story .post-navigation a {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 280px;
	padding: clamp(24px, 4vw, 48px);
	overflow: hidden;
	isolation: isolate;
	background: var(--forest);
	color: var(--paper);
}

.color-story .nav-previous a {
	justify-content: flex-start;
	text-align: start;
}

.color-story .nav-next a {
	justify-content: flex-end;
	text-align: end;
}

.color-story .nav-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.04);
}

.color-story .post-navigation a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgb(28 26 22 / 72%) 0%, rgb(28 26 22 / 18%) 46%, rgb(28 26 22 / 28%) 100%);
}

.color-story .nav-copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 16em;
}

.color-story .nav-next .nav-copy {
	align-items: flex-end;
}

.color-story .nav-subtitle {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--paper) 82%, transparent);
}

.color-story .nav-arrow {
	width: 0.55em;
	height: 0.55em;
	border-top: 1px solid currentColor;
	border-inline-end: 1px solid currentColor;
	transform: rotate(-135deg);
}

.color-story .nav-next .nav-arrow {
	order: 1;
	transform: rotate(45deg);
}

.color-story .nav-title {
	font-family: var(--serif);
	font-size: clamp(36px, 4.4vw, 64px);
	font-weight: 300;
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-wrap: balance;
	color: var(--paper);
}

.color-story .post-navigation a:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: -8px;
}

.color-story-hero__title {
	view-transition-name: color-story-title;
}

.fy-carousel {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding: 10px 70px 34px;
}

.fy-carousel__track {
	display: flex;
	gap: 34px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.fy-carousel__track::-webkit-scrollbar {
	display: none;
}

.fy-carousel__slide {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	scroll-snap-align: center;
}

.fy-carousel__slide img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
}

.fy-carousel--three .fy-carousel__slide {
	flex-basis: calc((100% - 68px) / 3);
}

.fy-carousel--one {
	max-width: 760px;
	padding-bottom: 28px;
}

.fy-carousel--one .fy-carousel__slide {
	flex-basis: 100%;
}

.fy-carousel--one .fy-carousel__slide img {
	width: auto;
	max-width: 100%;
	max-height: 330px;
}

.fy-carousel__caption {
	max-width: 460px;
	margin-block-start: 22px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	text-align: center;
	text-wrap: pretty;
}

.fy-carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 44px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
}

.fy-carousel__btn:hover,
.fy-carousel__btn:focus-visible {
	opacity: 0.55;
}

.fy-carousel__btn--prev {
	left: 8px;
}

.fy-carousel__btn--next {
	right: 8px;
}

.fy-carousel:not(:has(.fy-carousel__slide:nth-child(2))) .fy-carousel__btn {
	display: none;
}

.fy-carousel--one .fy-carousel__btn--prev {
	left: 18px;
}

.fy-carousel--one .fy-carousel__btn--next {
	right: 18px;
}

@media (max-width: 1024px) {
	.color-story-hero {
		min-block-size: 40vh;
	}

	.color-story-cta {
		min-block-size: 40vh;
	}

	.color-story-split__photo {
		flex-basis: 30%;
	}

	.fy-carousel--three .fy-carousel__slide {
		flex-basis: calc((100% - 34px) / 2);
	}
}

@media (max-width: 767px) {
	.color-story-hero {
		min-block-size: 180px;
	}

	.color-story-hero__copy {
		padding-block: 48px;
	}

	.color-story-hero__title {
		font-size: 50px;
	}

	.color-story-box {
		padding-inline: 4%;
	}

	.color-story-intro,
	.color-story-split,
	.color-story-split--reverse {
		flex-direction: column;
	}

	.color-story-intro__photo,
	.color-story-intro__text,
	.color-story-split__photo,
	.color-story-split--reverse .color-story-split__photo,
	.color-story-split__main,
	.color-story-split--reverse .color-story-split__main,
	.color-story-yarns__card,
	.color-story-yarns__grid[data-count="1"] .color-story-yarns__card,
	.color-story-yarns__grid[data-count="2"] .color-story-yarns__card {
		flex-basis: 100%;
		max-width: 100%;
		width: 100%;
	}

	.color-story-intro__photo {
		padding: 0;
		text-align: center;
	}

	.color-story-intro__photo img {
		width: min(70%, 280px);
	}

	.color-story-split__photo,
	.color-story-split--reverse .color-story-split__photo {
		min-block-size: 28vh;
	}

	.color-story .nav-links,
	.color-story .nav-links:has(.nav-previous:hover),
	.color-story .nav-links:has(.nav-next:hover),
	.color-story .nav-links:has(.nav-previous:focus-within),
	.color-story .nav-links:has(.nav-next:focus-within) {
		grid-template-columns: 1fr;
	}

	.color-story .post-navigation a,
	.color-story .nav-next a,
	.color-story .nav-next .nav-copy,
	.color-story .nav-next .nav-subtitle {
		justify-content: flex-start;
		text-align: start;
		align-items: flex-start;
	}

	.color-story .nav-next .nav-arrow {
		order: 0;
	}

	.color-story .post-navigation a {
		min-height: 200px;
	}

	.fy-carousel {
		padding: 10px 42px 28px;
	}

	.fy-carousel--three .fy-carousel__slide,
	.fy-carousel--one .fy-carousel__slide {
		flex-basis: 100%;
	}

	.fy-carousel__slide img {
		max-height: 340px;
	}

	.fy-carousel--one .fy-carousel__slide img {
		max-height: 260px;
	}

	.fy-carousel__caption {
		max-width: none;
	}

	.fy-carousel__btn {
		width: 34px;
		height: 34px;
		font-size: 34px;
	}

	.fy-carousel__btn--prev {
		left: 0;
	}

	.fy-carousel__btn--next {
		right: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.color-story .nav-links {
		transition: grid-template-columns var(--fy-motion) var(--fy-ease);
	}

	.color-story .nav-links:has(.nav-previous):has(.nav-next):has(.nav-previous:hover, .nav-previous:focus-within) {
		grid-template-columns: 1.42fr 0.58fr;
	}

	.color-story .nav-links:has(.nav-previous):has(.nav-next):has(.nav-next:hover, .nav-next:focus-within) {
		grid-template-columns: 0.58fr 1.42fr;
	}

	.color-story .nav-media,
	.color-story .nav-arrow {
		transition: transform var(--fy-motion-slow) var(--fy-ease);
	}

	.color-story .post-navigation a:hover .nav-media,
	.color-story .post-navigation a:focus-visible .nav-media {
		transform: scale(1.1);
	}

	.color-story .nav-previous a:hover .nav-arrow,
	.color-story .nav-previous a:focus-visible .nav-arrow {
		transform: translateX(-6px) rotate(-135deg);
	}

	.color-story .nav-next a:hover .nav-arrow,
	.color-story .nav-next a:focus-visible .nav-arrow {
		transform: translateX(6px) rotate(45deg);
	}

	@view-transition {
		navigation: auto;
	}

	::view-transition-group(color-story-title) {
		animation-duration: 0.65s;
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	}

	:active-view-transition-type(forward)::view-transition-old(root) {
		animation: 0.55s cubic-bezier(0.22, 1, 0.36, 1) both fy-color-leave-forward;
	}

	:active-view-transition-type(forward)::view-transition-new(root) {
		animation: 0.55s cubic-bezier(0.22, 1, 0.36, 1) both fy-color-enter-forward;
	}

	:active-view-transition-type(back)::view-transition-old(root) {
		animation: 0.55s cubic-bezier(0.22, 1, 0.36, 1) both fy-color-leave-back;
	}

	:active-view-transition-type(back)::view-transition-new(root) {
		animation: 0.55s cubic-bezier(0.22, 1, 0.36, 1) both fy-color-enter-back;
	}
}

@keyframes fy-color-leave-forward {
	to {
		opacity: 0;
		transform: translateX(-8%);
	}
}

@keyframes fy-color-enter-forward {
	from {
		opacity: 0;
		transform: translateX(8%);
	}
}

@keyframes fy-color-leave-back {
	to {
		opacity: 0;
		transform: translateX(8%);
	}
}

@keyframes fy-color-enter-back {
	from {
		opacity: 0;
		transform: translateX(-8%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.color-story-parallax {
		background-attachment: scroll;
	}

	.fy-carousel__track {
		scroll-behavior: auto;
	}

	.color-story-hero__title {
		view-transition-name: none;
	}
}

@media (forced-colors: active) {
	.color-story--accent .color-story-cta__inner {
		box-shadow: none;
	}
}
