/*
 * MARKETING WORK GALLERY
 * Polite Platform :: Cloud Web
 * Path: /cloud-web/www/marketing-site-new/marketing-site-assets/css/marketing-work-gallery.css
 * Description: Showcase-inspired Work gallery presentation and native media modal.
 * Context: UI
 * Author: Polite Platform Team
 * Date: 2026-08-28T11:36:02Z
 * Generated by: GPT-5
 */

#masonry-container {
	--work-gallery-ink: #343434;
	--work-gallery-media: #eaedf1;
	--work-gallery-muted: #777;
	--work-gallery-panel: #fff;
	align-items: start;
	background: transparent;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
	position: static;
	width: 100%;
}

#masonry-container.work-masonry-ready {
	display: block;
	position: relative;
}

body:has(#masonry-container) .main-content {
	background: #eaedf1;
}

body:has(#masonry-container) > header {
	background-color: #343434;
	background-image: none !important;
}

.work-current {
	width: 100%;
}

.work-bts {
	margin: 0 0 clamp(36px, 6vw, 68px);
}

body:has(#masonry-container) > header.work-bts-host {
	aspect-ratio: var(--work-bts-aspect-ratio, 2 / 1);
	background-color: #343434;
	background-image: none !important;
	height: auto;
	overflow: hidden;
	position: relative;
}

.work-bts--hero {
	--work-bts-copy-left: clamp(20px, 3.5vw, 46px);
	height: 100%;
	margin: 0;
	max-width: none;
	position: relative;
	width: 100%;
}

.work-bts--hero .work-bts__header {
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.52), transparent);
	border: 0;
	inset: 0;
	margin: 0;
	padding: clamp(20px, 3vw, 34px) clamp(22px, 4vw, 54px) 72px;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

.work-bts--hero .work-bts__header h2,
.work-bts--hero .work-bts__controls,
.work-bts--hero .work-bts__pause {
	color: #fff;
}

.work-bts--hero .work-bts__pause {
	text-decoration-color: rgba(255, 255, 255, 0.54);
}

.work-bts--hero .work-bts__header h2 {
	font-size: clamp(1.8rem, 4vw, 4.5rem);
	font-weight: 550;
	left: 50%;
	letter-spacing: 0.015em;
	max-width: min(80vw, 850px);
	position: absolute;
	text-align: center;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
	top: 50%;
	transform: translate(-50%, -50%);
	width: max-content;
}

.work-bts--hero.work-bts--title-bottom-left .work-bts__header h2 {
	bottom: clamp(60px, 5.5vw, 82px);
	font-size: clamp(1.45rem, 3vw, 3.1rem);
	left: var(--work-bts-copy-left);
	line-height: 1.08;
	max-width: min(48rem, calc(100% - 120px));
	text-align: left;
	top: auto;
	transform: none;
	width: auto;
}

.work-bts--hero .work-bts__controls {
	margin-left: auto;
	pointer-events: auto;
}

.work-bts--hero .work-bts__viewport {
	aspect-ratio: var(--work-bts-aspect-ratio, 2 / 1);
	height: 100%;
	max-height: none;
	min-height: 0;
}

.work-bts__header {
	align-items: baseline;
	border-bottom: 1px solid rgba(52, 52, 52, 0.14);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 14px;
}

.work-bts__header h2 {
	color: #343434;
	font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.25 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	margin: 0;
}

.work-bts__controls {
	align-items: center;
	color: #5f5f5f;
	display: flex;
	font: 600 0.78rem/1.4 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	gap: 12px;
}

.work-bts__pause {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	min-height: 32px;
	padding: 0;
	text-decoration: underline;
	text-decoration-color: rgba(52, 52, 52, 0.28);
	text-underline-offset: 3px;
}

.work-bts__pause:hover,
.work-bts__pause:focus-visible {
	color: #343434;
	text-decoration-color: currentColor;
}

.work-bts__viewport {
	aspect-ratio: var(--work-bts-aspect-ratio, 2 / 1);
	background: #343434;
	max-height: none;
	min-height: 280px;
	overflow: hidden;
	position: relative;
}

.work-bts__slide {
	height: 100%;
	margin: 0;
	position: relative;
	width: 100%;
}

.work-bts__slide[hidden] {
	display: none;
}

.work-bts__slide::after {
	background: linear-gradient(180deg, transparent 52%, rgba(10, 10, 10, 0.7) 100%);
	bottom: 0;
	content: "";
	inset-inline: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
}

.work-bts__slide > img,
.work-bts__media,
.work-bts__media img {
	display: block;
	height: 100%;
	width: 100%;
}

.work-bts__slide > img,
.work-bts__media img {
	object-fit: cover;
}

