/* Ace Media site styles (layered on Twenty Twenty-Five + theme.json). */

:root {
	--am-black: #000;
	--am-grey: #323232;
	--am-blue: #00c0fe;
	--am-light: #97d9ee;
	/* Brand rulebook v01 (Alyce, 2026-11-25): Tarmac #323232, Sky #97d9ee, Electric Blue #00c0fe (unchanged),
	   plus Flame and Lunar. Lunar replaces the off-brand #f2f2f2 light grey. */
	--am-flame: #ee3e24;
	--am-lunar: #e9e9ea;
	--am-radius: 22px;
	--am-pad-x: clamp(16px, 4vw, 48px);
	--am-pad-y: clamp(48px, 7vw, 104px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4, p, li, td, th, label, summary) { overflow-wrap: anywhere; }
[id] { scroll-margin-top: 88px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.am-main { margin: 0; padding: 0; }
.am-main > .wp-block-post-content > * { margin-block: 0; }
.am-main > .wp-block-post-content > .alignfull { margin-inline: 0; max-width: none; }
img { height: auto; max-width: 100%; }

/* ---------- header ---------- */
.am-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .am-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .am-header-wrap { top: 0; } }
.am-header { min-height: 68px; padding: 8px var(--am-pad-x); gap: 16px; }
.am-header .wp-block-site-logo img { width: 150px; height: auto; }
.am-header .wp-block-site-logo a { display: inline-flex; min-height: 44px; align-items: center; }
.am-nav { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; gap: 22px; }
.am-nav a { text-decoration: none; }
.am-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; }
.am-nav a:hover, .am-nav a:focus-visible { color: var(--am-blue); }
/* Black on #00c0fe = 10:1; core's .has-text-color nav rule would otherwise paint it white (2.1:1). */
.am-nav .am-nav-cta > a.wp-block-navigation-item__content { background: var(--am-blue); color: #000 !important; border-radius: 999px; padding: 0 18px; }
.am-nav .am-nav-cta > a.wp-block-navigation-item__content:hover,
.am-nav .am-nav-cta > a.wp-block-navigation-item__content:focus-visible { background: var(--am-light); color: #000 !important; }
.am-nav .current-menu-item > a:not(.am-nav-cta a) { color: var(--am-light); }
.am-nav .wp-block-navigation__responsive-container-open,
.am-nav .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
/* Core switches to the menu button below 600px. The 8 links (Portfolio added 2026-11-10) need 1241px with the
   logo (measured at 1185px wide), so below that they wrapped to two rows (header 126px). Use the menu button
   up to 1279px. At 1280px+ core's own display rules apply untouched. */
@media (min-width: 600px) and (max-width: 1279px) {
	.am-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.am-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.am-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.am-nav .wp-block-navigation__responsive-container-open svg,
.am-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.am-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px; }
.am-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 60px; gap: 6px; align-items: flex-start; }
.am-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-size: 30px; font-weight: 400; padding: 6px 0; }
.am-nav .wp-block-navigation__responsive-container.is-menu-open .am-nav-cta > a { padding: 6px 18px; margin-top: 6px; }

/* ---------- footer ---------- */
.am-footer { padding: var(--am-pad-y) var(--am-pad-x) 32px; }
.am-footer-cols { gap: 32px; }
.am-footer .wp-block-site-logo img { width: 150px; height: auto; }
.am-footer-line { font-size: 14px; max-width: 320px; }
.am-footer-nav { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; gap: 0; }
.am-footer-nav a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.am-footer .wp-block-site-logo a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 781px) {
	.am-footer-line, .am-footer p.has-x-small-font-size { font-size: 16px !important; }
	.am-footer p.has-x-small-font-size a { display: inline-flex; align-items: center; min-height: 44px; }
}
.am-footer-nav a:hover { color: var(--am-blue); }
.am-footer-email a { font-weight: 800; font-size: 18px; display: inline-flex; min-height: 44px; align-items: center; color: var(--am-light); }
.am-social { gap: 4px !important; }
.am-social .wp-block-social-link { margin: 0; }
.am-social .wp-block-social-link a { padding: 10px !important; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.am-social .wp-block-social-link svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--am-light); color: #000; border-color: var(--am-light); }

