/* About page «داستان سایکو» — Figma 688:1907. Two 614×300 photos 20px apart, then the heading (right, no wrap) and the
   paragraph beside it, 40px under the photos and 52px apart. Figma 32 ExtraBold / 20 Light → 32 / 18. */
.wp-block-post-content > .scico-about-story { margin-block-start: 0; }

.scico-about-story { box-sizing: border-box; margin-block-start: 0; padding: 40px 96px 72px; background: #fff; }
.scico-about-story__inner { display: flex; width: min(100%, var(--about-story-contentWidth, 1248px)); flex-direction: column; gap: 40px; margin-inline: auto; }
.scico-about-story__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scico-about-story__photos.is-single { grid-template-columns: minmax(0, 1fr); }
.scico-about-story__photo { overflow: hidden; height: max(180px, min(var(--about-story-photoHeight, 300px), 20.833vw)); margin: 0; background: #eceae5; }
.scico-about-story__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.scico-about-story__copy { display: flex; align-items: flex-start; gap: 52px; }
.scico-about-story h2 { flex: 0 0 auto; margin: 0; color: var(--about-story-headingColor, #000); font-size: var(--about-story-headingSize, 32px); font-weight: var(--about-story-headingWeight, 800); line-height: 1.4; white-space: nowrap; }
.scico-about-story p { min-width: 0; flex: 1 1 0; margin: 0; color: var(--about-story-textColor, #000); font-size: var(--about-story-textSize, 18px); font-weight: var(--about-story-textWeight, 300); line-height: 1.9; text-align: justify; }
.scico-about-story p a { color: inherit; text-underline-offset: 4px; }

@media (hover: hover) {
	.scico-about-story__photo:hover img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-about-story__photo img { transition: none; }
	.scico-about-story__photo:hover img { transform: none; }
}

@media (max-width: 1100px) {
	.scico-about-story { padding: 32px 32px 64px; }
	.scico-about-story__copy { gap: 32px; }
	.scico-about-story h2 { font-size: min(var(--about-story-headingSize, 32px), 28px); }
}

@media (max-width: 760px) {
	.scico-about-story__inner { gap: 28px; }
	.scico-about-story__copy { flex-direction: column; gap: 12px; }
	.scico-about-story h2 { white-space: normal; }
	.scico-about-story p { text-align: right; }
}

@media (max-width: 600px) {
	.scico-about-story { padding: 24px 16px 56px; }
	.scico-about-story__photos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.scico-about-story__photo { height: 200px; }
	.scico-about-story h2 { font-size: min(var(--about-story-headingSize, 32px), 24px); }
	.scico-about-story p { font-size: min(var(--about-story-textSize, 18px), 16px); line-height: 1.85; }
}
