/*
Theme Name: A Company of Women OC
Theme URI: https://www.instagram.com/acompanyofwomenoc/
Description: Lightweight block theme for A Company of Women OC. Navy and blush palette, self-hosted Cormorant Garamond, Montserrat and Pinyon Script (SIL Open Font License). No page builder; the only front-end JavaScript is the small Events gallery pop-up (assets/js/gallery.js).
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: cow
*/

:root {
	--cow-navy: #22486D;
	--cow-navy-deep: #183552;
	--cow-blush: #E0C0B5;
	--cow-blush-light: #F2E3E0;
	--cow-taupe: #AAA19C;
	--cow-taupe-dark: #625A55;
	--cow-ink: #3E3C3D;
	--cow-off: #F6F4F1;
	--cow-radius: 18px;
	--cow-shadow: 0 18px 40px -24px rgba(24, 53, 82, .35);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(h1, h2, h3, h4) { text-wrap: balance; letter-spacing: -0.005em; }
:where(p) { text-wrap: pretty; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--cow-navy); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
[id] { scroll-margin-top: 96px; }

/* ---------- Skip link ---------- */
.cow-skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--cow-navy); color: #fff; padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.cow-skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.cow-site-header { position: sticky; top: 0; z-index: 50; }
.cow-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid rgba(170, 161, 156, .35); }
.cow-header__inner { max-width: 1240px; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.cow-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.cow-brand__sil { height: 40px; width: auto; }
.cow-brand__wordmark { height: 34px; width: auto; }
.cow-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.cow-nav__list a { display: block; padding: .5rem .7rem; color: var(--cow-ink); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .02em; border-radius: 999px; }
.cow-nav__list a:hover { color: var(--cow-navy); background: var(--cow-blush-light); }
.cow-nav__list a[aria-current="page"] { color: var(--cow-navy); box-shadow: inset 0 -2px 0 var(--cow-blush); border-radius: 0; }
.cow-nav--desktop { margin-left: auto; }
.cow-header__cta { background: var(--cow-navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .875rem; padding: .62rem 1.2rem; border-radius: 999px; white-space: nowrap; }
.cow-header__cta:hover { background: var(--cow-navy-deep); }
.cow-nav--mobile { display: none; margin-left: auto; position: static; }
.cow-nav--mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; justify-content: center; padding: .55rem .8rem; border: 1px solid var(--cow-taupe); border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--cow-navy); letter-spacing: .06em; text-transform: uppercase; }
.cow-nav--mobile summary::-webkit-details-marker { display: none; }
.cow-burger, .cow-burger::before, .cow-burger::after { display: block; width: 18px; height: 2px; background: var(--cow-navy); border-radius: 2px; position: relative; content: ""; }
.cow-burger::before { position: absolute; top: -6px; }
.cow-burger::after { position: absolute; top: 6px; }
.cow-nav--mobile[open] .cow-burger { background: transparent; }
.cow-nav--mobile[open] .cow-burger::before { top: 0; transform: rotate(45deg); }
.cow-nav--mobile[open] .cow-burger::after { top: 0; transform: rotate(-45deg); }
.cow-nav--mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid rgba(170, 161, 156, .45); box-shadow: var(--cow-shadow); padding: .75rem 1.25rem 1.25rem; }
.cow-nav--mobile .cow-nav__list { flex-direction: column; gap: 0; }
.cow-nav--mobile .cow-nav__list a { font-size: 1.05rem; padding: .85rem .25rem; border-radius: 0; border-bottom: 1px solid var(--cow-blush-light); }
.cow-nav--mobile .cow-nav__list a[aria-current="page"] { box-shadow: none; font-weight: 600; }
@media (max-width: 1080px) {
	.cow-nav--desktop, .cow-header__cta { display: none; }
	.cow-nav--mobile { display: block; }
}
@media (max-width: 420px) {
	.cow-brand__sil { height: 32px; }
	.cow-brand__wordmark { height: 27px; }
	.cow-nav__label { display: none; }
}