.work-bts__media:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.work-bts__caption {
	bottom: clamp(20px, 3vw, 36px);
	color: #fff;
	font: 500 clamp(0.86rem, 1.3vw, 1rem)/1.45 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	left: var(--work-bts-copy-left, clamp(22px, 4vw, 52px));
	margin: 0;
	max-width: min(42rem, calc(100% - 120px));
	position: absolute;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.52);
	z-index: 1;
}

.work-bts__caption span {
	font-size: 0.78em;
	opacity: 0.82;
}

.work-bts__caption--fallback {
	font-size: clamp(0.92rem, 1.5vw, 1.12rem);
	font-weight: 600;
}

.work-bts__previous,
.work-bts__next {
	align-items: center;
	background: rgba(23, 23, 23, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: 300 2rem/1 ui-sans-serif, system-ui, sans-serif;
	height: 44px;
	justify-content: center;
	padding: 0 0 3px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	z-index: 2;
}

.work-bts__previous {
	left: 18px;
}

.work-bts__next {
	right: 18px;
}

.work-bts__previous:hover,
.work-bts__next:hover,
.work-bts__previous:focus-visible,
.work-bts__next:focus-visible {
	background: rgba(23, 23, 23, 0.94);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.work-instagram {
	background: transparent;
	margin: 0 0 clamp(32px, 5vw, 56px);
	padding: 0;
}

.work-instagram__header {
	align-items: baseline;
	border-bottom: 1px solid rgba(52, 52, 52, 0.14);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 22px;
	padding-bottom: 14px;
}

.work-instagram__header h2,
.work-archive-heading h2 {
	color: #343434;
	font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.25 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	margin: 0;
}

.work-instagram__header a {
	color: #5f5f5f;
	font: 600 0.82rem/1.4 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	text-decoration-color: rgba(52, 52, 52, 0.28);
	text-underline-offset: 3px;
}

.work-instagram__grid {
	display: grid;
	gap: clamp(8px, 1.2vw, 16px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-instagram__tile {
	aspect-ratio: 3 / 4;
	background: #eaedf1;
	box-shadow: 0 1px 0 rgba(52, 52, 52, 0.08);
	display: block;
	overflow: hidden;
}

.work-instagram__card {
	background: #fff;
	min-width: 0;
}

.work-instagram__info {
	background: #fff;
	color: #777;
	font: 400 0.8rem/1.5 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	padding: 14px 16px 16px;
}

.work-instagram__caption {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.work-instagram__tile img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
	width: 100%;
}

.work-instagram__tile:hover img,
.work-instagram__tile:focus-visible img {
	transform: scale(1.018);
}

.work-instagram__tile:focus-visible {
	outline: 2px solid #343434;
	outline-offset: 3px;
}

.work-archive-heading {
	margin: 0 0 16px;
}

.work-filter {
	align-items: end;
	display: grid;
	gap: 8px 14px;
	grid-template-columns: minmax(0, 320px) auto;
	justify-content: start;
	margin: 0 0 20px;
}

.work-filter label {
	color: #343434;
	font: 600 0.78rem/1.4 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	grid-column: 1;
	margin: 0;
}

.work-filter__controls {
	display: flex;
	gap: 8px;
	grid-column: 1;
}

.work-filter__search {
	flex: 1;
	min-width: 0;
	position: relative;
}

.work-filter__search::before {
	border: 1.5px solid #5f5f5f;
	border-radius: 50%;
	content: "";
	height: 11px;
	left: 13px;
	pointer-events: none;
	position: absolute;
	top: 13px;
	width: 11px;
	z-index: 1;
}

.work-filter__search::after {
	background: #5f5f5f;
	content: "";
	height: 1.5px;
	left: 24px;
	pointer-events: none;
	position: absolute;
	top: 25px;
	transform: rotate(45deg);
	transform-origin: left center;
	width: 7px;
	z-index: 1;
}

.work-filter input[type="search"] {
	appearance: none;
	background: #fff;
	border: 1px solid rgba(52, 52, 52, 0.24);
	border-radius: 0;
	box-sizing: border-box;
	color: #343434;
	font: 400 0.9rem/1.4 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	height: 42px;
	min-width: 0;
	padding: 9px 11px 9px 38px;
	width: 100%;
}

.work-filter input[type="search"]:focus-visible {
	border-color: #343434;
	box-shadow: 0 0 0 2px rgba(52, 52, 52, 0.12);
	outline: 0;
}

.work-filter__clear {
	background: #fff;
	border: 1px solid rgba(52, 52, 52, 0.24);
	color: #343434;
	font: 600 0.78rem/1 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	min-height: 42px;
	padding: 0 14px;
}

.work-filter__clear:hover,
.work-filter__clear:focus-visible {
	border-color: #343434;
}

.work-filter__status {
	color: #777;
	font: 400 0.8rem/1.4 Inter, "Open Sans", ui-sans-serif, system-ui, sans-serif;
	grid-column: 2;
	grid-row: 2;
	padding-bottom: 11px;
}

#masonry-container .gutter-sizer {
	display: none;
}

#masonry-container .item {
	background: var(--work-gallery-panel);
	box-shadow: none;
	display: block;
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 100% !important;
}

#masonry-container.work-masonry-ready .item {
	margin-bottom: 18px;
	position: absolute !important;
}

#masonry-container .item > img,
#masonry-container .item .video-shell video {
	background: var(--work-gallery-media);
	display: block;
	height: auto !important;
	max-width: 100%;
	width: 100% !important;
}