/* ---------- bands ---------- */
.am-band { padding: var(--am-pad-y) var(--am-pad-x); }
.am-band > * { max-width: 1200px; margin-inline: auto; }
.am-band > .am-wide { max-width: 1440px; } /* functions.php gallery sizes assume this 1440px cap for am-grid. */
.am-band.has-charcoal-background-color, .am-band.has-black-background-color { color: #fff; }
/* Body text keeps a readable measure and stays on the band's left edge (it was centred inside 1200px). */
/* em, not ch: Montserrat's wide "0" makes 1ch ~0.8em, so a ch cap let lines run past 80 characters. */
.am-band > :is(p, ul, ol) { max-width: 40em; margin-left: max(0px, calc((100% - 1200px) / 2)); margin-right: auto; }
.am-band > p.am-lead { max-width: 34em; }
.am-band.am-center > :is(p, ul, ol) { margin-inline: auto; }
.am-main :is(.wp-block-group, .wp-block-column, .wp-block-details) p:not(.am-next) { max-width: 40em; }
.am-center :is(.wp-block-group, .wp-block-column) p { margin-inline: auto; }
.am-kicker { font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--am-blue); margin-bottom: 8px; }
.has-black-background-color .am-kicker, .has-charcoal-background-color .am-kicker { color: var(--am-light); }
.am-lead { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
.am-center { text-align: center; }
.am-center .am-lead { margin-inline: auto; }
.am-blue { color: var(--am-blue); }

/* ---------- hero ---------- */
.am-hero.wp-block-cover { min-height: min(88vh, 820px) !important; padding: 0 var(--am-pad-x) clamp(28px, 5vw, 64px); align-items: flex-end; }
.am-hero .wp-block-cover__inner-container { max-width: 1440px; margin-inline: auto; width: 100%; }
/* Darken only where the words sit (bottom-left), so the photo stays bright above them. */
.am-hero .wp-block-cover__background { background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .45) 38%, rgba(0, 0, 0, .05) 72%) !important; opacity: 1 !important; }
.am-hero .am-kicker { color: var(--am-light); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.am-hero h1 { font-size: var(--wp--preset--font-size--huge); line-height: .9; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.am-hero .am-hero-sub { font-weight: 800; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .04em; text-transform: uppercase; margin: 12px 0 20px; max-width: 760px; }
.am-hero.am-hero-short.wp-block-cover { min-height: min(62vh, 560px) !important; }
.am-hero.am-hero-short h1 { font-size: var(--wp--preset--font-size--xx-large); }

/* ---------- split rows (image + text) ---------- */
.am-split.wp-block-columns { gap: 0 !important; margin: 0 !important; }
.am-split > .wp-block-column { min-width: 0; }
.am-split .am-split-text { padding: var(--am-pad-y) var(--am-pad-x); display: flex; flex-direction: column; justify-content: center; }
.am-split .am-split-text > * { max-width: 560px; }
.am-split .wp-block-image, .am-split .wp-block-image img { margin: 0; height: 100%; width: 100%; object-fit: cover; display: block; }
.am-split .wp-block-image { min-height: 320px; }
@media (max-width: 781px) { .am-split .wp-block-image img { aspect-ratio: 4 / 3; height: auto; } .am-split .wp-block-image { min-height: 0; } }

/* ---------- ticks ---------- */
.am-ticks { list-style: none; padding: 0; margin: 0; }
.am-ticks li { position: relative; padding-left: 30px; margin: 8px 0; font-weight: 700; }
.am-ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--am-blue); }

/* ---------- tiles ---------- */
.am-tiles.wp-block-columns { gap: 0 !important; margin: 0 !important; }
.am-tiles > .wp-block-column { min-width: 0; }
.am-tile.wp-block-cover { min-height: 460px !important; height: 100%; padding: 28px; align-items: flex-end; }
.am-tile h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 8px; }
.am-tile p { font-weight: 600; max-width: 340px; }
.am-tile .wp-block-cover__inner-container { width: 100%; }

