/*
Theme Name:  Nick Gardner Photography
Description: Child theme of Kadence for Nick Gardner Photography.
Author:      Nick Gardner
Template:    kadence
Version:     1.0.38
Text Domain: ngp
*/

/*
 * Add CSS here only where Kadence has no setting for it.
 * Every rule needs a comment that says why Kadence can't do it.
 * Colors use Kadence palette variables, never hex values:
 *   --global-palette1 Gulf, 2 Gulf hover, 3 and 4 Ink, 5 and 6 Stone,
 *   7 Line, 8 Sand, 9 White.
 * Breakpoints match Kadence: mobile is max-width 767px, tablet is max-width 1024px.
 */

/* ---------------------------------------------------------------
 * Focus
 * Why: Kadence has no focus setting. Its form fields remove the
 * outline and add a drop shadow on focus instead.
 * ------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--global-palette3);
	outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
	box-shadow: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.kb-advanced-form .kb-field.kb-field:focus,
.kb-advanced-form select.kb-field:focus,
.kb-advanced-form select:focus {
	outline: 2px solid var(--global-palette3);
	outline-offset: 2px;
}

/* Text fields show the ring on any focus (mouse or keyboard), the usual
 * pattern for fields; .kb-field is doubled to outrank Kadence's form rule
 * that removes the outline on text inputs. Embedded players (the YouTube
 * iframe) get the ring while focus is inside them. */
.ngp-video iframe:focus,
iframe:focus {
	outline: 2px solid var(--global-palette3);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------
 * Field borders and dividers
 * Why: Kadence colors inputs and <hr> with its own --global-gray-400
 * variable, not a palette slot, and has no setting to change it.
 * ------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea,
input:focus,
select:focus,
textarea:focus {
	border-color: var(--global-palette5);
}

hr,
.wp-block-separator {
	border-color: var(--global-palette7);
	color: var(--global-palette7);
}

/* ---------------------------------------------------------------
 * Text styles: Label, Lead, Caption
 * Why: Kadence only has global type settings for body, H1 to H6 and
 * navigation. Add these classes in a block's Advanced >
 * Additional CSS class(es) field.
 * ------------------------------------------------------------- */
.ngp-label {
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--global-palette5);
}

.ngp-lead {
	font-family: Manrope, sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 34px;
}

.ngp-caption,
figcaption,
.wp-element-caption {
	font-family: Manrope, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
	color: var(--global-palette5);
}

/* ---------------------------------------------------------------
 * Placeholders
 * Why: the mockups mark anything not yet supplied with a dashed
 * underline or outline, so it can't ship by accident. Kadence has
 * no "placeholder" state. Remove the class when the real item exists.
 * ------------------------------------------------------------- */
a.ngp-placeholder,
.menu-item.ngp-placeholder > a,
.wp-block-button.ngp-text-link.ngp-placeholder > a,
.wp-block-button.ngp-placeholder > .wp-block-button__link,
.ngp-placeholder-text {
	text-decoration: underline dashed var(--global-palette5);
	text-underline-offset: 4px;
}

/* ---------------------------------------------------------------
 * Header and footer frame
 * Why: Kadence rows are either the content width (1232 px) or edge to
 * edge. The header and footer sit in a wider frame: up to 1440 px with
 * 48 px side padding from 1025 px up. Below that Kadence's 24 px edge
 * padding stays.
 * ------------------------------------------------------------- */
@media (min-width: 1025px) {
	#masthead .site-header-row-layout-fullwidth .site-container,
	.site-footer .site-footer-row-layout-fullwidth .site-container {
		max-width: 1440px;
		margin-right: auto;
		margin-left: auto;
		padding-right: 48px;
		padding-left: 48px;
	}
}

/* ---------------------------------------------------------------
 * Footer (Ink band, redesign 2026-11-10)
 * Why: the layout, background, link colors and social icons are
 * Kadence footer settings (tools/setup-footer.php). Kadence has no
 * setting for column headings, text colors on a dark row, a focus
 * ring on dark, or a 44 px round icon target, so those are here.
 * White text at 72% and headings at 64% on Ink stay above 7:1.
 * ------------------------------------------------------------- */