#masonry-container .item .thumbs {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	margin-top: 4px;
}

#masonry-container .item .thumbs img,
#masonry-container .item .thumbs.thumbs-1 img,
#masonry-container .item .thumbs.thumbs-2 img,
#masonry-container .item .thumbs.thumbs-3 img,
#masonry-container .item .thumbs.thumbs-4 img {
	border: 0;
	float: none;
	height: clamp(84px, 10vw, 150px);
	object-fit: cover;
	width: 100% !important;
}

#masonry-container .item .info {
	background: var(--work-gallery-panel);
	color: var(--work-gallery-muted);
	font-family: Inter, "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.8rem;
	line-height: 1.5;
	padding: 14px 16px 16px;
}

#masonry-container .item .work-title {
	color: var(--work-gallery-ink);
	font: 600 0.95rem/1.35 Inter, "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 0 6px;
}

#masonry-container .item .work-caption {
	color: var(--work-gallery-muted);
	margin: 0 0 10px;
}

#masonry-container .item .work-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 4px;
}

#masonry-container .item .work-tag {
	color: var(--work-gallery-ink);
	text-decoration-color: rgba(52, 52, 52, 0.28);
	text-underline-offset: 3px;
}

#masonry-container .item .info a {
	color: var(--work-gallery-ink);
	text-decoration-color: rgba(52, 52, 52, 0.28);
	text-underline-offset: 3px;
}

#masonry-container .item .info a:hover,
#masonry-container .item .info a:focus-visible {
	color: var(--work-gallery-ink);
	text-decoration-color: currentColor;
}

.work-load-status {
	color: #777;
	font-size: 0.84rem;
	margin: 12px auto 0;
	max-width: 38rem;
	text-align: center;
}

body.marketing-modal-open {
	overflow: hidden;
}

.marketing-media-modal {
	align-items: center;
	background: rgba(14, 13, 12, 0.95);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: clamp(56px, 9vh, 90px) clamp(18px, 6vw, 96px);
	position: fixed;
	z-index: 20000;
}

.marketing-media-modal__dialog {
	max-height: 100%;
	max-width: 1100px;
	position: relative;
	width: 100%;
}

.marketing-media-modal__content {
	background: #111;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
	max-height: calc(100vh - 112px);
	overflow: auto;
}

.marketing-media-modal__content iframe {
	border: 0;
	display: block;
	height: min(70vh, 680px);
	width: 100%;
}

.marketing-media-modal__content video {
	display: block;
	height: auto;
	max-height: calc(100vh - 112px);
	width: 100%;
}

.marketing-media-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: 300 2rem/1 ui-sans-serif, system-ui, sans-serif;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	position: absolute;
	right: -48px;
	top: -48px;
}

.marketing-media-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 640px) {
	.work-instagram__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#masonry-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#masonry-container .item {
		width: calc(50% - 9px) !important;
	}
}

@media (min-width: 1100px) {
	.work-instagram__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	#masonry-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#masonry-container .item {
		width: calc(33.333333% - 12px) !important;
	}
}

@media (max-width: 720px) {
	body:has(#masonry-container) > header.work-bts-host {
		height: 320px;
	}

	.work-bts__viewport {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.work-bts--hero .work-bts__viewport {
		aspect-ratio: auto;
	}

	.work-bts__caption {
		max-width: calc(100% - 96px);
	}

	.work-bts__previous {
		left: 12px;
	}

	.work-bts__next {
		right: 12px;
	}

	.work-filter {
		align-items: stretch;
		grid-template-columns: minmax(0, 1fr);
	}

	.work-filter__status {
		grid-column: 1;
		grid-row: auto;
		padding-bottom: 0;
	}

	.marketing-media-modal__close {
		right: -10px;
		top: -50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.work-bts *,
	#masonry-container *,
	.marketing-media-modal * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