/* ---------- events table ---------- */
.am-events table { border-collapse: collapse; width: 100%; }
.am-events th, .am-events td { border: 0; border-bottom: 2px solid rgba(255, 255, 255, .35); padding: 16px 8px; text-align: left; vertical-align: top; }
.am-events thead th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--am-light); border-bottom-color: var(--am-light); }
.am-events tbody td:first-child { font-family: var(--wp--preset--font-family--display); font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; color: #fff; }
/* Event names link to their event pages: 44px tap target, colour stays with the row. */
.am-events tbody td:first-child a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration-color: var(--am-blue); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.am-events.is-light th, .am-events.is-light td { border-bottom-color: rgba(0, 0, 0, .2); }
.am-events.is-light thead th { color: #000; border-bottom-color: #000; }
.am-events.is-light tbody td:first-child { color: #000; }
@media (max-width: 600px) {
	.am-events thead { display: none; }
	.am-events tr { display: block; padding: 14px 0; border-bottom: 2px solid rgba(255, 255, 255, .35); }
	.am-events.is-light tr { border-bottom-color: rgba(0, 0, 0, .2); }
	.am-events td { display: block; border: 0 !important; padding: 2px 0; }
}

/* ---------- price cards ---------- */
.am-cards.wp-block-columns { gap: 16px; }
.am-card { background: #fff; color: #000; border-radius: var(--am-radius); padding: 28px 24px; height: 100%; border-top: 8px solid var(--am-blue); }
.has-white-background-color .am-card { background: var(--am-lunar); }
.am-card h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 4px; }
/* Price in black: #00c0fe on white is 2.1:1, below the 3:1 floor for large text. Blue stays as the card's top rule. */
.am-card .am-price { font-family: var(--wp--preset--font-family--display); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: #000; margin: 6px 0 12px; }
.am-card ul { padding-left: 1.1em; margin: 0; font-size: 15px; }
.am-card li { margin: 4px 0; }
.am-card p { font-size: 15px; }
@media (max-width: 781px) { .am-card ul, .am-card p { font-size: 16px; } }
.am-tier-head { margin-top: 48px !important; }
.am-band > .am-sample-cta { margin-top: 28px; }

/* Home hero photo: the car is on the right of the frame; on a tall phone crop keep the car, not the flag. */
@media (max-width: 781px) {
	.wp-block-cover.am-hero-home .wp-block-cover__image-background { object-position: 88% 50%; }
}

/* Privacy and terms pages: plain reading layout. */
.am-legal h2 { font-size: var(--wp--preset--font-size--large); margin-top: 1.8em; margin-bottom: .4em; }
.am-legal h2:first-child { margin-top: 0; }
.am-footer .has-x-small-font-size a { color: inherit; }
.am-tier-head h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }

/* ---------- photo strip (4 across, full width) and portfolio grid (3 across); both 2 on phones ---------- */
:is(.am-strip, .am-grid).wp-block-gallery { display: grid !important; gap: 6px !important; }
:is(.am-strip, .am-grid).wp-block-gallery figure.wp-block-image { width: auto !important; margin: 0 !important; }
:is(.am-strip, .am-grid).wp-block-gallery img { object-fit: cover; width: 100%; height: 100% !important; }
/* Black behind the strip, so the gaps between photos read as black bars, not white (Alyce 2026-11-10). */
.am-strip.wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 !important; background: #000; }
.am-strip.wp-block-gallery img { aspect-ratio: 4 / 5; }
.am-grid.wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px !important; margin-bottom: 0 !important; }
.am-grid.wp-block-gallery img { aspect-ratio: 3 / 2; }
.am-grid.am-grid-port.wp-block-gallery img { aspect-ratio: 2 / 3; }
@media (max-width: 781px) {
	:is(.am-strip, .am-grid).wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* An odd last landscape photo on phones fills the row instead of sitting alone in half of it. */
	.am-grid-land.wp-block-gallery figure.wp-block-image:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.am-faq .wp-block-details { border-bottom: 2px solid currentColor; padding: 6px 0; }
.am-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-weight: 800; font-size: 18px; }
.am-faq summary::-webkit-details-marker { display: none; }
.am-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--display); font-size: 28px; color: var(--am-blue); flex: 0 0 auto; }
.am-faq details[open] > summary::after { content: "–"; }
.am-faq details p { margin: 0 0 16px; }