/* ---------- Generic buttons used in PHP-rendered parts ---------- */
.cow-btn { display: inline-block; background: var(--cow-navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--cow-navy); line-height: 1.3; text-align: center; }
.cow-btn:hover { background: var(--cow-navy-deep); }
.cow-btn--full { display: block; margin-top: 1rem; }
.cow-btn--blush { background: var(--cow-blush); border-color: var(--cow-blush); color: var(--cow-navy-deep) !important; }
.cow-btn--blush:hover { background: #fff; border-color: #fff; }
.cow-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); }
.cow-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* Block buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--cow-navy); border: 1.5px solid var(--cow-navy); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cow-navy); color: #fff; }
.wp-block-button.is-style-blush > .wp-block-button__link, .cow-btn-blush .wp-block-button__link { background: var(--cow-blush); color: var(--cow-navy-deep); }
.cow-section--navy .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.75); }
.cow-section--navy .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.cow-section--navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--cow-blush); color: var(--cow-navy-deep); }
.cow-section--navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #fff; }

/* ---------- Sections ---------- */
.cow-main { padding: 0 !important; }
.cow-main > .entry-content, .cow-main .wp-block-post-content { margin-top: 0; }
.cow-main .wp-block-post-content > * + * { margin-block-start: 0; }
.cow-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.cow-section--tight { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.cow-section--blush { background: var(--cow-blush-light); }
.cow-section--off { background: var(--cow-off); }
.cow-section--navy { background: var(--cow-navy); color: #fff; }
.cow-section--navy :where(h1, h2, h3, h4) { color: #fff; }
.cow-section--navy a:not(.wp-block-button__link) { color: #fff; }
.cow-section--navy .cow-eyebrow { color: var(--cow-blush); }
.cow-center { text-align: center; }
.cow-center .wp-block-buttons, .wp-block-buttons.cow-center, .cow-page-hero .wp-block-buttons { justify-content: center; }

.cow-eyebrow { font-size: .78rem !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cow-taupe-dark); margin-bottom: .6rem !important; }
.cow-lead { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.6; }
.cow-script { font-family: var(--wp--preset--font-family--script); font-size: clamp(1.9rem, 4vw, 2.6rem) !important; line-height: 1.2; color: var(--cow-navy); font-weight: 400; }
.cow-section--navy .cow-script, .cow-footer .cow-script { color: var(--cow-blush); }
.cow-tbc { background: #FFF4D6; color: #5B4300; padding: .05em .4em; border-radius: 4px; border: 1px dashed #C9A13B; font-size: .92em; font-weight: 500; white-space: normal; }
.cow-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cow-taupe), transparent); max-width: 240px !important; margin: 2rem auto !important; }

/* ---------- Home hero ---------- */
.cow-hero { background: linear-gradient(180deg, var(--cow-blush-light) 0%, #fff 100%); padding-top: clamp(2.5rem, 6vw, 5rem) !important; padding-bottom: clamp(2.5rem, 6vw, 5rem) !important; }
.cow-hero .wp-block-columns { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem); }
.cow-hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem) !important; line-height: 1.07; margin-top: .25rem; }
.cow-hero .cow-lead { color: var(--cow-ink); max-width: 36em; }
.cow-arch img, .cow-arch { border-radius: 999px 999px var(--cow-radius) var(--cow-radius); }
.cow-arch img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% center; width: 100%; box-shadow: var(--cow-shadow); }
.cow-arch { position: relative; margin: 0; }
.cow-arch::after { content: ""; position: absolute; inset: -14px -14px auto auto; width: 38%; aspect-ratio: 1; border: 1.5px solid var(--cow-blush); border-radius: 50%; z-index: -1; }
.cow-hero__welcome { font-family: var(--wp--preset--font-family--script); color: var(--cow-navy); font-size: 1.9rem !important; margin-top: 1.4rem !important; }

