/**
 * SSRP LP — Venue block.
 *
 * Mirrors the Event Registration "Venue" section:
 *   - Photo gallery grid: 3 columns where every 5n+2 item spans two columns
 *     (16:9), the rest are single-column portrait tiles.
 *   - Two-column row: 33% feature image + 66% copy with pill action buttons.
 *
 * LP-native — uses --ssrp-lp-* tokens and the shared .ssrp-lp-btn system.
 */

.ssrp-lp-section--venue .ssrp-lp-venue__header {
	margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Photo gallery grid.
   -------------------------------------------------------------------------- */
.ssrp-lp-venue__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.ssrp-lp-venue__gallery-item {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--ssrp-lp-surface-alt, #e5e7eb);
	border-radius: 16px;
	/* Portrait tile by default. */
	padding-bottom: 116%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Middle (5n+2) tile spans two columns at 16:9. */
.ssrp-lp-venue__gallery-item:nth-child(5n + 2) {
	grid-column: span 2;
	padding-bottom: 56.25%;
}

.ssrp-lp-venue__gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.ssrp-lp-venue__gallery-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* --------------------------------------------------------------------------
   Two-column feature row.
   -------------------------------------------------------------------------- */
.ssrp-lp-venue__columns {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: clamp(1.5rem, 3vw, 2rem);
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ssrp-lp-venue__col-left {
	width: 33%;
	flex: 0 0 33%;
}

.ssrp-lp-venue__col-left img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
	display: block;
}

.ssrp-lp-venue__col-right {
	width: 66%;
	flex: 1 1 auto;
	font-size: 1.125rem;
	line-height: 1.4;
	color: var(--ssrp-lp-ink-muted, #374151);
}

.ssrp-lp-venue__content > *:first-child { margin-top: 0; }
.ssrp-lp-venue__content > *:last-child  { margin-bottom: 0; }

.ssrp-lp-venue__content p {
	margin: 0 0 1rem;
}

/* --------------------------------------------------------------------------
   Action buttons — solid ink pills with leading icon + trailing arrow.
   -------------------------------------------------------------------------- */
.ssrp-lp-venue__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.ssrp-lp-venue__btn {
	background: var(--ssrp-lp-ink, #030712);
	color: #ffffff;
	border-color: var(--ssrp-lp-ink, #030712);
}

.ssrp-lp-venue__btn:hover,
.ssrp-lp-venue__btn:focus-visible {
	background: transparent;
	color: var(--ssrp-lp-ink, #030712);
	border-color: var(--ssrp-lp-ink, #030712);
}

.ssrp-lp-venue__btn svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* --------------------------------------------------------------------------
   Responsive.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
	.ssrp-lp-venue__gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	.ssrp-lp-venue__gallery-item,
	.ssrp-lp-venue__gallery-item:nth-child(5n + 2) {
		grid-column: span 1;
		padding-bottom: 100%;
	}
}

@media (max-width: 768px) {
	.ssrp-lp-venue__columns {
		flex-direction: column;
	}
	.ssrp-lp-venue__col-left,
	.ssrp-lp-venue__col-right {
		width: 100%;
		flex-basis: auto;
	}
	.ssrp-lp-venue__actions {
		flex-direction: column;
	}
	.ssrp-lp-venue__btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.ssrp-lp-venue__gallery {
		grid-template-columns: 1fr;
	}
	.ssrp-lp-venue__gallery-item:hover {
		transform: none;
	}
}
