/*
 * Spacca - Issue 1: per-article photo layouts (loaded only on /issue-1/).
 * Shared shell (sections, contents, article base/copy, media wrapper, footer)
 * lives in issue.css. Class convention: .spacca-a{N}-* = article N of this issue.
 */

/* Article 1 - Went to Milan to Get Drunk ----------------------------------
   Mobile: vertical column (main photo, then the drop sequence stack at 80%).
   Desktop: a justified row (60% wide) where the two column widths come from the
   real aspect ratios (main 2/3, stack = five 16/9 frames = (16/9)/5), so their
   heights match with no crop. Then the fs wallride at 60%, right-aligned. */
.spacca-a1-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 3rem;
}

.spacca-a1-main,
.spacca-a1-solo {
	display: block;
	width: 100%;
	height: auto;
}

.spacca-a1-stack {
	display: flex;
	flex-direction: column;
	width: 80%;
}

.spacca-a1-stack img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.spacca-a1-row {
		width: 60%;
		flex-direction: row;
		align-items: flex-start;
		row-gap: 0;
	}

	.spacca-a1-main {
		flex: 0.667 1 0;
		min-width: 0;
		width: auto;
	}

	.spacca-a1-stack {
		flex: 0.356 1 0;
		min-width: 0;
		width: auto;
	}

	.spacca-a1-solo {
		width: 60%;
		align-self: flex-end;
	}
}

/* Article 2 - Plazaboards jaunt in Rome: three equal-ratio (2:3) photos.
   Mobile: stacked column; tablet/desktop: a row, equal widths -> same height. */
.spacca-a2-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.spacca-a2-row img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.spacca-a2-row {
		flex-direction: row;
		align-items: flex-start;
	}

	.spacca-a2-row img {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
	}
}

/* Article 3 - Gets your hands dirty at Ponte DIY --------------------------
   Top band: three photos. Bottom band: two photos (second = 20% vs 60%). */
.spacca-a3-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: flex-start;
	row-gap: 2rem;
}

.spacca-a3-top img {
	display: block;
	height: auto;
}

/* Mobile: photos 1 and 2 small side by side (even spacing), photo 3 full width. */
.spacca-a3-top img:nth-child(1),
.spacca-a3-top img:nth-child(2) {
	width: 38%;
}

.spacca-a3-top img:nth-child(3) {
	width: 100%;
}

.spacca-a3-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 2rem;
}

.spacca-a3-bottom img {
	display: block;
	height: auto;
}

/* Mobile: concrete-mix (right) on top at half width, collage below full width. */
.spacca-a3-bottom img:nth-child(1) {
	width: 100%;
}

.spacca-a3-bottom img:nth-child(2) {
	width: 50%;
	order: -1;
}

@media (min-width: 768px) {
	/* Top band: two polaroids at 20% (3rem apart), third photo at 40% pushed
	   right (space-between only between the 2nd polaroid and the right photo). */
	.spacca-a3-top {
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: center;
		column-gap: 0;
		row-gap: 0;
	}

	.spacca-a3-top img:nth-child(1) {
		width: 20%;
		margin-right: 3rem;
	}

	.spacca-a3-top img:nth-child(2) {
		width: 20%;
		margin-bottom: 4rem;
	}

	.spacca-a3-top img:nth-child(3) {
		width: 40%;
		margin-left: auto;
	}

	/* Bottom band: collage 60% (left), concrete-mix 20% (right), space between. */
	.spacca-a3-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		column-gap: 0;
		row-gap: 0;
	}

	.spacca-a3-bottom img:nth-child(1) {
		width: 60%;
	}

	.spacca-a3-bottom img:nth-child(2) {
		width: 20%;
		order: 0;
	}
}

/* Article 4 - "Ok, niente scherzi": two photos. Mobile: stacked, right-aligned
   (60% then 90%). Desktop: a row with space-between (30% and 50%), top-aligned. */
.spacca-a4-row {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	row-gap: 1rem;
}

.spacca-a4-row img {
	display: block;
	height: auto;
}

.spacca-a4-row img:nth-child(1) {
	width: 60%;
}

.spacca-a4-row img:nth-child(2) {
	width: 90%;
}

@media (min-width: 768px) {
	.spacca-a4-row {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		row-gap: 0;
	}

	.spacca-a4-row img:nth-child(1) {
		width: 30%;
	}

	.spacca-a4-row img:nth-child(2) {
		width: 50%;
	}
}

/* Article 5 - A. Kus through the viewfinder.
   Mobile: collage (2nd) on top full width, concrete (1st) below at 50% left;
   then joshbentley full width. Desktop: concrete 30% + collage 50% space-between,
   then joshbentley 50% left-aligned. */
.spacca-a5-row {
	display: flex;
	flex-direction: column;
	row-gap: 2rem;
}

.spacca-a5-row img {
	display: block;
	height: auto;
}

.spacca-a5-row img:nth-child(1) {
	width: 50%;
	align-self: flex-start;
}

.spacca-a5-row img:nth-child(2) {
	width: 100%;
	order: -1;
}

.spacca-a5-solo {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.spacca-a5-row {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		row-gap: 0;
	}

	.spacca-a5-row img:nth-child(1) {
		width: 30%;
		align-self: auto;
	}

	.spacca-a5-row img:nth-child(2) {
		width: 50%;
		order: 0;
	}

	.spacca-a5-solo {
		width: 50%;
		align-self: flex-start;
	}
}

/* Article 6 - 90's Maybe - La Sapienza. Two mirrored rows.
   Base row: big photo left (60%), small right (30%), space-between. Mobile: left
   photo full width on top, right one below at 60% right-aligned.
   --flip: the mirror image (used by the second row). */
.spacca-a6-row {
	display: flex;
	flex-direction: column;
	row-gap: 2rem;
}

.spacca-a6-row img {
	display: block;
	height: auto;
}

.spacca-a6-row img:nth-child(1) {
	width: 100%;
}

.spacca-a6-row img:nth-child(2) {
	width: 60%;
	align-self: flex-end;
}

.spacca-a6-row--flip img:nth-child(1) {
	width: 60%;
	align-self: flex-start;
}

.spacca-a6-row--flip img:nth-child(2) {
	width: 100%;
	align-self: stretch;
	order: -1;
}

@media (min-width: 768px) {
	.spacca-a6-row {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
		row-gap: 0;
	}

	.spacca-a6-row img:nth-child(1) {
		width: 60%;
	}

	.spacca-a6-row img:nth-child(2) {
		width: 30%;
		align-self: auto;
	}

	.spacca-a6-row--flip img:nth-child(1) {
		width: 30%;
		align-self: auto;
	}

	.spacca-a6-row--flip img:nth-child(2) {
		width: 60%;
		align-self: auto;
		order: 0;
	}
}
