/**
 * Abzar WP Agencies — single agency page (cover, video, gallery).
 * Neutral layout only; colors inherit from the active theme.
 */

.la-single {
	color: inherit;
}

.la-single .la-agency-back-wrap {
	margin: 0 0 20px;
}

.la-single-cover {
	margin: 0 0 28px;
	line-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.la-single-cover__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

/* Sections */
.la-single-section {
	margin-bottom: 32px;
}

.la-single-section:last-child {
	margin-bottom: 0;
}

.la-single-section-title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	color: inherit;
	border: 0;
}

.la-agency-region-sep {
	opacity: 0.45;
	margin: 0 4px;
}

/* Video — standard 16:9 */
.la-single-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background-color: rgba(0, 0, 0, 0.06);
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.la-single-video__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	font-size: 28px;
}

.la-single-video__play i {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	padding-inline-start: 3px;
}

.la-single-video__frame {
	position: absolute;
	inset: 0;
}

.la-single-video__frame iframe,
.la-single-video__frame video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.la-single-video.is-playing .la-single-video__play {
	display: none;
}

.la-single-video.is-playing .la-single-video__frame {
	display: block !important;
}

/* Gallery — uniform grid */
.la-single-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.la-single-gallery__item {
	display: block;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(0, 0, 0, 0.04);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 4 / 3;
}

.la-single-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.la-single-gallery__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Lightbox */
.la-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.88);
}

.la-lightbox[hidden] {
	display: none !important;
}

.la-lightbox__stage {
	max-width: min(960px, 100%);
	max-height: calc(100vh - 48px);
}

.la-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	margin: 0 auto;
}

.la-lightbox__close,
.la-lightbox__nav {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	opacity: 0.85;
}

.la-lightbox__close:hover,
.la-lightbox__nav:hover {
	opacity: 1;
}

.la-lightbox__close {
	top: 16px;
	inset-inline-end: 16px;
}

.la-lightbox__nav--prev {
	inset-inline-start: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.la-lightbox__nav--next {
	inset-inline-end: 16px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 900px) {
	.la-single-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 540px) {
	.la-single-gallery {
		grid-template-columns: 1fr;
	}
}