/* ---------- forms (Contact Form 7) ---------- */
.am-formbox { background: #fff; color: #000; border-radius: var(--am-radius); padding: clamp(20px, 4vw, 44px); }
.am-formbox h2, .am-formbox h3 { margin-top: 0; }
.am-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.am-field { grid-column: 1 / -1; min-width: 0; }
.am-field.am-half { grid-column: span 1; }
@media (max-width: 640px) { .am-field.am-half { grid-column: 1 / -1; } }
.am-field label, .am-field legend { display: block; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.am-field .am-hint { display: block; font-weight: 500; font-size: 14px; color: #555; }
.am-req { color: #c00; margin-left: 2px; }
.am-formbox input[type="text"], .am-formbox input[type="email"], .am-formbox input[type="tel"], .am-formbox select, .am-formbox textarea {
	width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: #000; background: #fff;
	border: 2px solid #000; border-radius: 10px; padding: 12px 14px; min-height: 48px; box-sizing: border-box;
}
.am-formbox textarea { min-height: 120px; resize: vertical; }
.am-formbox :is(input, select, textarea):focus { outline: 3px solid var(--am-blue); outline-offset: 1px; }
.am-fieldset { border: 0; padding: 0; margin: 0; }
.am-formbox .wpcf7-list-item { display: flex; margin: 0; }
.am-formbox .wpcf7-list-item label { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.am-formbox .wpcf7-list-item input { width: 20px; height: 20px; accent-color: var(--am-blue); }
.am-formbox input[type="submit"] {
	font: inherit; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
	background: var(--am-blue); color: #000; border: 2px solid var(--am-blue); border-radius: 999px; padding: 14px 34px; min-height: 52px; cursor: pointer;
}
.am-formbox input[type="submit"]:hover { background: var(--am-light); border-color: var(--am-light); }
.am-formbox .wpcf7-spinner { vertical-align: middle; }
.am-formbox .wpcf7-not-valid-tip { color: #c00; font-size: 13px; font-weight: 700; margin-top: 4px; }
.am-formbox .wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.am-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- plain pages (store, legal) ---------- */
.am-plain { padding: var(--am-pad-y) var(--am-pad-x); }
.am-plain-title { margin-bottom: 24px; }

/* ---------- Sunshine Photo Cart in this theme ---------- */
.am-store { padding: var(--am-pad-y) var(--am-pad-x); }
.am-store > * { max-width: 1200px; margin-inline: auto; }
#sunshine, .sunshine--container { font-family: var(--wp--preset--font-family--body); }
#sunshine .sunshine--button, #sunshine button.button, #sunshine input[type="submit"], #sunshine a.button {
	background: var(--am-blue) !important; color: #000 !important; border: 2px solid var(--am-blue) !important; border-radius: 999px !important;
	font-weight: 800 !important; text-transform: uppercase; letter-spacing: .05em; min-height: 44px;
}
#sunshine h1, #sunshine h2 { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; }

/* Event list: big photo tiles, not Sunshine's small justified row (one event looked lost at 1280). */
#sunshine #sunshine--gallery-items { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 24px 0 0; }
.am-store #sunshine .sunshine--container { padding-inline: 0 !important; max-width: none; }
/* Sunshine's justified layout gives each tile a fixed height with overflow hidden, which clipped the title. */
#sunshine .sunshine--gallery-item { width: auto !important; height: auto !important; overflow: visible !important; margin: 0 !important; flex: none !important; }
#sunshine #sunshine--gallery-items .sunshine--gallery-item { padding: 0 !important; }
#sunshine #sunshine--gallery-items .sunshine--gallery-item > a { position: static !important; display: block; border-radius: var(--am-radius); overflow: hidden; }
#sunshine .sunshine--gallery-item img { border-radius: var(--am-radius); width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .4s ease; }
#sunshine .sunshine--gallery-item > a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { #sunshine .sunshine--gallery-item img { transition: none; } }
#sunshine #sunshine--gallery-items .sunshine--gallery-item h2 { position: static !important; background: none !important; padding: 0 !important; margin: 12px 0 0 !important; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; text-align: left; }
#sunshine #sunshine--gallery-items .sunshine--gallery-item h2 a { color: #000 !important; text-decoration: none; }
#sunshine #sunshine--gallery-items .sunshine--gallery-item h2 a:hover { text-decoration: underline; text-decoration-color: var(--am-blue); text-decoration-thickness: 3px; }

/* Event filter (site.js): series and track dropdowns above the event list. */
.am-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 16px 0 0; }
.am-filter-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.am-filter-field select { min-height: 44px; min-width: 220px; padding: 0 40px 0 14px; border: 2px solid #000; border-radius: 12px; background: #fff; font: 600 16px/1.2 var(--wp--preset--font-family--body); text-transform: none; letter-spacing: 0; color: #000; }
.am-filter-count { margin: 0; font-weight: 600; min-height: 1.5em; flex-basis: 100%; }
.am-filter-count:empty { display: none; }
@media (max-width: 520px) { .am-filter-field, .am-filter-field select { width: 100%; min-width: 0; } }

.am-store .am-next { margin-top: 32px; padding: 18px 22px; border-left: 6px solid var(--am-blue); background: var(--am-lunar); font-weight: 600; max-width: 1200px; box-sizing: border-box; }
.am-store .am-next a { font-weight: 800; color: #000; display: inline-flex; align-items: center; min-height: 44px; }

/* Image grid: readable captions under each photo and 44px tap targets. */
/* Sunshine overlays the caption on the photo (its tiles have a fixed height); keep that, but make it readable. */
#sunshine #sunshine--image-items figure .sunshine--image--name { font-size: 14px; font-weight: 700; line-height: 1.3; padding: 28px 12px 10px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); white-space: normal; text-align: left; }
/* Sunshine gives each photo's menu z-index 1000, so while scrolling the cart buttons slid over the sticky
   header (z-index 50) and its menu button. Each photo is now its own stacking context: its menu stays inside it. */
#sunshine--image-items .sunshine--image-item { isolation: isolate; }
#sunshine .sunshine--image-menu ul { gap: 6px; }
#sunshine .sunshine--image-menu button { min-width: 44px !important; min-height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center; }
#sunshine .sunshine--action-menu ul li { padding: 0; background: none; }
#sunshine .sunshine--action-menu ul li::before { display: none !important; }
/* !important: Sunshine's own rule has the same specificity and loads after this file. */
/* Long gallery names ("Return to MRC Round 5 – One Raceway") wrap inside the pill instead of widening the page on phones. */
#sunshine .sunshine--action-menu ul { flex-wrap: wrap; }
#sunshine .sunshine--action-menu ul li { max-width: 100%; }
#sunshine .sunshine--action-menu ul li a { max-width: 100%; box-sizing: border-box; white-space: normal; line-height: 1.25; text-align: center; }
#sunshine .sunshine--action-menu ul li a { display: inline-flex !important; align-items: center; min-height: 44px; padding: 8px 18px !important; border: 2px solid #000 !important; border-radius: 999px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .05em; font-size: 14px !important; color: #000 !important; text-decoration: none !important; }
#sunshine .sunshine--action-menu ul li a:hover { background: var(--am-blue) !important; border-color: var(--am-blue) !important; }

/* Purchase window (theme sunshine/image/add-to-cart.php): the photo download first, prints folded away. */
.am-dl { padding: 4px 0 20px; border-bottom: 1px solid #ddd; }
.am-dl-name { margin: 0 0 8px; font-weight: 800; font-size: 18px; line-height: 1.3; }
.am-dl-price { white-space: nowrap; color: #000; }
.am-dl-desc { font-size: 15px; line-height: 1.5; }
.am-dl-desc p { margin: 0 0 8px; }
.am-dl-action { margin-top: 12px; }
/* The window sits outside #sunshine, where Sunshine's own .sunshine--button (dark grey) out-ranks a class rule. */
#sunshine--modal--content .am-dl-action .am-quick-add { width: 100%; min-height: 48px; padding: 0 24px; background: var(--am-blue); color: #000; border: 2px solid var(--am-blue); border-radius: 999px; font: 800 16px/1 var(--wp--preset--font-family--body); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
#sunshine--modal--content .am-dl-action .am-quick-add:hover, #sunshine--modal--content .am-dl-action .am-quick-add:focus-visible { background: #000; border-color: #000; color: #fff; }
.am-dl-action .am-quick-add[aria-busy="true"] { opacity: .6; cursor: progress; }
.am-dl-done { margin: 0; font-weight: 700; }
.am-dl-done a, .am-toast a { font-weight: 800; color: inherit; text-decoration-color: var(--am-blue); text-decoration-thickness: 3px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.am-more { margin-top: 16px; }
.am-more > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 48px; padding: 8px 16px; border: 2px solid #000; border-radius: 12px; cursor: pointer; font-weight: 700; list-style: none; }
.am-more > summary::-webkit-details-marker { display: none; }
.am-more > summary::after { content: "+"; font-size: 24px; font-weight: 800; line-height: 1; }
.am-more[open] > summary::after { content: "\2212"; }
.am-more-cta { text-decoration: underline; text-decoration-color: var(--am-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; margin-left: auto; }
.am-more-cat { margin-top: 16px; }
.am-more-cat .sunshine--image--add-to-cart--category-name { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }

/* Quick add message: bottom of the screen, above everything, clear of the phone's home bar. */
.am-toast { position: fixed; z-index: 100000; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); width: min(calc(100% - 32px), 480px); box-sizing: border-box; padding: 10px 18px; border-radius: 14px; background: #000; color: #fff; font-weight: 700; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.am-toast:empty { padding: 0; }
.am-toast-on { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease; }
.am-toast a { color: #fff; }
@media (prefers-reduced-motion: reduce) { .am-toast, .am-toast-on { transition: none; } }

/* Cart + checkout: Sunshine's two-column checkout squeezed the order summary to ~200px between 600 and 1023px
   (the item name broke one letter per line, "$25" over three lines). Stack it below the form there. */
@media (max-width: 1199px) {
	#sunshine #sunshine--checkout--main { grid-template-columns: minmax(0, 1fr) !important; }
}
#sunshine .sunshine--checkout--cart-item--total { white-space: nowrap; }
#sunshine a.sunshine-adjacent-link { display: inline-flex; align-items: center; min-height: 44px; }
/* A long email in the completed-step summary set the fieldset's min-content width and pushed the page 7px wide at 320. */
#sunshine #sunshine--checkout fieldset { min-width: 0; }
#sunshine .sunshine--checkout--section-summary { overflow-wrap: anywhere; }
#sunshine .sunshine--checkout--section-edit { min-width: 44px; min-height: 44px; }
#sunshine #sunshine--checkout a[href*="/terms-conditions/"] { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) {
	#sunshine #sunshine--checkout--steps, #sunshine #sunshine--checkout--summary { padding-left: 16px !important; padding-right: 16px !important; }
	#sunshine table td { font-size: 16px; }
}
/* 44px tap targets and 16px text in Sunshine's forms and links (its defaults are 40px / 26px / 16px tall). */
#sunshine input[type="text"], #sunshine input[type="email"], #sunshine input[type="password"], #sunshine input[type="tel"], #sunshine select, #sunshine textarea { min-height: 48px; font-size: 16px; box-sizing: border-box; }
#sunshine input.sunshine--qty { min-height: 44px; }
#sunshine #sunshine--checkout--login a, #sunshine #sunshine--cart--gallery-return a, #sunshine .sunshine--account--reset-password-toggle a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 781px) { .am-field label, .am-field legend { font-size: 16px; } }
#sunshine #sunshine--checkout--order-review--toggle { min-height: 44px; }
#sunshine #sunshine--gallery-items .sunshine--gallery-item h2 a { display: inline-flex; align-items: center; min-height: 44px; }

/* In-page jump links (portfolio sections). */
.am-jump .wp-block-button__link { min-width: 44px; }

/* ---------- video ---------- */
.am-video { margin: 0; }
.am-video video { display: block; width: 100%; height: auto; background: #111; border-radius: 14px; }
.am-video-tall video { aspect-ratio: 406 / 720; }
.am-video-wide video { aspect-ratio: 16 / 9; }
/* A single tall clip beside text (split rows) or on its own: phone-shaped, not page-wide. */
.am-video-tall { max-width: 380px; }
.am-split .am-video-tall { margin-inline: auto; padding: var(--am-pad-y) var(--am-pad-x); max-width: 440px; box-sizing: border-box; }
/* Left edge in line with the band's 1200px text column (same rule as .am-band > p). */
.am-band > .am-video-wide { max-width: 960px; margin: 28px auto 0 max(0px, calc((100% - 1200px) / 2)); }
.am-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 28px !important; }
.am-videos > * { margin: 0 !important; }
.am-videos .am-video-tall { max-width: none; }
.am-videos .am-video-wide { grid-column: span 2; }
@media (max-width: 520px) { .am-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Past events list: names only, two columns on wide screens. */
.am-past { columns: 2 280px; column-gap: 40px; padding-left: 1.1em; margin-top: 12px; }
.am-past li { break-inside: avoid; margin: 0 0 8px; font-weight: 600; }

/* 2027 calendar on /events/: 12 month cards, 4 across, 3 on tablets, 2 on phones. */
.am-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.am-cal-month { border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 16px; min-height: 120px; }
.am-cal-month h3 { font-size: 22px; margin: 0 0 8px; color: var(--am-light); }
.am-cal-month p { margin: 0; font-size: 15px; line-height: 1.45; }
.am-cal-month a { font-weight: 800; color: #fff; text-decoration-color: var(--am-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.am-cal-on { border-color: var(--am-blue); }
.am-cal-open a { font-weight: 600; color: rgba(255, 255, 255, .8); }
.am-cal-series { margin-top: 32px !important; }
@media (max-width: 1023px) { .am-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .am-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .am-cal-month { min-height: 0; padding: 12px; } .am-cal-month h3 { font-size: 19px; } }