.site-footer .widget {
	margin-bottom: 0;
}

.site-footer :focus-visible {
	outline-color: var(--global-palette9);
}

/* Placeholders keep their dashed underline, lightened for the dark band. */
.site-footer a.ngp-placeholder,
.site-footer .menu-item.ngp-placeholder > a,
.site-footer .ngp-placeholder-text {
	text-decoration: underline dashed rgba(255, 255, 255, 0.6);
	text-underline-offset: 4px;
}

/* Brand: white monogram beside the name, like the header's logo, title and tagline. */
.ngp-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--global-palette9);
	text-decoration: none;
}

.ngp-wordmark:hover {
	color: var(--global-palette9);
}

.ngp-wordmark__mark {
	display: block;
	width: 52px;
	height: 52px;
}

.ngp-wordmark__text,
.ngp-wordmark__name,
.ngp-wordmark__sub {
	display: block;
}

.ngp-wordmark__name {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ngp-wordmark__sub {
	margin-top: 4px;
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.site-footer .ngp-footer-brand__area {
	max-width: 30em;
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 26px;
	color: rgba(255, 255, 255, 0.72);
}

/* Social icons (Kadence Footer Social): 44 px round targets under the brand. */
.site-footer .footer-social-wrap {
	margin-top: 28px;
}

.site-footer .footer-social-inner-wrap {
	gap: 12px;
}

.site-footer .footer-social-item.social-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
}

/* Column headings and link lists. */
.ngp-footer-heading {
	margin: 0 0 14px;
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.64);
}

.site-footer .ngp-footer-menu {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .ngp-footer-menu li {
	padding: 0;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--global-palette9);
}

/* Each link is a 36 px tall target (24 px line plus 6 px above and below). */
.site-footer .ngp-footer-menu a,
.ngp-footer-contact .ngp-footer-menu .ngp-placeholder-text {
	display: inline-block;
	padding: 6px 0;
}

.site-footer .ngp-footer-menu a {
	color: var(--global-palette9);
	text-decoration: none;
}

.site-footer .ngp-footer-menu a:hover,
.site-footer .ngp-footer-menu .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ngp-footer-note {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 22px;
	color: rgba(255, 255, 255, 0.72);
}

/* Outline button on Ink (the site's buttons are Gulf fills). */
.site-footer .ngp-footer-button {
	display: inline-block;
	margin-top: 20px;
	padding: 13px 27px;
	border: 1px solid var(--global-palette9);
	border-radius: 2px;
	font-family: Manrope, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: var(--global-palette9);
	text-decoration: none;
}

.site-footer .ngp-footer-button:hover {
	background: var(--global-palette9);
	color: var(--global-palette3);
}

/* Bottom bar: the legal links in a row 24 px apart (colors and type are Kadence settings). */
.site-footer .footer-navigation .menu {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0 24px;
}

