/*
 * Milwaukee Yacht Club — supplemental styles.
 * Design tokens live in theme.json; this file only covers what theme.json can't:
 * block style variations, a few layout details, and styling for third-party
 * form plugins (Gravity Forms, WPForms, Fluent Forms) and social feeds.
 */

/* ---------- Block style variations ---------- */

.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgee-red);
	margin-bottom: 0.25rem;
}
.has-navy-background-color .is-style-eyebrow,
.has-navy-deep-background-color .is-style-eyebrow,
.wp-block-cover .is-style-eyebrow {
	color: var(--wp--preset--color--mist);
}

.wp-block-group.is-style-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--white);
	height: 100%;
}
.wp-block-group.is-style-card.has-surface-background-color {
	border-color: transparent;
}

.wp-block-group.is-style-form-panel {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--50);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline-light > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline-light > .wp-block-button__link:hover,
.wp-block-button.is-style-outline-light > .wp-block-button__link:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-text-arrow > .wp-block-button__link {
	background: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--burgee-red);
	padding-left: 0;
	padding-right: 0;
}
.wp-block-button.is-style-text-arrow > .wp-block-button__link::after {
	content: " \2192";
}
.wp-block-button.is-style-text-arrow > .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
}

ul.is-style-checks {
	list-style: none;
	padding-left: 0;
}
ul.is-style-checks li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}
ul.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.45em;
	width: 0.55rem;
	height: 0.95rem;
	border: solid var(--wp--preset--color--burgee-red);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---------- Header ---------- */

.myc-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .myc-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 600px) {
	.admin-bar .myc-header { top: 0; }
}
.myc-header .wp-block-site-tagline {
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* ---------- Events list ---------- */

.myc-event-row {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.myc-event-row:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}
.myc-event-date {
	min-width: 7.5rem;
	font-variant-numeric: tabular-nums;
}
.myc-tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	border-radius: 3px;
	padding: 0.15rem 0.55rem;
}

/* ---------- Image placeholders (cover blocks with no photo yet) ---------- */

.myc-photo-slot .wp-block-cover__inner-container {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
}

/* ---------- Details / FAQ ---------- */

.wp-block-details summary {
	cursor: pointer;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}
.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--slate);
}

/* ---------- Form slot (shown until a real form is embedded) ---------- */

.myc-form-slot {
	border: 2px dashed var(--wp--preset--color--line);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--surface);
}

/* ---------- Third-party forms: shared look ---------- */

:is(.gform_wrapper, .wpforms-container, .fluentform, .wp-block-group.is-style-form-panel) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], select, textarea) {
	width: 100%;
	min-height: 48px;
	border: 1px solid #8A96A8;
	border-radius: 4px;
	padding: 0.6rem 0.8rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	box-sizing: border-box;
}
:is(.gform_wrapper, .wpforms-container, .fluentform) textarea {
	min-height: 140px;
}
:is(.gform_wrapper, .wpforms-container, .fluentform) :is(input, select, textarea):focus {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--navy);
}
:is(.gform_wrapper, .wpforms-container, .fluentform) :is(label, legend, .gfield_label, .wpforms-field-label, .ff-el-input--label label) {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink);
}
:is(.gform_wrapper, .wpforms-container, .fluentform) :is(button[type="submit"], input[type="submit"], .gform_button, .wpforms-submit, .ff-btn-submit) {
	background: var(--wp--preset--color--burgee-red) !important;
	border: 2px solid var(--wp--preset--color--burgee-red) !important;
	color: var(--wp--preset--color--white) !important;
	border-radius: 4px !important;
	font-family: inherit !important;
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	padding: 0.9rem 1.75rem !important;
	min-height: 52px;
	cursor: pointer;
}
:is(.gform_wrapper, .wpforms-container, .fluentform) :is(button[type="submit"], input[type="submit"], .gform_button, .wpforms-submit, .ff-btn-submit):hover {
	background: var(--wp--preset--color--burgee-red-dark) !important;
	border-color: var(--wp--preset--color--burgee-red-dark) !important;
}
:is(.gform_wrapper, .wpforms-container, .fluentform) :is(.gform_confirmation_message, .wpforms-confirmation-container-full, .ff-message-success) {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 6px;
	padding: 1.25rem !important;
	color: var(--wp--preset--color--navy) !important;
	font-size: 1.0625rem;
}

/* ---------- Social feed (Smash Balloon) ---------- */

