/*
 * GBC Video Core: photo viewer for the actor and studio galleries.
 *
 * Colours follow the theme's variables with the old dark values as the
 * fallback, so every GBC Theme variant restyles it. No default is declared
 * on a class that a theme's :root value would have to beat.
 */

.gvc-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.93);
	color: #fff;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.gvc-lb.is-open {
	display: flex;
}

.gvc-lb *,
.gvc-lb *::before,
.gvc-lb *::after {
	box-sizing: border-box;
}

html.gvc-lb-lock,
html.gvc-lb-lock body {
	overflow: hidden;
}

.gvc-lb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 0;
	flex: 0 0 auto;
}

.gvc-lb__counter {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.78);
}

.gvc-lb__btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.75) !important;
	color: #fff !important;
	cursor: pointer;
	transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.gvc-lb__btn:hover,
.gvc-lb__btn:focus-visible {
	background: var(--gvc-accent, #e60404) !important;
	border-color: var(--gvc-accent, #e60404) !important;
	color: var(--gbc-on-accent, #fff) !important;
	outline: none;
}

.gvc-lb__btn[hidden] {
	display: none;
}

.gvc-lb__stage {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 10px 14px 16px;
}

.gvc-lb__figure {
	flex: 0 1 auto;
	min-width: 0;
	max-width: min(1200px, 100%);
	max-height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gvc-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 190px);
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 8px 35px rgba(0, 0, 0, 0.65);
	transition: opacity 0.18s;
}

.gvc-lb__img.is-loading {
	opacity: 0.35;
}

/* The bar under the photo: scene, studio, actors and the way to the scene. */
.gvc-lb__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	width: 100%;
	margin-top: 10px;
	padding: 10px 14px;
	border: 1px solid var(--gbc-border-strong, #444);
	border-radius: var(--gbc-radius-sm, 8px);
	background: var(--gbc-surface, #191919);
	color: var(--gbc-text, #e8e8e8);
	font-size: 14px;
	line-height: 1.4;
}

.gvc-lb__part {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	min-width: 0;
}

.gvc-lb__title {
	color: var(--gbc-text-strong, #fff) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.gvc-lb__title:hover {
	text-decoration: underline !important;
	text-decoration-color: var(--gvc-accent, #e60404) !important;
}

.gvc-lb__studio,
.gvc-lb__actors {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.gvc-lb__label {
	color: var(--gbc-text-muted, #a0a0a0);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gvc-lb__chip {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--gbc-border-strong, #444);
	border-radius: 999px;
	background: var(--gbc-chip, #2b2b2b);
	color: var(--gbc-text-strong, #fff) !important;
	font-size: 13px;
	text-decoration: none !important;
}

.gvc-lb__chip:hover,
.gvc-lb__chip:focus-visible {
	border-color: var(--gvc-accent, #e60404);
	background: var(--gvc-accent, #e60404);
	color: var(--gbc-on-accent, #fff) !important;
}

.gvc-lb__watch {
	display: inline-block;
	padding: 7px 14px;
	border-radius: var(--gbc-radius-sm, 8px);
	background: var(--gbc-gradient, var(--gvc-accent, #e60404));
	color: var(--gbc-on-accent, #fff) !important;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

/* Phones: the arrows sit over the photo's edges, and the bar stacks. */
@media (max-width: 700px) {
	.gvc-lb__stage {
		position: relative;
		padding: 6px 8px 10px;
	}

	.gvc-lb__nav {
		position: absolute;
		top: 40%;
		z-index: 2;
		width: 42px;
		height: 42px;
	}

	.gvc-lb__prev {
		left: 6px;
	}

	.gvc-lb__next {
		right: 6px;
	}

	.gvc-lb__img {
		max-height: calc(100vh - 260px);
	}

	.gvc-lb__bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gvc-lb__btn,
	.gvc-lb__img {
		transition: none;
	}
}