.site-footer .footer-navigation .menu > li {
	color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-navigation .menu > li > a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Tablet and phone: brand and contact span both columns; Explore and Information sit side by side. */
@media (max-width: 1024px) {
	.site-footer-row-columns-4 > .site-footer-middle-section-1,
	.site-footer-row-columns-4 > .site-footer-middle-section-4 {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------
 * Phone menu Contact button
 * Why: Kadence's mobile button has no full-width setting. The
 * mockup shows it spanning the panel.
 * ------------------------------------------------------------- */
.popup-drawer .mobile-header-button-wrap,
.popup-drawer .mobile-header-button-wrap .mobile-header-button-inner-wrap,
.popup-drawer .mobile-header-button-wrap .mobile-header-button {
	display: block;
	width: 100%;
	text-align: center;
}

.popup-drawer .mobile-header-button-wrap {
	margin-top: 48px;
}

/* ---------------------------------------------------------------
 * Text links (secondary action)
 * Why: the mockups pair one button with Ink, underlined text links.
 * Kadence's link setting covers body links (Gulf); it has no second
 * link style. Add class "ngp-text-link" to the paragraph.
 * ------------------------------------------------------------- */
.ngp-text-link a {
	font-family: Manrope, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: var(--global-palette3);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.ngp-text-link a:hover {
	color: var(--global-palette1);
}

/* Headings that are links (collection cards) keep heading color. */
h2 a,
h3 a {
	color: inherit;
	text-decoration: none;
}

h2 a:hover,
h3 a:hover {
	color: var(--global-palette1);
}

/* Button and text link side by side. */
.ngp-actions {
	gap: 24px;
}

/* Two classes deep to beat Kadence's content margin on the buttons block. */
.ngp-actions.wp-block-group > * {
	margin: 0;
}

/* ---------------------------------------------------------------
 * Sections over photos (hero)
 * Why: Kadence's Row Layout text color covers headings and plain
 * links, but not the text link style above, placeholder marks, or
 * focus outlines. The build notes ask for a white focus outline
 * over photos.
 * ------------------------------------------------------------- */
.ngp-on-photo .ngp-text-link a,
.ngp-on-photo .ngp-text-link a:hover {
	color: var(--global-palette9);
}

.ngp-on-photo .ngp-placeholder-text {
	text-decoration-color: var(--global-palette9);
}

.ngp-on-photo :focus-visible {
	outline-color: var(--global-palette9);
}

.ngp-hero .ngp-lead {
	max-width: 36em;
}

.ngp-hero .ngp-actions {
	margin-top: 32px;
}

/* ---------------------------------------------------------------
 * Hero slideshow controls: dots, previous, next, pause
 * Why: Kadence centers the dots at the bottom, puts the arrows on the
 * far left and right edges (where they cover the hero text on
 * phones), rounds them, and has no setting to place or square any of
 * them. The mockup puts one row of square controls at the left edge
 * of the content, under the buttons. Brand rule: square corners.
 * Selectors are repeated to outrank Kadence's slider stylesheet and
 * its per-row rules.
 * Row: one dot per slide, each a 24px target with a 12px square drawn
 * inside (WCAG 2.5.8 target size); 24px space, then three 40px buttons
 * 8px apart. --ngp-dots is the slide count, set on the row by
 * ngp_home_slides_count() from the Home "Slideshow" gallery (default 4).
 * ------------------------------------------------------------- */
.ngp-hero {
	--ngp-ctrl-left: max(var(--global-content-edge-padding, 1.5rem), calc((100% - var(--global-content-width, 1280px)) / 2 + var(--global-content-edge-padding, 1.5rem)));
	--ngp-ctrl-bottom: 34px;
	--ngp-dots: 4;
	--ngp-ctrl-arrows: calc(var(--ngp-ctrl-left) + var(--ngp-dots) * 24px + 24px);
}

.ngp-hero .kb-blocks-bg-slider ul.splide__pagination.splide__pagination {
	left: var(--ngp-ctrl-left);
	right: auto;
	bottom: calc(var(--ngp-ctrl-bottom) + 8px);
	transform: none;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	gap: 0;
}

.ngp-hero .kb-blocks-bg-slider .splide__pagination li {
	margin: 0;
	line-height: 0;
}

.ngp-hero .kb-blocks-bg-slider button.splide__pagination__page.splide__pagination__page {
	position: relative;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	transform: none;
}

.ngp-hero .kb-blocks-bg-slider button.splide__pagination__page::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 6px;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border: 1px solid var(--global-palette9);
}

.ngp-hero .kb-blocks-bg-slider button.splide__pagination__page.is-active::after {
	background: var(--global-palette9);
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .splide__arrow,
.ngp-hero.ngp-hero .kb-blocks-bg-slider .kb-gallery-pause-button {
	top: auto;
	right: auto;
	bottom: var(--ngp-ctrl-bottom);
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--global-palette9);
	border-radius: 0;
	background-color: transparent;
	color: var(--global-palette9);
	box-shadow: none;
	opacity: 1;
	transform: none;
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .splide__arrow:hover,
.ngp-hero.ngp-hero .kb-blocks-bg-slider .kb-gallery-pause-button:hover {
	background-color: var(--global-palette9);
	color: var(--global-palette3);
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .splide__arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .splide__arrow--prev {
	left: var(--ngp-ctrl-arrows);
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .splide__arrow--next {
	left: calc(var(--ngp-ctrl-arrows) + 48px);
}

.ngp-hero.ngp-hero .kb-blocks-bg-slider .kb-gallery-pause-button {
	left: calc(var(--ngp-ctrl-arrows) + 96px);
}

/* ---------------------------------------------------------------
 * Label above a heading
 * Why: Kadence's content spacing puts a paragraph margin plus a
 * heading top margin between them (about 70px). The mockup keeps the
 * label tight to its heading.
 * ------------------------------------------------------------- */
.single-content p.ngp-label,
p.ngp-label {
	margin-bottom: 12px;
}

.ngp-label + .wp-block-heading {
	margin-top: 0;
}

/* Comfortable line length for short one-column sections. */
.ngp-measure {
	max-width: 40em;
}

/* Lead text in a measured column lines up with the body text under it
 * (40em of the larger Lead type would run wider). */
.ngp-lead.ngp-measure {
	max-width: 720px;
}

/* ---------------------------------------------------------------
 * Photo placeholders
 * Why: marks where a photo goes until it's supplied (mockup style:
 * 3:2 box, centered caption). Replace the group with an image block.
 * ------------------------------------------------------------- */
.ngp-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	margin-bottom: 24px;
	padding: 16px;
	border: 1px dashed var(--global-palette5);
	text-align: center;
}

.ngp-photo-placeholder p {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--global-palette5);
}

.ngp-placeholder-note {
	display: inline-block;
	padding: 4px 8px;
	border: 1px dashed currentColor;
	font-size: 14px;
	line-height: 22px;
}

/* A note whose text was deleted in the editor hides instead of leaving an empty dashed box. */
.ngp-placeholder-note:empty {
	display: none;
}

/* ---------------------------------------------------------------
 * Price table
 * Why: the core Table block has no border color or alignment
 * settings that match the mockup (Line dividers, prices right).
 * ------------------------------------------------------------- */
.ngp-price-table table {
	border-collapse: collapse;
	width: 100%;
}

.ngp-price-table th,
.ngp-price-table td {
	border: 0;
	border-bottom: 1px solid var(--global-palette7);
	padding: 16px 0;
	text-align: left;
}

/* Core table draws a 3px rule under the header. */
.ngp-price-table thead {
	border-bottom: 0;
}

.ngp-price-table thead th {
	border-top: 1px solid var(--global-palette7);
	font-weight: 400;
	font-size: 14px;
	line-height: 22px;
	color: var(--global-palette5);
}

.ngp-price-table tbody td:first-child {
	font-weight: 600;
	font-size: 16px;
}

.ngp-price-table th:last-child,
.ngp-price-table td:last-child {
	text-align: right;
}

.ngp-credentials {
	margin: 0;
	color: var(--global-palette5);
}

/* ---------------------------------------------------------------
 * Text links that are buttons
 * Why: a link whose address comes from an ACF field (block binding)
 * has to be a core Button, because a paragraph link can't be bound.
 * Kadence's button settings are global, with no "text link" style,
 * so this strips the button look and the ngp-text-link rules above
 * take over. Add class "ngp-text-link" to the Button block.
 * ------------------------------------------------------------- */
.wp-block-button.ngp-text-link .wp-block-button__link,
.wp-block-button.ngp-text-link .wp-block-button__link:hover {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.ngp-link-row.wp-block-buttons {
	gap: 24px;
}

/* ---------------------------------------------------------------
 * Single templates (Hooked Elements)
 * ------------------------------------------------------------- */

/* Why: Kadence's Dynamic HTML block has no size setting, and the
 * YouTube embed comes with a fixed width and height. Fill the column
 * at 16:9. */
.ngp-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Why: the blog post header puts the title and date on the left and
 * the category on the right, on one bottom line. Kadence's content
 * spacing adds a bottom margin to the last block in each Section,
 * which would lift the two sides off that line, and the category
 * links would take the Gulf link color. */
.wp-block-post-title + .ngp-post-date {
	margin-top: 12px;
}

.ngp-post-date,
.ngp-post-category {
	margin-bottom: 0;
}

.ngp-post-category a {
	color: inherit;
	text-decoration: none;
}

.ngp-post-category a:hover {
	color: var(--global-palette1);
	text-decoration: underline;
}

.ngp-post-photo {
	margin: 0;
}

/* ---------------------------------------------------------------
 * Blog post body
 * Why: the text sits in a 720px column (core constrained layout on
 * the Post Content block), but photos in the post span the full
 * 1280px column. Kadence and core only widen an image when it's set
 * to "wide" in the editor; this makes every body photo full width
 * without Nick setting it on each one (his choice, 2026-11-08).
 * ------------------------------------------------------------- */
.ngp-post-body .wp-block-post-content > .wp-block-image,
.ngp-post-body .wp-block-post-content > .wp-block-gallery,
.ngp-post-body .wp-block-post-content > .wp-block-kadence-advancedgallery,
.ngp-post-body .wp-block-post-content > .wp-block-kadence-image {
	max-width: 1280px;
	margin-top: 48px;
	margin-bottom: 48px;
}

.ngp-post-body .wp-block-post-content > .wp-block-image img {
	width: 100%;
	height: auto;
}

/* Why: Kadence's content spacing leaves a heading-sized gap between
 * the Collection title and its location line. The mockup sets the
 * location tight under the title. */
.wp-block-post-title:has(+ .ngp-collection-location) {
	margin-bottom: 0;
}

.wp-block-post-title + .ngp-collection-location {
	margin-top: 8px;
}

/* Why: the Advanced Gallery has no bottom margin setting, and the
 * button sits 32px under it in the mockup. */
.ngp-gallery-action.wp-block-buttons {
	margin-top: 32px;
}

/* ---------------------------------------------------------------
 * Placeholder photo grid (Portfolio sections without images yet)
 * Why: a core Group grid has a fixed column count and no phone
 * setting, and the boxes' own bottom margin would double the gap.
 * Matches the gallery: 16px gaps, 3 columns, 1 on phone.
 * ------------------------------------------------------------- */
.ngp-placeholder-grid.wp-block-group {
	gap: 16px;
}

.ngp-placeholder-grid .ngp-photo-placeholder {
	margin: 0;
}

/* Why: thumbnails are 1:1 (Nick, 2026-11-15). Images get it from their
 * block settings, but a placeholder is a plain Group with no ratio
 * setting: the gallery placeholders and the Home card boxes (ngp-thumb). */
.ngp-placeholder-grid .ngp-photo-placeholder,
.ngp-photo-placeholder.ngp-thumb {
	aspect-ratio: 1 / 1;
}

/* Why: the Portfolio page's "Photos per section" setting (3 or 6) caps
 * each gallery in PHP (ngp_portfolio_gallery_limit()); the placeholder
 * boxes are plain blocks, so the same cap is applied here. */
.ngp-portfolio-photos-3 .ngp-placeholder-grid .ngp-photo-placeholder:nth-child(n+4),
.ngp-portfolio-photos-6 .ngp-placeholder-grid .ngp-photo-placeholder:nth-child(n+7) {
	display: none;
}

@media (max-width: 767px) {
	.ngp-placeholder-grid.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

/* Space between a section's text and its gallery or placeholders. */
.ngp-gallery,
.ngp-placeholder-grid {
	margin-top: 32px;
}

/* ---------------------------------------------------------------
 * Blog filters (Query Loop (Adv) filter buttons)
 * Why: the mockup shows the category filters as Ink text links
 * between two Line rules. Kadence styles filter buttons as outlined
 * or pill buttons and has no text-link style. The pressed (active)
 * filter turns Gulf with a thicker underline. Selectors are doubled
 * to outrank Kadence's button styles.
 * ------------------------------------------------------------- */
.ngp-filter.wp-block-kadence-query-filter-buttons {
	margin-bottom: 48px;
	padding: 16px 0;
	border-top: 1px solid var(--global-palette7);
	border-bottom: 1px solid var(--global-palette7);
}

.ngp-filter.wp-block-kadence-query-filter-buttons .buttons-options.buttons-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button,
.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button:hover,
.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button.pressed {
	margin: 0;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--global-palette3);
	font-family: Manrope, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button:hover,
.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button.pressed {
	color: var(--global-palette1);
}

.ngp-filter.wp-block-kadence-query-filter-buttons .kt-button.kb-query-filter-filter-button.pressed {
	text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------
 * Blog card (Query Card)
 * Why: Kadence's content spacing puts a heading-sized gap between the
 * card's blocks; the mockup stacks image, category, title and date
 * tight. The category is plain Stone text, not a Gulf link, and the
 * title keeps the heading color.
 * ------------------------------------------------------------- */
.kb-query-item > .ngp-card-image,
.kb-query-item > .ngp-card-category,
.kb-query-item > .ngp-card-title,
.kb-query-item > .ngp-card-date {
	margin-top: 0;
	margin-bottom: 0;
}

.kb-query-item > .ngp-card-image {
	margin-bottom: 16px;
}

.kb-query-item > .ngp-card-category {
	margin-bottom: 4px;
}

.kb-query-item > .ngp-card-title {
	margin-bottom: 8px;
}

.ngp-card-category,
.ngp-card-date {
	color: var(--global-palette5);
}

.ngp-card-category a {
	color: inherit;
	text-decoration: none;
}

.ngp-card-category a:hover {
	color: var(--global-palette1);
	text-decoration: underline;
}

.ngp-card-title a {
	color: inherit;
	text-decoration: none;
}

.ngp-card-title a:hover {
	color: var(--global-palette1);
}

/* "Read the blog" under the Home cards. */
.wp-block-kadence-query + .ngp-text-link {
	margin-top: 40px;
}

/* Why: once the Home blog section shows, the rows after it swap Sand
 * and White (ngp_hide_until_content() adds these classes). Two classes
 * outrank Kadence's per-row background rule. */
.kb-row-layout-wrap.ngp-bg-sand {
	background-color: var(--global-palette8);
}

.kb-row-layout-wrap.ngp-bg-white {
	background-color: var(--global-palette9);
}

/* Video placeholder boxes are 16:9, like the YouTube player. */
.ngp-photo-placeholder.ngp-video-placeholder {
	aspect-ratio: 16 / 9;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
 * Offer and mini-date cards (Work With Me Query Cards)
 * Why: the mockup's cards are white boxes with a 1px Line border, the
 * title, the price, and a two-column list of details (Stone label,
 * Ink value). A Query Card has no border or label/value layout
 * setting, and Kadence's content spacing would space every line like
 * a paragraph.
 * ------------------------------------------------------------- */
.ngp-offer-card {
	position: relative;
	height: 100%;
	padding: 24px 20px;
	border: 1px solid var(--global-palette7);
	background: var(--global-palette9);
}

/* The booking link sits at the bottom of the card, so links line up across a row. */
.ngp-offer-card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Booking link: a Gulf text link with an arrow under a Line rule. The whole card is the
 * link: the link's ::before covers the card (one link per card for keyboards and screen
 * readers), and the focus ring is drawn around the card. Kadence's button settings would
 * make it a filled button, so they're reset here. */
.ngp-offer-card .ngp-offer-links.wp-block-buttons {
	position: static;
	margin: auto 0 0;
	padding-top: 24px;
}

.ngp-offer-card .ngp-offer-links > .wp-block-button {
	position: static;
	width: 100%;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--global-palette7);
}

.ngp-offer-card .ngp-offer-link .wp-block-button__link {
	position: static;
	display: inline;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--global-palette1);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: left;
	text-decoration: none;
}

.ngp-offer-card .ngp-offer-link .wp-block-button__link::after {
	content: "\2192";
	content: "\2192" / "";
	margin-left: 8px;
}

.ngp-offer-card .ngp-offer-link .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: -1px;
}

.ngp-offer-card:hover {
	border-color: var(--global-palette1);
}

.ngp-offer-card:hover .ngp-offer-link .wp-block-button__link {
	background: transparent;
	color: var(--global-palette2);
	text-decoration: underline;
}

.ngp-offer-card .ngp-offer-link .wp-block-button__link:focus-visible {
	outline: none;
}

.ngp-offer-card .ngp-offer-link .wp-block-button__link:focus-visible::before {
	outline: 2px solid var(--global-palette3);
	outline-offset: 2px;
}

/* Core Groups get an inner container in a classic theme like Kadence,
 * so the layout rules target it. Margins are reset one class deeper
 * than Kadence's content spacing. */
.ngp-offer-card .ngp-offer-title,
.ngp-offer-card p.wp-block-paragraph {
	margin-top: 0;
	margin-bottom: 0;
}

.ngp-offer-card .ngp-offer-title {
	margin-bottom: 8px;
}

.ngp-offer-card p.ngp-offer-price {
	margin-bottom: 16px;
	font-size: 20px;
	line-height: 28px;
}

.ngp-offer-details > .wp-block-group__inner-container {
	display: grid;
	gap: 6px;
}

.ngp-offer-detail > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 12px;
	font-size: 14px;
	line-height: 22px;
}

.ngp-offer-card .ngp-offer-details.wp-block-group,
.ngp-offer-card .ngp-offer-detail.wp-block-group {
	margin: 0;
}

.ngp-offer-label {
	color: var(--global-palette5);
}

.ngp-mini-action.wp-block-buttons {
	margin-top: 16px;
}

/* One note under some services' cards. */
.wp-block-kadence-query + .ngp-offer-note {
	margin-top: 32px;
}

/* ---------------------------------------------------------------
 * Jump links (Work With Me)
 * Why: the mockup's section menu is a row of Ink text links between
 * two Line rules. A flex Group has no border or gap setting that
 * also clears the paragraphs' margins.
 * ------------------------------------------------------------- */
.ngp-jump-links.wp-block-group {
	gap: 8px 28px;
	margin-top: 40px;
	padding: 16px 0;
	border-top: 1px solid var(--global-palette7);
	border-bottom: 1px solid var(--global-palette7);
}

.ngp-jump-links.wp-block-group > * {
	margin: 0;
}

/* Plain lists: a little air between items. */
.ngp-list li + li {
	margin-top: 8px;
}

/* Short forms (mini-date signup) stay narrow. Kadence doesn't pass the
 * block's class to the form wrapper, so this targets the no-results area. */
.wp-block-kadence-query-noresults .wp-block-kadence-advanced-form,
.ngp-form-narrow {
	max-width: 520px;
}

/* ---------------------------------------------------------------
 * Forms (Form (Adv))
 * Why: Kadence's form style settings are stored per form and don't
 * reach the brand's field spec: 14/20 Manrope 600 Ink labels, 48px
 * fields with a 1px Stone border and 2px corners, Ink border on hover,
 * the site's Ink focus outline, and a clear invalid state. One rule
 * set here keeps the three forms identical.
 * ------------------------------------------------------------- */
.kb-advanced-form .kb-adv-form-label {
	margin-bottom: 6px;
	color: var(--global-palette3);
	font-family: Manrope, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
}

/* Kadence spaces fields with a flex gap; 20px between fields. */
.wp-block-kadence-advanced-form .kb-advanced-form {
	gap: 20px;
}

.kb-advanced-form input.kb-field:not([type="radio"]):not([type="checkbox"]),
.kb-advanced-form select,
.kb-advanced-form textarea.kb-field {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--global-palette5);
	border-radius: 2px;
	background: var(--global-palette9);
	color: var(--global-palette3);
	font-size: 16px;
	line-height: 22px;
	box-shadow: none;
}

.kb-advanced-form textarea.kb-field {
	min-height: 128px;
}

.kb-advanced-form input.kb-field:hover,
.kb-advanced-form select:hover,
.kb-advanced-form textarea.kb-field:hover {
	border-color: var(--global-palette3);
}

.kb-advanced-form .kb-field[aria-invalid="true"],
.kb-advanced-form .has-error .kb-field {
	border-color: var(--global-palette3);
	border-width: 2px;
}

.kb-advanced-form .kb-adv-form-radio-style .kb-radio-check-item,
.kb-advanced-form .kb-radio-check-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 24px;
}

.kb-advanced-form .kb-adv-form-infield-type-radio .kb-adv-form-label {
	margin-bottom: 8px;
}

/* Contact details beside the form. */
.ngp-contact-detail.wp-block-buttons,
p.ngp-contact-detail {
	margin-top: 0;
	margin-bottom: 8px;
}

/* ---------------------------------------------------------------
 * FAQ (core Details blocks in the FAQ Query Card)
 * Why: the mockup shows each question as a Montserrat 700 line with
 * the native disclosure triangle, Line rules between questions, and
 * the answer at body size in a reading width. The Details block has
 * no typography or border settings in a classic theme.
 * ------------------------------------------------------------- */
.ngp-faq-item.wp-block-details {
	margin: 0;
	border-top: 1px solid var(--global-palette7);
}

.kb-query-item:last-child .ngp-faq-item.wp-block-details {
	border-bottom: 1px solid var(--global-palette7);
}

.ngp-faq-item summary {
	padding: 20px 0;
	color: var(--global-palette3);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 28px;
	cursor: pointer;
}

.ngp-faq-item summary:hover {
	color: var(--global-palette1);
}

.ngp-faq-answer {
	max-width: 720px;
	padding-bottom: 24px;
}

.ngp-faq-answer p:last-child {
	margin-bottom: 0;
}

/* Related posts under a blog post: space above the heading. */
.ngp-related {
	margin-top: 64px;
}

@media (max-width: 767px) {
	.ngp-label {
		font-size: 12px;
		line-height: 18px;
	}

	.ngp-lead {
		font-size: 19px;
		line-height: 30px;
	}
}

/* Why: Nick, 2026-11-16, photos shouldn't be easy to save. Kadence has no
 * setting for it. This turns off the phone long-press "Save image" menu and
 * image dragging; protect-images.js handles right-click. */
img {
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
	user-select: none;
}

/* ---------------------------------------------------------------
 * Testimonial under a Work With Me service ([ngp_testimonial] in the
 * "Testimonial card" Query Card)
 * Why: the quote comes from a shortcode (the field stores paragraphs),
 * so no block settings reach it. Quote in a larger body size beside a
 * Gulf rule, name in the Label style.
 * ------------------------------------------------------------- */
.wp-block-kadence-query:has(.ngp-testimonial) {
	margin-top: 48px;
}

.ngp-testimonial {
	max-width: 46rem;
	margin: 0;
	padding-left: 24px;
	border-left: 3px solid var(--global-palette1);
}

.ngp-testimonial-quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 20px;
	line-height: 1.6;
	color: var(--global-palette3);
}