.myc-social #sb_instagram,
.myc-social .cff-wrapper {
	padding: 0 !important;
}
.myc-social #sb_instagram .sbi_follow_btn a,
.myc-social #sb_instagram #sbi_load .sbi_load_btn {
	border-radius: 4px !important;
	font-weight: 700;
}

/* ---------- Full-width covers: keep text off the screen edge ---------- */

.wp-block-cover.alignfull {
	padding-left: var(--wp--style--root--padding-left, 1.25rem);
	padding-right: var(--wp--style--root--padding-right, 1.25rem);
}

/* ---------- Footer ---------- */

.myc-footer-list {
	list-style: none;
}
.myc-footer-list a {
	text-decoration: none;
}
.myc-footer-list a:hover,
.myc-footer-list a:focus {
	text-decoration: underline;
}

/* ---------- Logo ---------- */

.myc-logo {
	margin: 0;
	line-height: 0;
}
.myc-logo img {
	width: clamp(190px, 22vw, 270px) !important;
	height: auto;
	display: block;
}

@media (max-width: 600px) {
	/* Phones: logo + menu on one line; the hero carries the visit button. */
	.myc-header .wp-block-buttons {
		display: none;
	}
	.myc-logo img {
		width: 200px !important;
	}
}

/* ---------- People grid (board, staff) ---------- */

.myc-person .wp-block-image,
.myc-person .wp-block-image img {
	width: 100%;
	height: auto;
}
.myc-person .wp-block-image img {
	border-radius: 4px;
	background: var(--wp--preset--color--mist);
}
.myc-person h3 {
	line-height: 1.2;
}

/* ---------- Cards with a photo on top: photo runs edge to edge ---------- */

.wp-block-group.is-style-card > .myc-photo-slot:first-child,
.wp-block-group.is-style-card > .myc-card-gallery:first-child,
.wp-block-group.is-style-card > .wp-block-image:first-child,
.wp-block-group.is-style-card > .wp-block-cover:first-child {
	margin-top: calc(-1 * var(--wp--preset--spacing--50));
	margin-left: calc(-1 * var(--wp--preset--spacing--50));
	margin-right: calc(-1 * var(--wp--preset--spacing--50));
	border-radius: 5px 5px 0 0;
	overflow: hidden;
}
.wp-block-group.is-style-card > .wp-block-image:first-child img {
	border-radius: 5px 5px 0 0;
}

/* ---------- Embedded map ---------- */

.myc-map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--wp--preset--color--mist);
}
.myc-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 781px) {
	.myc-map {
		aspect-ratio: 1 / 1;
	}
}

/* ---------- History timeline ---------- */

.myc-milestone:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
@media (max-width: 781px) {
	.myc-milestone {
		gap: 0.75rem !important;
	}
}

/* ---------- Mobile menu: full-screen panel with button-style links ---------- */

/* Hamburger: a clear 44px button instead of a bare icon (phones only; WordPress hides it from 600px up) */
@media (max-width: 599px) {
	.myc-header .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 6px;
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--navy);
	}
}

/* Desktop never shows the in-menu call to action */
.wp-block-navigation .myc-nav-cta {
	display: none !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem clamp(1rem, 5vw, 2rem) 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	top: 0;
	right: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.25rem !important;
	align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	width: 100%;
	gap: 0.6rem !important;
	align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	width: 100%;
	align-items: stretch !important;
}

/* Top-level items: full-width buttons */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	min-height: 54px;
	padding: 0.75rem 1rem !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	font-size: 1.125rem;
	font-weight: 600;
	text-decoration: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child):not(.myc-nav-cta) > .wp-block-navigation-item__content::after {
	content: "\203A";
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--burgee-red);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:active,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
}

/* Sections with sub-pages: parent button plus a grouped list of child buttons */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child {
	background: var(--wp--preset--color--surface);
	border-radius: 8px;
	padding: 0.5rem;
	box-sizing: border-box;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content {
	border-color: transparent;
	background: transparent;
	min-height: 44px;
	padding: 0.5rem 0.5rem !important;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem !important;
	padding: 0 !important;
	width: 100% !important;
	border: 0 !important;
	background: transparent !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0.6rem 0.85rem !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none !important;
}

/* Member login: quieter outline; Schedule a tour: the primary red button */
.wp-block-navigation__responsive-container.is-menu-open .myc-nav-login > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--slate) !important;
	font-weight: 500 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation .myc-nav-cta,
