/*
 * "Come take a peek" (partials/instagram.php): four of our photos scattered like prints on a table,
 * as the Instagram feed plugin's grid was styled in style.css. Each is a square crop with a white
 * border; hovering one lifts it and settles the rest back.
 *
 * The lower prints hang about 12rem below the box, so its bottom margin is that overhang: the pile
 * then ends where the box does as far as the next section is concerned, instead of relying on the
 * section's own padding to keep it off the footer.
 */
.instagram-strip {
	position: relative;
	aspect-ratio: 1 / 1;
	/* On a phone the plugin's box had 2.5rem of padding on the left and 5rem on the right. */
	width: clamp(10rem, calc((100% - 7.5rem) * 0.75), 16rem);
	margin: 5rem auto 12rem;
	translate: -1.25rem 0;
}

@media (min-width: 1024px) {
	.instagram-strip {
		width: clamp(10rem, 75%, 16rem);
		margin: calc(2.5rem - 20%) auto 12rem;
		translate: none;
	}
}

.instagram-photo {
	position: absolute;
	width: 100%;
	height: 100%;
	border: .5rem solid var(--white);
	transition: scale .3s ease;
}

.instagram-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.instagram-strip:has(.instagram-photo:hover) .instagram-photo {
	scale: 0.9;
}

.instagram-strip .instagram-photo:hover {
	scale: 1.1;
}

/* Top-left */
.instagram-photo:nth-child(1) {
	z-index: 4;
	top: 0;
	left: 0;
	transform: rotate(-15deg) translate(-20%, -20%);
}

/* Top-right */
.instagram-photo:nth-child(2) {
	z-index: 3;
	top: 0;
	right: -35%;
	transform: rotate(8deg) translate(15%, -10%);
}

/* Bottom-left */
.instagram-photo:nth-child(3) {
	z-index: 2;
	top: 5rem;
	left: -25%;
	transform: rotate(-5deg) translate(-5%, 10%);
}

/* Bottom-right */
.instagram-photo:nth-child(4) {
	z-index: 1;
	top: 7.5rem;
	left: 15%;
	transform: rotate(-10deg) translate(15%, 20%);
}