/* Announcement strip */
.cow-strip { background: var(--cow-navy); color: #fff; padding-top: 1rem !important; padding-bottom: 1rem !important; }
.cow-strip p { margin: 0; text-align: center; font-size: .95rem; letter-spacing: .02em; }
.cow-strip a { color: var(--cow-blush) !important; font-weight: 600; }
.cow-strip strong { color: #fff; }

/* ---------- Cards / grids ---------- */
.cow-cards { gap: 1.25rem !important; }
.cow-card { background: #fff; border-radius: var(--cow-radius); padding: clamp(1.4rem, 3vw, 2rem) !important; box-shadow: var(--cow-shadow); border: 1px solid rgba(170, 161, 156, .25); height: 100%; }
.cow-section--blush .cow-card, .cow-section--off .cow-card { border-color: transparent; }
.cow-card h3 { margin-top: 0; font-size: 1.55rem; }
.cow-card > :last-child { margin-bottom: 0; }
.cow-card .cow-num { font-family: var(--wp--preset--font-family--serif); font-size: 2.6rem; line-height: 1; color: #A27A6E; font-weight: 600; margin: 0 0 .4rem; }
.wp-block-column.cow-card { flex-basis: 0; }

/* What is vs what could be */
.cow-contrast { gap: 1rem !important; }
.cow-contrast .wp-block-column { background: #fff; border-radius: var(--cow-radius); padding: 1.6rem 1.4rem !important; text-align: center; box-shadow: var(--cow-shadow); }
.cow-contrast .cow-from { color: var(--cow-taupe-dark); text-decoration: line-through; text-decoration-color: var(--cow-blush); text-decoration-thickness: 2px; font-size: 1.05rem; margin: 0; letter-spacing: .04em; }
.cow-contrast .cow-arrow { margin: .2rem 0; color: var(--cow-blush); font-size: 1.4rem; line-height: 1; }
.cow-contrast .cow-to { font-family: var(--wp--preset--font-family--serif); font-size: 2rem; color: var(--cow-navy); font-weight: 600; margin: 0; line-height: 1.1; }
.cow-contrast .cow-to-note { font-size: .92rem; margin: .5rem 0 0; }

/* Stats */
.cow-stats { gap: 1rem !important; text-align: center; }
.cow-stats .wp-block-column { border-top: 2px solid var(--cow-blush); padding-top: 1rem; }
.cow-stat { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.4rem, 5vw, 3.2rem) !important; color: var(--cow-navy); font-weight: 600; line-height: 1; margin: 0 0 .35rem !important; }
.cow-stat-label { font-size: .9rem !important; margin: 0 !important; color: var(--cow-ink); }

/* Rounded photos */
.cow-photo img { border-radius: var(--cow-radius); box-shadow: var(--cow-shadow); width: 100%; object-fit: cover; }
.cow-photo--wide img { aspect-ratio: 3 / 2; }
.cow-photo:not(.cow-photo--wide) img { aspect-ratio: 4 / 5; }
/* Portrait photo beside text (Home "Picture this"): 4:5, capped so it isn't taller than the text column; keep faces in view */
.cow-photo--portrait img { max-height: 560px; object-position: center 35%; }
/* Keep the top of the frame (e.g. the Hebrews 13:8 wall sign and the vendor's face) if the image is ever cropped */
.cow-photo--focus-top img { object-position: center 18%; }

/* Values */
.cow-values { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.1rem !important; }
.cow-values > * { margin: 0 !important; flex: 1 1 250px; max-width: 290px; }
@media (max-width: 600px) { .cow-values > * { max-width: none; } }
.cow-value h3 { font-size: 1.45rem; margin: 0 0 .35rem; }
.cow-value h3::before { content: ""; display: block; width: 34px; height: 2px; background: var(--cow-blush); margin-bottom: .8rem; }
.cow-value p { margin: 0; font-size: .97rem; }

/* Verse */
.cow-verse { text-align: center; }
.cow-verse blockquote, .cow-verse .wp-block-quote { border: 0 !important; padding: 0 !important; margin: 0 auto !important; max-width: 820px; }
.cow-verse blockquote p { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 4.4vw, 2.9rem) !important; line-height: 1.25; }
.cow-verse cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cow-blush); }
.cow-section--blush.cow-verse cite, .cow-section--off.cow-verse cite { color: var(--cow-taupe-dark); }

/* Interior page hero */
.cow-page-hero { background: linear-gradient(180deg, var(--cow-blush-light), #fff); text-align: center; padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; padding-bottom: clamp(1.5rem, 4vw, 3rem) !important; }
.cow-page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem) !important; margin-top: 0; }
.cow-page-hero .cow-lead { max-width: 640px; margin-left: auto !important; margin-right: auto !important; }

/* Events */
.cow-event { background: #fff; border-radius: var(--cow-radius); box-shadow: var(--cow-shadow); border: 1px solid rgba(170, 161, 156, .25); padding: clamp(1.5rem, 4vw, 2.5rem) !important; }
.cow-event h3 { margin-top: .2rem; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.cow-event-date { display: inline-block; background: var(--cow-blush-light); color: var(--cow-navy-deep); font-weight: 600; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin: 0 !important; }
.cow-facts { list-style: none; padding: 0 !important; margin-top: 1.2rem !important; margin-bottom: 1.2rem !important; display: grid; gap: .5rem; }
.cow-facts li { padding-left: 1.6rem; position: relative; }
.cow-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--cow-blush); }
.cow-facts strong { color: var(--cow-navy); }

/* Gallery */
.cow-gallery.wp-block-gallery { gap: .75rem !important; }
.cow-gallery.wp-block-gallery .wp-block-image img { border-radius: 12px; }

/* Steps */
.cow-steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 1rem; margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.cow-steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.2rem; background: #fff; border-radius: var(--cow-radius); box-shadow: var(--cow-shadow); }
.cow-steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--cow-navy); color: #fff; font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.3rem; display: grid; place-items: center; }
.cow-steps strong { color: var(--cow-navy); display: block; font-size: 1.08rem; }

