/* RY Directory 2.0 — venues, coordinators, event setups. Dark & gold, matching the child theme tokens. */
.ryd {
	--ryd-bg: var(--ry-surface, #151514);
	--ryd-bg-2: var(--ry-surface-2, #1c1c1a);
	--ryd-line: var(--ry-line, #2c2b28);
	--ryd-ivory: var(--ry-ivory, #f4f1ea);
	--ryd-body: var(--ry-body, #c9c4ba);
	--ryd-muted: var(--ry-muted, #a29d93);
	--ryd-gold: var(--ry-gold, #d4af37);
	--ryd-gold-soft: var(--ry-gold-soft, #e2c667);
	--ryd-serif: var(--ry-serif, "Cormorant Garamond", Georgia, serif);
	--ryd-sans: var(--ry-sans, Mulish, "Helvetica Neue", Arial, sans-serif);
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	color: var(--ryd-body);
	font-family: var(--ryd-sans);
}

.ryd *,
.ryd *::before,
.ryd *::after,
.ryd-lightbox,
.ryd-lightbox * {
	box-sizing: border-box;
}

/* Filters */
.ryd-filters {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin: 0 0 28px;
	padding: 14px;
	border: 1px solid var(--ryd-line);
	border-radius: 10px;
	background: var(--ryd-bg);
}

.ryd-filters input,
.ryd-filters select {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--ryd-line);
	border-radius: 4px;
	background: #0f0f0e;
	color: var(--ryd-ivory);
	font: 16px/1.2 var(--ryd-sans);
	box-shadow: none;
}

.ryd-filters input::placeholder {
	color: #8a857c;
	opacity: 1;
}

.ryd-filters select option {
	background: #151514;
	color: var(--ryd-ivory);
}

.ryd-filters input:focus,
.ryd-filters select:focus {
	border-color: var(--ryd-gold);
	outline: none;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Grid: 3 / 2 / 1 columns */
.ryd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.ryd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.ryd-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ryd-filters {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Card */
.ryd-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ryd-line);
	border-radius: 10px;
	background: var(--ryd-bg);
	transition: border-color 0.2s ease;
}

.ryd-card:hover,
.ryd-card:focus-within {
	border-color: rgba(212, 175, 55, 0.55);
}

.ryd-card[hidden] {
	display: none;
}

.ryd-card:target {
	border-color: var(--ryd-gold);
	box-shadow: 0 0 0 1px var(--ryd-gold);
}

.ryd-card__media {
	position: relative;
}

/* 3:2 frame. "cover" fills the frame using the focal point; "contain" shows the whole image (logos). */
.ryd-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--ryd-bg-2);
}

.ryd .ryd-frame__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ryd .ryd-frame--contain .ryd-frame__img {
	padding: 7%;
	object-fit: contain;
	object-position: center !important;
}

.ryd-frame--empty {
	display: grid;
	place-items: center;
	color: var(--ryd-muted);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ryd-media-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	cursor: zoom-in;
}

.ryd-media-btn:hover .ryd-frame__img,
.ryd-media-btn:focus-visible .ryd-frame__img {
	transform: scale(1.03);
}

.ryd-media-btn:focus-visible {
	outline: 2px solid var(--ryd-gold);
	outline-offset: -4px;
}

.ryd-badge {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	border-radius: 2px;
	background: var(--ryd-gold);
	color: #111;
	font: 700 11px/1.2 var(--ryd-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
}

.ryd-badge--count {
	top: auto;
	right: 12px;
	bottom: 12px;
	left: auto;
	background: rgba(12, 12, 11, 0.82);
	color: var(--ryd-ivory);
}

.ryd-badge--draft {
	top: 12px;
	right: 12px;
	left: auto;
	background: #b3261e;
	color: #fff;
}

.ryd-badge--low {
	top: 44px;
}

.ryd-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 22px 24px;
}

.site-main .ryd .ryd-card__title,
.ryd .ryd-card__title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--ryd-ivory);
	font-family: var(--ryd-serif);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.15;
}

.ryd .ryd-card__meta {
	margin: 0 0 10px;
	color: var(--ryd-gold);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}

.ryd .ryd-card__facts {
	margin: 0 0 10px;
	color: var(--ryd-ivory);
	font-size: 14.5px;
	font-weight: 600;
}

.ryd .ryd-card__text {
	margin: 4px 0 0;
	color: var(--ryd-body);
	font-size: 15px;
	line-height: 1.65;
}

.ryd .ryd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
}

.ryd .ryd-chips li {
	margin: 0;
	padding: 5px 9px;
	border: 1px solid var(--ryd-line);
	border-radius: 2px;
	background: var(--ryd-bg-2);
	color: var(--ryd-ivory);
	font-size: 12.5px;
	line-height: 1.3;
}

.ryd .ryd-chips li::before {
	content: none;
}

.ryd .ryd-facts,
.ryd .ryd-contact {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	line-height: 1.6;
}

.ryd .ryd-facts li,
.ryd .ryd-contact li {
	margin: 0 0 4px;
	color: var(--ryd-body);
}

.ryd .ryd-facts span,
.ryd .ryd-contact span {
	color: var(--ryd-muted);
}

.ryd .ryd-card__links {
	margin: 14px 0 0;
	font-size: 14.5px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ryd .ryd-link {
	color: var(--ryd-gold-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ryd .ryd-link:hover,
.ryd .ryd-link:focus {
	color: var(--ryd-ivory);
}

.ryd-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
}

/* Buttons (same look as the theme's .ry-btn) */
.ryd .ryd-btn,
.ryd a.ryd-btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--ryd-gold);
	border-radius: 2px;
	background: var(--ryd-gold);
	color: #111;
	font: 700 14px/1.2 var(--ryd-sans);
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ryd .ryd-btn:hover,
.ryd .ryd-btn:focus {
	border-color: var(--ryd-gold-soft);
	background: var(--ryd-gold-soft);
	color: #111;
}

.ryd .ryd-btn--ghost,
.ryd a.ryd-btn--ghost {
	border-color: rgba(244, 241, 234, 0.45);
	background: transparent;
	color: var(--ryd-ivory);
}

.ryd .ryd-btn--ghost:hover,
.ryd .ryd-btn--ghost:focus,
.ryd .ryd-btn--ghost[aria-expanded="true"] {
	border-color: var(--ryd-gold);
	background: transparent;
	color: var(--ryd-gold);
}

.ryd .ryd-btn:focus-visible {
	outline: 2px solid var(--ryd-gold);
	outline-offset: 3px;
}

/* Venue "View details" panel */
.ryd-details {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ryd-line);
	font-size: 14.5px;
	line-height: 1.65;
}

.ryd-details__text p {
	margin: 0 0 12px;
	color: var(--ryd-body);
}

/* States and notes */
.ryd-empty-state {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
	border: 1px solid var(--ryd-line);
	border-radius: 10px;
	background: var(--ryd-bg);
	text-align: center;
}

.site-main .ryd-empty-state h2,
.ryd-empty-state h2 {
	margin: 0 0 12px;
	color: var(--ryd-ivory);
	font-family: var(--ryd-serif);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
	font-weight: 600;
}

.ryd-empty-state p,
.ryd .ryd-nomatch,
.ryd .ryd-disclaimer {
	margin: 0;
	color: var(--ryd-body);
	font-size: 16px;
	line-height: 1.65;
}

.ryd-empty-state a {
	color: var(--ryd-gold-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ryd .ryd-nomatch {
	padding: 32px 0;
	text-align: center;
}

.ryd .ryd-disclaimer {
	margin-top: 28px;
	color: var(--ryd-muted);
	font-size: 13.5px;
	text-align: center;
}

.ryd .ryd-preview-note {
	margin: 0 0 20px;
	padding: 10px 14px;
	border-left: 3px solid #b3261e;
	background: var(--ryd-bg-2);
	color: var(--ryd-ivory);
	font-size: 14px;
}

/* Lightbox (native <dialog>: modal, Esc closes, background inert) */
.ryd-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 8, 7, 0.96);
	color: #f4f1ea;
	font-family: Mulish, "Helvetica Neue", Arial, sans-serif;
}

.ryd-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.ryd-lightbox[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

.ryd-lightbox__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px 12px 20px;
}

.ryd-lightbox__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: #f4f1ea;
	font: 600 1.35rem/1.2 "Cormorant Garamond", Georgia, serif;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ryd-lightbox__count {
	margin: 0;
	color: #c9c4ba;
	font-size: 14px;
	white-space: nowrap;
}

.ryd-lightbox button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(244, 241, 234, 0.35);
	border-radius: 2px;
	background: rgba(12, 12, 11, 0.7);
	color: #f4f1ea;
	font: 400 30px/1 Georgia, serif;
	cursor: pointer;
}

.ryd-lightbox button:hover,
.ryd-lightbox button:focus-visible {
	border-color: #d4af37;
	color: #d4af37;
	outline: none;
}

.ryd-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 0 72px 20px;
}

