/*
Theme Name: Mommy Means It
Description: Child theme of Twenty Twenty-Five that rebuilds the Headway layout: banner, blue menu, image slider, pin-board grid and sidebar.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: mommymeansit
*/

/* Menu bar: blue tabs, as in Headway */
.mmi-nav .wp-block-navigation-item__content {
	padding: 0.6rem 0.9rem;
}
.mmi-nav .wp-block-navigation__container {
	gap: 0;
}
.mmi-nav .wp-block-navigation-item__content:hover,
.mmi-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--sky);
}

/* Slider: a row of linked images that scrolls sideways */
.mmi-slider {
	display: flex;
	gap: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	align-items: flex-start;
}
.mmi-slider::-webkit-scrollbar {
	display: none;
}
.mmi-slider > .wp-block-image {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}
.mmi-slider img {
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 628;
	object-fit: cover;
	display: block;
}
.mmi-slider-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 0.5rem;
}
.mmi-slider-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #bbb;
	cursor: pointer;
}
.mmi-slider-dots button[aria-current="true"] {
	background: var(--wp--preset--color--brown);
}

/* Pin board: cards keep their own height instead of stretching to the row */
.mmi-pins .wp-block-post-template {
	align-items: start;
}
.mmi-pin {
	border: 1px solid #eee;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.mmi-pin .wp-block-post-title a {
	text-decoration: none;
}

/* Sidebar widgets: double orange border, as in Headway */
.mmi-sidebar > * + * {
	margin-top: 1.25rem;
}
.mmi-widget {
	border: 5px double var(--wp--preset--color--orange-dark);
	padding: 0.5rem 0.75rem;
}

/* Without this the slider's row of full-width slides widens its column past the screen. */
.wp-block-column {
	min-width: 0;
}

/* Slide captions: the post title on a dark band across the bottom, as Headway showed it */
.mmi-slider > .wp-block-image {
	position: relative;
}
.mmi-slider > .wp-block-image > a {
	display: block;
}
.mmi-slider figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 0.6rem 1rem;
	background: rgb(0 0 0 / 0.6);
	text-align: center;
	font-size: clamp(14px, 2.5vw, 18px);
	line-height: 1.3;
}
.mmi-slider figcaption a {
	color: #fff;
	text-decoration: none;
}