/* FAQ (Details blocks) */
.cow-faq .wp-block-details { background: #fff; border: 1px solid rgba(170, 161, 156, .4); border-radius: 14px; padding: 0; margin-top: 0 !important; margin-bottom: .75rem !important; }
.cow-faq .wp-block-details summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600; color: var(--cow-navy); position: relative; font-size: 1.02rem; line-height: 1.45; }
.cow-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.cow-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--cow-taupe-dark); }
.cow-faq .wp-block-details[open] summary::after { content: "–"; }
.cow-faq .wp-block-details > :not(summary) { padding: 0 1.25rem; margin-top: 0; }
.cow-faq .wp-block-details > :last-child { padding-bottom: 1.15rem; }
.cow-faq h2 { margin-top: 2.5rem !important; margin-bottom: 1rem !important; font-size: 1.9rem; }
.cow-faq h2:first-child { margin-top: 0 !important; }

/* Contact */
.cow-contact-card .wp-block-buttons { margin-top: 1rem; }
.cow-small { font-size: .88rem !important; color: var(--cow-taupe-dark); }
.cow-section--navy .cow-small { color: var(--cow-blush-light); }
.cow-coming { border: 1.5px dashed var(--cow-taupe); border-radius: var(--cow-radius); padding: 1.5rem !important; text-align: center; background: rgba(255,255,255,.6); }
.cow-coming h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.cow-coming p { margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.cow-site-footer { margin-top: 0 !important; }
.cow-footer__prayer { background: var(--cow-navy); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.cow-footer__prayer-inner { max-width: 760px; margin: 0 auto; }
.cow-footer__prayer p { margin: 0 0 1rem; }
.cow-footer__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem !important; }
.cow-footer__note { font-size: .82rem; color: var(--cow-blush-light); opacity: .9; }
.cow-footer__main { max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.cow-footer__about img { width: 220px; height: auto; margin-bottom: .6rem; }
.cow-footer__about p { font-size: .95rem; max-width: 26em; }
.cow-footer__title { font-family: var(--wp--preset--font-family--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cow-taupe-dark); margin: .4rem 0 .9rem; font-weight: 600; }
.cow-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.cow-footer__links a { color: var(--cow-ink); text-decoration: none; }
.cow-footer__links a:hover, .cow-footer__links a[aria-current="page"] { color: var(--cow-navy); text-decoration: underline; }
.cow-footer__soon { font-size: .85rem; color: var(--cow-taupe-dark); margin-top: 1.2rem; }
.cow-footer__bottom { border-top: 1px solid rgba(170, 161, 156, .35); text-align: center; padding: 1.4rem 1.25rem 2rem; font-size: .82rem; color: var(--cow-taupe-dark); }
.cow-footer__bottom p { margin: .2rem 0; }
.cow-footer__verse { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.15rem; color: var(--cow-navy); }
.cow-footer__verse span { font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cow-taupe-dark); margin-left: .4rem; }
@media (max-width: 820px) {
	.cow-footer__main { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
	.cow-footer__about img { margin: 0 auto .6rem; display: block; }
	.cow-footer__about p { margin: 0 auto; }
	.cow-footer__links { justify-items: center; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 781px) {
	.cow-hero .cow-arch img { aspect-ratio: 4 / 3; object-position: 45% 40%; border-radius: 160px 160px var(--cow-radius) var(--cow-radius); }
	.cow-hero .cow-arch { max-width: 520px; margin: 0 auto; border-radius: 160px 160px var(--cow-radius) var(--cow-radius); }
	.cow-hero .cow-hero__welcome { margin-bottom: 0 !important; }
	.cow-arch::after { display: none; }
	.cow-hero { text-align: left; }
	.wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
}

/* Template spacing: no gaps between header, main and footer */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.cow-404 { text-align: center; min-height: 50vh; }
.cow-404 .wp-block-buttons { justify-content: center; }
.cow-gallery.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
.cow-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; }
@media (max-width: 600px) { .cow-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - .375rem) !important; } }