.ryd-lightbox__figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 140px);
	object-fit: contain;
	user-select: none;
}

.ryd-lightbox__figure figcaption {
	max-width: 760px;
	margin-top: 10px;
	color: #c9c4ba;
	font-size: 14px;
	text-align: center;
}

.ryd-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
}

.ryd-lightbox__nav--prev {
	left: 12px;
}

.ryd-lightbox__nav--next {
	right: 12px;
}

.ryd-lightbox__nav[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.ryd-lightbox__figure {
		padding: 0 8px 76px;
	}

	.ryd-lightbox__nav {
		top: auto;
		bottom: 14px;
		transform: none;
	}

	.ryd-lightbox__nav--prev {
		left: calc(50% - 58px);
	}

	.ryd-lightbox__nav--next {
		right: calc(50% - 58px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ryd *,
	.ryd-lightbox * {
		transition: none !important;
	}
}

/* Page sections around the shortcodes (block-editor pages) */
.ryd-page-intro {
	max-width: 760px;
	color: var(--ry-body, #c9c4ba);
	font-size: 17px;
	line-height: 1.7;
}

.ryd-related {
	margin-top: clamp(40px, 6vw, 72px);
	padding-top: 28px;
	border-top: 1px solid var(--ry-line, #2c2b28);
}

.site-main .ryd-related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.site-main .ryd-related li {
	margin: 0;
}

.site-main .ryd-related li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(244, 241, 234, 0.35);
	border-radius: 2px;
	color: var(--ry-ivory, #f4f1ea);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.site-main .ryd-related li a:hover,
.site-main .ryd-related li a:focus {
	border-color: var(--ry-gold, #d4af37);
	color: var(--ry-gold, #d4af37);
}

.ryd-page-intro a {
	color: var(--ry-gold-soft, #e2c667);
	text-decoration: underline;
	text-underline-offset: 3px;
}
