/* LONG ESSAY — page-essay.php, and the main text of page-book.php
   ============================================================================
   The reading column itself (.theContent) is styled in style.css. This sheet
   is the opening photograph in its two layouts.
   ========================================================================== */

/* WIDE — above the text. The photograph is an <img> at its own proportions:
   width 100%, height auto. It is never a background, never given a fixed
   height and never object-fit: cover, so it cannot be cropped or stretched
   at any screen size. */
section.openingImageWide .sectionInner { padding: 0; }
section.openingImageWide figure { margin: 0; }
section.openingImageWide img { width: 100%; height: auto; }
a.openingImageLink { display: block; border: 0; cursor: zoom-in; }

/* BESIDE — the photograph next to the opening text on a wide screen; above
   it on a phone. Shown at its natural proportions in both. */
figure.openingImageBeside { margin: 0 auto 2.5rem; max-width: 26rem; }
figure.openingImageBeside img { width: 100%; height: auto; }

@media (min-width: 900px) { /* BP-TWO-COL */
	section.essayBeside .container {
		display: grid;
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: clamp(2.5rem, 5vw, 6rem);
		align-items: start;
	}
	/* The photograph stays in view while the opening screens of text are read. */
	figure.openingImageBeside {
		margin: 0;
		max-width: none;
		position: sticky;
		top: 2rem;
	}
	section.essayBeside .theContent > *,
	section.essayBeside .notes {
		margin-left: 0;
	}
}