.wp-block-navigation__responsive-container.is-menu-open .myc-nav-cta {
	display: flex !important;
	margin-top: 0.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .myc-nav-cta > .wp-block-navigation-item__content {
	justify-content: center !important;
	background: var(--wp--preset--color--burgee-red) !important;
	border-color: var(--wp--preset--color--burgee-red) !important;
	color: var(--wp--preset--color--white) !important;
	font-weight: 700 !important;
}

/* ---------- Real photos placed where a photo slot was ---------- */

.wp-block-image.myc-photo {
	margin: 0;
}
.wp-block-image.myc-photo img {
	width: 100%;
	display: block;
	border-radius: 0;
}

/* ---------- Card photo galleries (click to open a lightbox slideshow) ----------
   A Gallery block with "Enlarge on click". The first photo shows on the card;
   the others are only seen in the lightbox. In the editor every photo stays
   visible so they can be added, removed and reordered. */

.myc-card-gallery { --myc-gh: 300px; }
.myc-card-gallery.is-h-170 { --myc-gh: 170px; }
.myc-card-gallery.is-h-220 { --myc-gh: 220px; }
/* tall photo: show its lower part (boat, horizon) on the card; the lightbox still shows the whole photo */
.wp-block-gallery.myc-card-gallery > figure.myc-focus-low img { object-position: center 85%; }
.myc-card-gallery.is-h-420 { --myc-gh: 420px; }
@media (max-width: 781px) { .myc-card-gallery.is-h-420 { --myc-gh: 300px; } }

:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery {
	display: block;
	position: relative;
	isolation: isolate;
	margin-block: 0;
	gap: 0;
}
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery > figure.wp-block-image {
	width: 100% !important;
	height: var(--myc-gh);
	margin: 0 !important;
	display: block;
}
/* Extra photos sit invisibly under the first one (not display:none): the
   lightbox measures each photo on the page to size its slide, and a photo
   with no size comes out squeezed, especially on phones. */
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery > figure.wp-block-image:not(:first-of-type) {
	position: absolute !important;
	inset: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: -1;
}
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery > figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
	transition: transform 0.4s ease;
}
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery > figure.wp-block-image:first-of-type {
	overflow: hidden;
}
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery:hover > figure.wp-block-image img {
	transform: scale(1.03);
}
/* Caption holds the placeholder label: shown only while the gallery is empty */
.wp-block-gallery.myc-card-gallery:has(> figure.wp-block-image) > .blocks-gallery-caption {
	display: none;
}
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery:not(:has(> figure.wp-block-image)) {
	min-height: var(--myc-gh);
	background: var(--wp--preset--color--mist);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wp-block-gallery.myc-card-gallery > .blocks-gallery-caption {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
	margin: 0;
	padding: 1rem;
}
/* "N photos" badge when there is more than one */
:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery::after {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	padding: 0.3rem 0.65rem 0.3rem 1.9rem;
	border-radius: 999px;
	background: rgba(29, 33, 82, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='12' rx='2'/%3E%3Cpath d='M7 21h12a2 2 0 0 0 2-2V9'/%3E%3C/svg%3E") no-repeat 0.6rem center / 0.95rem;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
}
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(2):last-of-type)::after { content: "2 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(3):last-of-type)::after { content: "3 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(4):last-of-type)::after { content: "4 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(5):last-of-type)::after { content: "5 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(6):last-of-type)::after { content: "6 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(7):last-of-type)::after { content: "7 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(8):last-of-type)::after { content: "8 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(9):last-of-type)::after { content: "9 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(10):last-of-type)::after { content: "10 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(11):last-of-type)::after { content: "11 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(12):last-of-type)::after { content: "12 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(13):last-of-type)::after { content: "13 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(14):last-of-type)::after { content: "14 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(15):last-of-type)::after { content: "15 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(16):last-of-type)::after { content: "16 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(17):last-of-type)::after { content: "17 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(18):last-of-type)::after { content: "18 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(19):last-of-type)::after { content: "19 photos"; }
:where(body:not(.editor-styles-wrapper)) .myc-card-gallery:has(> figure.wp-block-image:nth-of-type(20):last-of-type)::after { content: "20 photos"; }

/* ---------- Community page ---------- */

.wp-block-image.myc-rounded img {
	border-radius: 6px;
}
.wp-block-cover.myc-rounded-cover {
	border-radius: 6px;
	overflow: hidden;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}
.wp-block-image.myc-partner-logo,
.wp-block-group.is-style-card > .wp-block-image.myc-partner-logo:first-child {
	margin: 0 0 0.5rem;
	border-radius: 0;
	overflow: visible;
}
.myc-marquee,
.wp-block-group.myc-marquee.has-background {
	overflow: hidden;
	padding: 0;
}
.myc-marquee > .wp-block-image.myc-marquee-photo {
	margin: 0;
}
.myc-marquee > .wp-block-image.myc-marquee-photo img {
	width: 100%;
	height: clamp(260px, 38vw, 480px);
	object-fit: cover;
	object-position: center 40%;
	display: block;
}
.wp-block-image.myc-partner-logo img {
	width: auto;
	max-width: 100%;
	object-position: left center;
}

/* ---------- Step icons (How joining works) ---------- */

.wp-block-image.myc-step-icon {
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wp-block-image.myc-step-icon img {
	width: 28px !important;
	height: 28px !important;
}

/* ---------- Photo captions in the enlarge-on-click slideshow ----------
   Captions set on a photo inside a card gallery stay off the card and show
   under the photo in the slideshow instead (see assets/js/lightbox-captions.js). */

:where(body:not(.editor-styles-wrapper)) .wp-block-gallery.myc-card-gallery > figure.wp-block-image > figcaption {
	display: none;
}
.wp-lightbox-overlay .myc-lightbox-caption {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 2000003;
	box-sizing: border-box;
	margin: 0;
	padding: 0.75rem 1.25rem;
	background: rgba(20, 24, 62, 0.62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}
.wp-lightbox-overlay:not(.active) .myc-lightbox-caption,
.wp-lightbox-overlay .myc-lightbox-caption[hidden] {
	display: none;
}

/* ---------- Slideshow arrows ----------
   Semi-transparent navy circles with a light ring so they read on light and
   dark photos without overpowering them; they firm up on hover. The script places them on the photo's left and right edges. */

.wp-lightbox-overlay .wp-lightbox-navigation-button {
	position: fixed !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	z-index: 2000004 !important;
	box-sizing: border-box;
	width: 52px !important;
	height: 52px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
	border-radius: 50% !important;
	background: rgba(29, 33, 82, 0.45) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	fill: #fff !important;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.wp-lightbox-overlay .wp-lightbox-navigation-button[hidden] {
	display: none !important;
}
.wp-lightbox-overlay .wp-lightbox-navigation-button svg {
	width: 30px;
	height: 30px;
	fill: #fff !important;
}
.wp-lightbox-overlay .wp-lightbox-navigation-button:hover {
	background: rgba(29, 33, 82, 0.8) !important;
	border-color: #fff !important;
}
.wp-lightbox-overlay .wp-lightbox-navigation-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--burgee-red, #d7263d);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.wp-lightbox-overlay .wp-lightbox-navigation-button {
		width: 44px !important;
		height: 44px !important;
	}
	.wp-lightbox-overlay .wp-lightbox-navigation-button svg {
		width: 26px;
		height: 26px;
	}
}

/* ---------- Racing page drop-downs ---------- */

.myc-race-drops > .wp-block-details {
	margin: 0;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.myc-race-drops > .wp-block-details:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}
.myc-race-drops > .wp-block-details[open] > summary {
	margin-bottom: 0.25rem;
}
.myc-race-drops > .wp-block-details ul {
	margin-top: 0.4rem;
	padding-left: 1.25rem;
}
.myc-race-drops > .wp-block-details li + li {
	margin-top: 0.3rem;
}

/* ---------- Past Commodores table (History page) ---------- */

.myc-commodores-section .wp-block-details summary {
	font-size: var(--wp--preset--font-size--medium);
}
.wp-block-table.myc-commodores {
	margin-top: 1rem;
	font-size: 0.9375rem;
}
.wp-block-table.myc-commodores table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.myc-commodores th,
.wp-block-table.myc-commodores td {
	border: 0;
	padding: 0.5rem 0.875rem;
	text-align: left;
}
.wp-block-table.myc-commodores thead {
	border-bottom: 2px solid var(--wp--preset--color--navy);
}
.wp-block-table.myc-commodores th {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}
.wp-block-table.myc-commodores th:last-child,
.wp-block-table.myc-commodores td:last-child {
	width: 9rem;
	white-space: nowrap;
	color: var(--wp--preset--color--slate);
}
.wp-block-table.is-style-stripes.myc-commodores tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--surface);
}

/* Anchored sections clear the header when jumped to. */
#past-commodores { scroll-margin-top: 96px; }

/* ---------- History: photo still being located ---------- */
.wp-block-cover.myc-archive-slot { border-radius: 4px; padding: 1.25rem; }
.myc-archive-slot p { margin: 0; line-height: 1.45; }
.myc-archive-slot a { color: var(--wp--preset--color--navy); }
