/**
 * Frame detail: main image hover zoom, thumbnail strip, fullscreen lightbox.
 */

.frame-breadcrumb {
	font-size: 0.8125rem;
	letter-spacing: 0.03em;
}

.frame-breadcrumb__link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.frame-breadcrumb__link:hover {
	border-bottom-color: currentColor;
	opacity: 0.85;
}

.frame-breadcrumb__current {
	font-weight: 600;
}

.frame-breadcrumb__sep {
	opacity: 0.45;
	user-select: none;
}

.frame-hero-main-zoom {
	overflow: hidden;
	border-radius: 4px;
	position: relative;
}

.frame-hero-main-zoom .frame-hero-main-img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
	transform-origin: center center;
	will-change: transform;
}

.frame-hero-main-zoom:hover .frame-hero-main-img {
	transform: scale(1.08);
}

.frame-hero-zoom-hint {
	font-size: 0.75rem;
	opacity: 0.85;
}

/* Override source .frame-thumb (was on <img>) — now on <button> wrapping img */
.frame-detail-page .frame-thumbnails--all .frame-thumb.frame-thumb-btn {
	width: auto;
	height: auto;
	opacity: 0.85;
}

.frame-detail-page .frame-thumbnails--all .frame-thumb.frame-thumb-btn:hover,
.frame-detail-page .frame-thumbnails--all .frame-thumb.frame-thumb-btn.active {
	opacity: 1;
}

.frame-thumb-btn {
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: transparent;
	line-height: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.loom-gallery__main .image-label-badge {
	background: rgba(26, 20, 16, 0.75) !important;
	color: #f5f0e8 !important;
	font-size: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	border-radius: 3px !important;
	padding: 3px 7px !important;
	position: absolute !important;
	bottom: 8px !important;
	left: 8px !important;
	pointer-events: none !important;
	z-index: 10 !important;
	border: 1px solid rgba(26, 20, 16, 0.15) !important;
	line-height: 1.2 !important;
}

.loom-gallery__main .image-label-badge.frame-color-badge--light {
	background: rgba(245, 240, 232, 0.85) !important;
	color: #1a1410 !important;
}

.frame-hero-main-trigger {
	position: relative;
	display: block;
	line-height: 0;
}

/* Feature image: below CTA / fine print; desktop aligns with thumbnail column height */
.frame-detail-hero .hero-right--with-feature {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (min-width: 992px) {
	.frame-detail-hero .hero-right--with-feature .frame-feature {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 0;
		margin-top: 0;
	}
}

@media (max-width: 991.98px) {
	.frame-detail-hero .hero-right--with-feature .frame-feature {
		align-items: center;
		width: 100%;
		margin-top: 1rem;
		text-align: center;
	}
}

.frame-feature-image-wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	padding: 16px 0 !important;
}

.frame-feature-image {
	max-width: 100% !important;
	max-height: 200px !important;
	width: auto !important;
	height: auto !important;
	border-radius: 3px !important;
	display: block !important;
	margin: 0 auto !important;
}

.frame-feature-caption {
	font-size: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	color: #888780 !important;
	margin-top: 6px !important;
	text-align: center !important;
	display: block !important;
}

.frame-name-mobile {
	display: none;
}

@media (max-width: 768px) {
	.frame-detail-hero .frame-name-mobile {
		display: block;
		width: 100%;
		margin: 0 0 12px;
	}

	.frame-detail-hero .hero-right > .frame-name {
		display: none;
	}
}

.frame-thumb-btn:hover {
	border-color: rgba(37, 99, 235, 0.45);
}

.frame-thumb-btn.active {
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb;
}

.frame-detail-page .frame-thumbnails--all .frame-thumb-btn img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius-editorial, 4px);
}

/* Fullscreen overlay */
.loom-frame-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px 24px;
	box-sizing: border-box;
}

.loom-frame-lightbox[hidden] {
	display: none !important;
}

.loom-frame-lightbox .loom-lb-inner {
	max-width: 100%;
	max-height: 100%;
}

.loom-frame-lightbox .loom-lb-inner img {
	max-width: 100vw;
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.loom-frame-lightbox .loom-lb-close {
	position: fixed;
	top: 12px;
	right: 16px;
	font-size: 2.25rem;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px 12px;
	z-index: 1;
	opacity: 0.9;
}

.loom-frame-lightbox .loom-lb-close:hover {
	opacity: 1;
}

/* Client / lifestyle gallery (same lightbox as frame hero) */
.frame-detail-page .frame-client-gallery-section {
	border-top: 0;
	background: var(--color-light, #fff);
}

.frame-detail-page .frame-client-gallery__intro {
	max-width: 42rem;
}

.frame-detail-page .frame-client-gallery__trigger {
	cursor: zoom-in;
	border-radius: 6px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-detail-page .frame-client-gallery__trigger:focus {
	outline: 2px solid var(--color-primary, #c0392b);
	outline-offset: 2px;
}

.frame-detail-page .frame-client-gallery__trigger:hover .frame-client-gallery__thumb {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.frame-detail-page .frame-client-gallery__thumb {
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
}

.frame-detail-page .frame-client-gallery__img {
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}

/* Loom canvas iframe may omit body.frame-detail-page until a frame hero is present */
.loom-canvas-body .frame-client-gallery-section {
	border-top: 0;
	background: var(--color-light, #fff);
}

.loom-canvas-body .frame-client-gallery__trigger {
	cursor: zoom-in;
	border-radius: 6px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.loom-canvas-body .frame-client-gallery__thumb {
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
}

.loom-canvas-body .frame-client-gallery__img {
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}
