/* DBV Live Portfolio — front-end styles.
   Override --dbv-live-accent in your theme to match your brand color. */

.dbv-live-page,
.dbv-live-event {
	--dbv-live-accent: #c9302c;
	--dbv-live-ink: #1a1a1a;
	--dbv-live-muted: #6b6b6b;
	--dbv-live-border: #e6e6e6;
	color: var( --dbv-live-ink );
}

/* Woodmart pads its content wrapper (#main-content.wd-content-layout) with
   40px top/bottom on every page. Kill the top padding on the Live template
   only, so the hero video sits flush under the site header. */
.page-template-dbv-live-portfolio-template-php .wd-content-layout {
	padding-top: 0;
}

/* ---------- Hero video ---------- */

.dbv-live-hero {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	aspect-ratio: 16 / 9; /* overridden inline with the actual video's dimensions */
	overflow: hidden;
	background: #000;
}

.dbv-live-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dbv-live-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 0, 0, 0, 0.15 ) 0%, rgba( 0, 0, 0, 0.35 ) 100% );
	pointer-events: none;
}

/* ---------- Shared layout ---------- */

.dbv-live-page__content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.dbv-live-page__intro {
	max-width: 760px;
	margin: 0 auto 32px;
	text-align: center;
}

.dbv-live-portfolio__heading {
	text-align: center;
	font-size: clamp( 1.75rem, 3vw, 2.5rem );
	margin: 0 0 40px;
	letter-spacing: 0.02em;
}

.dbv-live-empty {
	text-align: center;
	color: var( --dbv-live-muted );
}

/* ---------- Portfolio grid ---------- */

.dbv-live-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 32px;
}

.dbv-live-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.08 );
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dbv-live-card:hover,
.dbv-live-card:focus-visible {
	transform: translateY( -4px );
	box-shadow: 0 12px 28px rgba( 0, 0, 0, 0.14 );
}

.dbv-live-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}

.dbv-live-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.dbv-live-card:hover .dbv-live-card__image img {
	transform: scale( 1.06 );
}

.dbv-live-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #eee, #ddd );
}

.dbv-live-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.dbv-live-card__title {
	font-size: 1.15rem;
	margin: 0;
	line-height: 1.3;
}

.dbv-live-card__meta {
	font-size: 0.82rem;
	color: var( --dbv-live-muted );
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dbv-live-card__blurb {
	margin: 0;
	color: var( --dbv-live-muted );
	font-size: 0.95rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dbv-live-card__link {
	margin-top: auto;
	padding-top: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var( --dbv-live-accent );
}

/* ---------- Single event ---------- */

.dbv-live-event__article {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 100px;
}

.dbv-live-event__back {
	display: inline-block;
	margin-bottom: 24px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var( --dbv-live-accent );
}

.dbv-live-event__header {
	text-align: center;
	margin-bottom: 32px;
}

.dbv-live-event__title {
	font-size: clamp( 1.9rem, 4vw, 2.75rem );
	margin: 0 0 10px;
}

.dbv-live-event__main-image {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
}

.dbv-live-event__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dbv-live-event__description {
	max-width: 760px;
	margin: 0 auto 56px;
	line-height: 1.75;
	font-size: 1.05rem;
}

.dbv-live-section {
	margin-bottom: 64px;
}

.dbv-live-section__heading {
	font-size: 1.5rem;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var( --dbv-live-border );
}

/* ---------- Gallery ---------- */

.dbv-gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 14px;
}

.dbv-gallery__item {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	cursor: zoom-in;
	background: #f2f2f2;
}

.dbv-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dbv-gallery__item:hover img {
	transform: scale( 1.08 );
}

/* ---------- Videos ---------- */

.dbv-videos-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 320px, 1fr ) );
	gap: 20px;
}

.dbv-videos-grid__item {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.12 );
}

/* ---------- Equipment ---------- */

.dbv-equipment-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 20px;
}

.dbv-equipment-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid var( --dbv-live-border );
	border-radius: 10px;
	padding: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dbv-equipment-item:hover,
.dbv-equipment-item:focus-visible {
	border-color: var( --dbv-live-accent );
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.08 );
}

.dbv-equipment-item__image {
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
	margin-bottom: 10px;
}

.dbv-equipment-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dbv-equipment-item__name {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

.dbv-equipment-item__price {
	color: var( --dbv-live-muted );
	font-size: 0.88rem;
	margin-top: 4px;
}

/* ---------- Lightbox ---------- */

.dbv-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba( 10, 10, 10, 0.96 );
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.dbv-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.dbv-lightbox__bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	padding: 16px 20px;
}

.dbv-lightbox__counter {
	color: rgba( 255, 255, 255, 0.65 );
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	margin-right: auto;
}

.dbv-lightbox__close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 255, 255, 255, 0.08 );
	border: none;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.dbv-lightbox__close:hover {
	background: rgba( 255, 255, 255, 0.2 );
}

.dbv-lightbox__stage {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 72px 24px;
}

.dbv-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.5 );
	border-radius: 4px;
}

.dbv-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 255, 255, 255, 0.08 );
	border: none;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.dbv-lightbox__nav:hover {
	background: rgba( 255, 255, 255, 0.2 );
}

.dbv-lightbox__prev {
	left: 12px;
}

.dbv-lightbox__next {
	right: 12px;
}

@media ( max-width: 600px ) {
	.dbv-lightbox__stage {
		padding: 0 52px 16px;
	}

	.dbv-lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 1.4rem;
	}
}
