/*
 * Cottages at Millwood — the few things core blocks and theme.json cannot set.
 * Each rule reproduces a Platypus behaviour from docs/cottages-design-dna.md §8.
 */

/* Body copy is semibold (600), so the browser's `bolder` would jump strong text to 900. */
strong,
b {
	font-weight: 700;
}

/* Buttons lift 1px on hover; the secondary style keeps its own hover colour. */
.wp-element-button:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary-hover);
}

/* The full-width rule above the address is 4px (core separators are 2px). */
.wp-block-separator.is-style-thick {
	border-top-width: 4px;
}

/* The Pelican form iframe is a block box, not an inline element sitting on a text baseline. */
.pelican-form-frame {
	display: block;
}

/* Galleries keep two columns up to Platypus's 767px breakpoint (core: 600px), last image unstretched. */
@media (max-width: 767px) {
	body .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
		width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * 0.5);
		flex-grow: 0;
	}
}

/* Lightbox backdrop (decision D6): black at core's 0.9 opacity, as Platypus's rgba(0,0,0,.9), instead of the page background. */
.wp-lightbox-overlay .scrim {
	background-color: #000 !important;
}