.ngp-testimonial-quote p {
	margin: 0 0 12px;
}

.ngp-testimonial-name {
	margin-top: 16px;
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--global-palette5);
}

@media (max-width: 767px) {
	.wp-block-kadence-query:has(.ngp-testimonial) {
		margin-top: 32px;
	}

	.ngp-testimonial {
		padding-left: 16px;
	}

	.ngp-testimonial-quote {
		font-size: 18px;
	}
}

/* ---------------------------------------------------------------
 * About: Published and exhibited side column
 * Why: Kadence's heading sizes are global, so an H2 can't be set
 * smaller in one place. The credits keep real H2/H3 tags for search,
 * but read as a quiet side note (Nick, 2026-11-17): the H2 in the
 * Label style, the H3s at body size, the lists one step smaller.
 * ------------------------------------------------------------- */
h2.wp-block-heading.ngp-credits-title {
	margin: 8px 0 24px;
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
}

h3.wp-block-heading.ngp-credits-heading {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 26px;
}

.ngp-credits-list {
	margin: 0 0 32px;
	padding-left: 20px;
	font-size: 16px;
	line-height: 26px;
}

.ngp-credits-list:last-child {
	margin-bottom: 0;
}

/* Stacked under the story (tablet and phone): a Line rule separates them. */
@media (max-width: 1024px) {
	h2.wp-block-heading.ngp-credits-title {
		margin-top: 0;
		padding-top: 40px;
		border-top: 1px solid var(--global-palette7);
	}
}

@media (max-width: 767px) {
	h2.wp-block-heading.ngp-credits-title {
		font-size: 12px;
		line-height: 18px;
		padding-top: 32px;
	}
}