/* ---------- Past Events Gallery (Events page): album cards + anchored album grids, CSS only ---------- */
.cow-albums { gap: clamp(1rem, 2.5vw, 1.75rem) !important; margin-top: 2rem !important; }
.cow-album-card { position: relative; flex-basis: 0; background: #fff; border-radius: var(--cow-radius); overflow: hidden; padding: 0 !important; border: 1px solid rgba(170, 161, 156, .3);
	box-shadow: 10px 10px 0 -3px var(--cow-blush-light), 10px 10px 0 -2px rgba(170, 161, 156, .35), var(--cow-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.cow-album-card:hover, .cow-album-card:focus-within { transform: translateY(-3px); box-shadow: 10px 10px 0 -3px var(--cow-blush), 10px 10px 0 -2px rgba(170, 161, 156, .45), 0 22px 44px -22px rgba(24, 53, 82, .45); }
.cow-album-card .cow-album-card__cover { margin: 0 !important; }
.cow-album-card .cow-album-card__cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.cow-album-card h3 { margin: 1.1rem 1.35rem .25rem !important; font-size: clamp(1.45rem, 2.4vw, 1.7rem); line-height: 1.2; }
.cow-album-card h3 a { color: var(--cow-navy); text-decoration: none; }
.cow-album-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--cow-radius); }   /* whole card is the link */
.cow-album-card h3 a:focus-visible { outline: none; }
.cow-album-card h3 a:focus-visible::after { outline: 3px solid var(--cow-navy); outline-offset: -3px; }
.cow-album-card__count { margin: 0 1.35rem 1.25rem !important; font-size: .78rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cow-taupe-dark); }
.cow-album { margin-top: clamp(2.5rem, 6vw, 4rem) !important; padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid rgba(170, 161, 156, .4); }
.cow-album h3 { margin: 0 0 .4rem !important; font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.cow-album__intro { max-width: 46em; margin: 0 0 1.4rem !important; }
.cow-album > .cow-gallery.wp-block-gallery { margin: 0 !important; max-width: none; width: 100%; }
.cow-album__back { margin: 1.1rem 0 0 !important; font-size: .9rem !important; }
.cow-album__back a { color: var(--cow-navy); font-weight: 600; }
.cow-album__back a::before { content: "↑ "; }
@media (prefers-reduced-motion: reduce) { .cow-album-card { transition: none; } .cow-album-card:hover, .cow-album-card:focus-within { transform: none; } }
@media (max-width: 781px) {
	/* compact horizontal album cards on phones: cover left, title + count right */
	.cow-album-card { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr auto auto 1fr; align-items: center; box-shadow: 7px 7px 0 -3px var(--cow-blush-light), 7px 7px 0 -2px rgba(170, 161, 156, .35), var(--cow-shadow); }
	.cow-album-card .cow-album-card__cover { grid-column: 1; grid-row: 1 / -1; height: 100%; }
	.cow-album-card .cow-album-card__cover img { aspect-ratio: 1 / 1; height: 100%; }
	.cow-album-card h3 { grid-column: 2; grid-row: 2; margin: 0 1rem .2rem !important; font-size: 1.35rem; }
	.cow-album-card__count { grid-column: 2; grid-row: 3; margin: 0 1rem !important; font-size: .7rem !important; letter-spacing: .1em; }
}
@media (max-width: 600px) {   /* odd photo count on the 2-column phone grid: last photo spans the row */
	.cow-album .cow-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:last-child:nth-child(odd):not(#individual-image) { width: 100% !important; }
	.cow-album .cow-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}

/* Vendor sign-up box (Events > Upcoming events) */
.cow-vendor-signup { background: var(--cow-blush-light); border-radius: var(--cow-radius); padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem) !important; margin-bottom: 1.75rem !important; }
.cow-vendor-signup p { margin: 0 0 .9rem; }
.cow-vendor-signup strong { color: var(--cow-navy); }
.cow-vendor-signup .wp-block-buttons { margin: 0; }

/* Past Events Gallery pop-up (assets/js/gallery.js): centred panel (max 900px) over a dark backdrop */
.cow-album-data { display: none !important; }
html.cow-lb-open { overflow: hidden; }
.cow-lb { box-sizing: border-box; width: min(900px, calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #13283d; color: #fff; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65); font-family: var(--wp--preset--font-family--sans, sans-serif); }
.cow-lb::backdrop { background: rgba(9, 20, 33, .86); }
.cow-lb[open] { display: flex; flex-direction: column; }
.cow-lb__bar { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem .9rem 1.4rem; }
.cow-lb__title { margin: 0 !important; min-width: 0; flex: 1 1 auto; font-family: var(--wp--preset--font-family--serif, serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important; font-weight: 600; color: #fff !important; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cow-lb__count { margin: 0 !important; flex: none; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cow-lb button { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; font: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 999px; transition: background-color .15s ease; }
.cow-lb button svg { width: 55%; height: 55%; display: block; }
.cow-lb__close { flex: none; width: 46px; height: 46px; background: #fff; color: var(--cow-navy); border: 0; }
.cow-lb__close:hover { background: var(--cow-blush-light); }
.cow-lb__nav { position: absolute; top: calc(50% + 1.9rem); transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .75); }
.cow-lb__nav:hover { background: rgba(255, 255, 255, .28); }
.cow-lb__nav--prev { left: .9rem; }
.cow-lb__nav--next { right: .9rem; }
.cow-lb__nav[hidden] { display: none; }
.cow-lb button:focus-visible { outline: 3px solid var(--cow-blush); outline-offset: 3px; }
.cow-lb__stage { box-sizing: content-box; margin: 0; height: min(70vh, calc(100dvh - 8rem)); display: flex; justify-content: center; align-items: center; padding: 0 4.75rem 1.4rem; touch-action: pan-y; }
.cow-lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .05); transition: opacity .2s ease; }
.cow-lb.is-loading .cow-lb__img { opacity: .4; }
@media (max-width: 700px) {
	.cow-lb { border-radius: 16px; }
	.cow-lb__bar { padding: .8rem .8rem .75rem 1.1rem; }
	.cow-lb__stage { padding: 0 .8rem 5rem; }
	.cow-lb__stage { height: min(calc((100vw - 3.1rem) * 1.34), calc(100dvh - 12.5rem)); }
	.cow-lb__nav { top: auto; bottom: .9rem; transform: none; }
	.cow-lb__nav--prev { left: calc(50% - 60px); }
	.cow-lb__nav--next { right: calc(50% - 60px); }
}
@media (max-height: 520px) and (orientation: landscape) {
	.cow-lb { width: min(640px, calc(100vw - 1.5rem)); }
	.cow-lb__bar { padding: .5rem .6rem .5rem 1rem; }
	.cow-lb__close { width: 40px; height: 40px; }
	.cow-lb__stage { height: calc(100dvh - 6rem); padding: 0 4.25rem .75rem; }
	.cow-lb__nav { top: calc(50% + 1.4rem); bottom: auto; transform: translateY(-50%); width: 46px; height: 46px; }
	.cow-lb__nav--prev { left: .75rem; } .cow-lb__nav--next { right: .75rem; left: auto; }
}
@media (prefers-reduced-motion: reduce) { .cow-lb__img, .cow-lb button { transition: none; } }
