/**
 * Mathieu Brelière — Cargo global CSS
 * Clean performance version
 * Preserves:
 * - desktop: hamburger hidden
 * - mobile: fixed white top bar + centered menu button
 * - mobile menu pushed below bar
 * - homepage: 2 columns desktop / 1 column mobile
 * - desktop hover titles / mobile visible titles
 * - Cargo Quick View
 */

/* ------------------------------------------------------------
   Variables
------------------------------------------------------------ */

:root {
	--text: rgba(0, 0, 0, 0.85);
	--muted: rgba(0, 0, 0, 0.4);
	--accent: #33348e;
	--active: #ff4a00;
	--white: #fff;
	--dark-panel: rgba(20, 20, 20, 0.96);
	--font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif, Icons;
	--font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, Icons;
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	background: var(--white);
	color: #000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
small:hover {
	color: var(--accent);
	text-decoration: none;
}

a:active {
	opacity: 0.7;
}

.page a.active {
	color: var(--active);
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
}

sub { top: 0.3em; }
sup { top: -0.4em; }
s { text-decoration: line-through; }

img,
video,
picture,
media-item {
	display: block;
	max-width: 100%;
}

img {
	border: 0;
	padding: 0;
	height: auto;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 2.5em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	background: #000;
}

.content img {
	float: none;
	margin-bottom: 0;
}

.content img.image-zoom:active {
	opacity: 0.7;
}

/* ------------------------------------------------------------
   Predefined Cargo typography
------------------------------------------------------------ */

.gallery_image_caption,
.thumbnails .tags {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	font-family: var(--font-ui);
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.3;
	color: var(--muted);
}

[data-predefined-style="true"] bodycopy {
	font-family: "Nitti Grotesk", Icons;
	font-size: 1.6rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.3;
	color: var(--text);
}

[data-predefined-style="true"] bodycopy a {
	color: var(--text);
	padding-bottom: 0.1em;
	border-bottom: 0 solid rgba(127, 127, 127, 0.2);
	text-decoration: none;
}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1,
[data-predefined-style="true"] h2 {
	padding: 0;
	margin: 0;
	font-style: normal;
	font-weight: 400;
	color: var(--text);
}

[data-predefined-style="true"] h1 {
	font-family: "Social Variable", Icons;
	font-size: 1.2rem;
	line-height: 1.2;
	font-variation-settings: "wdth" 100, "slnt" 0;
}

[data-predefined-style="true"] h2 {
	font-family: "Alegreya Sans", Icons;
	font-size: 1rem;
	line-height: 1;
}

[data-predefined-style="true"] h1 a,
[data-predefined-style="true"] h2 a {
	color: var(--text);
}

[data-predefined-style="true"] small {
	display: inline-block;
	font-family: Paysage, Icons;
	font-size: 1.1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	color: var(--text);
}

[data-predefined-style="true"] small a {
	color: #000;
	border-bottom-width: 0;
}

/* ------------------------------------------------------------
   Cargo layout
------------------------------------------------------------ */

.loading[data-loading] {
	position: fixed;
	bottom: 8px;
	left: 8px;
}

[data-css-preset] body {
	background-color: transparent /*!body_bgcolor*/;
}

[data-css-preset] .page {
	background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 10px;
	background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
	margin-left: auto /*!content_center*/;
	margin-right: auto /*!content_center*/;
	text-align: left /*!text_left*/;
}

[data-css-preset] .container_width {
	width: 65% /*!content_center*/;
}

[data-css-preset] .content_padding {
	padding: 1.6rem /*!main_margin*/;
}

[data-css-preset] text-limit {
	display: inline-block /*!text_width*/;
	max-width: 66rem /*!text_width*/;
}

/* ------------------------------------------------------------
   Cargo thumbnails
------------------------------------------------------------ */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
	background-color: transparent /*!thumbnails_bgcolor*/;
}

[data-css-preset] .thumbnails_width {
	width: 60% /*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad],
[data-css-preset] [responsive-layout] [thumbnails-pad] {
	padding: 0.5rem /*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter],
[data-css-preset] [responsive-layout] [thumbnails-gutter] {
	margin: -1rem /*!thumbnails_padding*/;
}

.thumbnails .thumb_image {
	outline: 0 solid rgba(0, 0, 0, 0.12);
	outline-offset: -1px;
}

.thumbnails .title {
	margin-top: 0.8rem;
	margin-bottom: 0.2rem;
	font-family: var(--font-ui);
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	color: var(--text);
}

.thumbnails .tags a {
	color: rgba(0, 0, 0, 0.35);
	border-bottom: 0;
	text-decoration: none;
}

.thumbnails .has_title .tags {
	margin-top: 0;
}

/* ------------------------------------------------------------
   Site menu
------------------------------------------------------------ */

#site_menu_button,
[data-css-preset] #site_menu_button {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

#site_menu {
	position: relative;
	display: flex;
	justify-content: flex-start;
	min-width: 300px;
	max-width: 400px;
	padding: 20px 30px 90px;
	background: rgba(20, 20, 20, 0.95);
	font-family: var(--font-system);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	text-align: left;
}

#site_menu .page-link a,
#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
	font-weight: 700;
}

#site_menu a:active {
	opacity: 0.7;
}

#site_menu a.active {
	opacity: 0.4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	font-size: 45px;
	line-height: 0.85;
}

#site_menu .break { height: 28px; }
#site_menu .indent { margin-left: 28px; }

/* ------------------------------------------------------------
   Shop / product widgets
------------------------------------------------------------ */

[data-css-preset] #shop_button {
	position: fixed;
	top: 2rem /*!shop_button*/;
	right: 2rem /*!shop_button*/;
	padding: 6px;
	background: transparent;
	color: var(--text);
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
}

#shop_button.text,
.shop_product .price,
.shop_product .dropdown,
.shop_product .button {
	font-family: var(--font-ui);
	font-style: normal;
	font-weight: 400;
}

#shop_button.text {
	padding: 0;
	font-size: 2rem;
	color: var(--text);
}

#shop_button.custom_icon {
	width: 40px;
	height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
	font-size: 36px;
}

.shop_product {
	position: relative;
	display: block;
	width: 100%;
	max-width: 22rem;
}

.shop_product .price {
	display: block;
	margin-bottom: 1rem;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--text);
}

.shop_product .dropdown {
	display: inline-block;
	width: 100%;
	margin-bottom: 1rem;
	padding: 0.6rem 2.6rem 0.7rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff url(https://static.cargo.site/assets/images/select-line-arrows.svg) no-repeat right;
	font-size: 1.6rem;
	line-height: 1.4;
	color: var(--text);
}

.shop_product .button {
	display: inline-block;
	flex: 0 0 50%;
	padding: 0.8rem 1rem 0.9rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	text-align: left;
}

/* ------------------------------------------------------------
   Quick View
------------------------------------------------------------ */

[data-css-preset] .quick-view {
	width: 82% /*!quick_view_width*/;
	height: 82% /*!quick_view_height*/;
	margin: auto /*!quick_view_center_center*/;
	padding: 1.5rem /*!quick_view_padding*/;
}

body.mobile .quick-view {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0.8rem;
}

[data-css-preset] .quick-view-background {
	background: rgba(0, 0, 0, 0.86) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 3.5rem 0;
	font-family: var(--font-ui);
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	transition: opacity 100ms ease-in-out;
}

.quick-view-caption span {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
}

.quick-view-navigation .left-arrow { left: 10px; }
.quick-view-navigation .right-arrow { right: 10px; }

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow,
.quick-view-navigation .close-button,
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow,
.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
	width: 36px;
	height: 36px;
}

.quick-view-navigation .close-button {
	top: 10px;
	right: 10px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color,
.quick-view-navigation .close-button .inner-color,
.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color,
.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color,
.quick-view-navigation .close-button .outer-color {
	stroke: transparent;
	stroke-width: 2.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color,
.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
	stroke: rgba(0, 0, 0, 0.6);
	stroke-width: 2.5px;
}

/* ------------------------------------------------------------
   Feed / utilities / audio
------------------------------------------------------------ */

.feed .content_container .page,
.feed .content_container .page_container:first-child .page {
	border-top: 0;
}

.rotate {
	display: inline-block;
	animation: rotate 7s linear infinite;
}

@keyframes rotate {
	to { transform: rotate(360deg); }
}

.audio-player {
	max-width: 36rem;
	height: 3.3rem;
	margin: 1px 1px 1em;
	outline: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	color: rgba(0, 0, 0, 0.6);
	font-family: var(--font-system);
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
}

body.mobile .audio-player {
	max-width: 100%;
}

.audio-player .separator { width: 1px; background: rgba(0, 0, 0, 0.15); }
.audio-player .button { background: transparent; cursor: pointer; fill: var(--text); }
.audio-player .icon { width: 100%; margin: auto; padding: 30%; fill: var(--text); }
.audio-player .buffer { background: rgba(0, 0, 0, 0.03); }
.audio-player .progress { background: rgba(0, 0, 0, 0.1); }
.audio-player .note-icon { width: 3.8rem; height: 100%; padding: 1rem; fill: rgba(0, 0, 0, 0.5); }
.audio-player .current-time { padding-left: 1rem; }
.audio-player .total-time { padding-right: 1rem; }

.audio-player .progress-indicator {
	position: absolute;
	right: 0;
	width: 1px;
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.7);
	cursor: ew-resize;
}

.hover-title {
	display: inline;
	cursor: pointer;
	pointer-events: auto;
}

.hover-image {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: -1;
	display: flex;
	width: 90vw;
	height: 90vh;
	visibility: hidden;
	transform: translate(-50%, -50%);
	pointer-events: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

body:not(.mobile) .hover-title:hover + .hover-image {
	visibility: visible;
}

.hover-image img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin-bottom: 0;
}

/* ------------------------------------------------------------
   Homepage grid
------------------------------------------------------------ */

.home-title-row,
.selected-works-row {
	margin-top: 0;
	margin-bottom: 0;
}

.home-section-title {
	margin: 0;
	padding: 0;
	line-height: 1;
}

.home-recent-header {
	display: none !important;
}

.home-recent-section,
.home-grid-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 72rem;
	margin-left: 0;
	margin-right: auto;
	padding: 0;
}

.home-scroll-grid,
.video-gallery {
	display: grid;
	gap: 0.75rem;
}

.home-scroll-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	margin: 0;
	align-items: start;
	box-sizing: border-box;
}

.video-thumb {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	isolation: isolate;
	contain: paint;
	background: #f5f5f5;
	color: inherit;
	line-height: 0;
	text-decoration: none;
	vertical-align: top;
}

.video-thumb > * {
	display: block;
}

.home-scroll-grid .video-thumb {
	aspect-ratio: 16 / 9;
}

.home-scroll-grid .video-thumb > *,
.home-scroll-grid .video-thumb img,
.home-scroll-grid .video-thumb media-item,
.home-scroll-grid .video-thumb video,
.home-scroll-grid .video-thumb picture {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: var(--pos, center center) !important;
}

.video-thumb::before,
.video-thumb::after {
	position: absolute;
	pointer-events: none;
	opacity: 0;
}

.video-thumb::after {
	content: "";
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.34);
	transition: opacity 260ms ease;
}

.video-thumb::before {
	content: attr(data-title);
	top: 50%;
	left: 50%;
	z-index: 2;
	width: calc(100% - 2.4rem);
	transform: translate(-50%, -48%);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	transition: opacity 260ms ease, transform 260ms ease;
}

.video-thumb img,
.video-thumb media-item,
.video-thumb video,
.video-thumb picture {
	height: auto;
	transition: transform 320ms ease, opacity 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.video-thumb:hover::after,
	.video-thumb:hover::before {
		opacity: 1;
	}

	.video-thumb:hover::before {
		transform: translate(-50%, -50%);
	}

	.video-thumb:hover img,
	.video-thumb:hover media-item,
	.video-thumb:hover video,
	.video-thumb:hover picture {
		opacity: 0.96;
		transform: scale(1.01);
	}
}

/* ------------------------------------------------------------
   Tablet
------------------------------------------------------------ */

@media (max-width: 900px) {
	[data-css-preset] .container_width {
		width: 82% /*!content_center*/;
	}

	.home-recent-section,
	.home-grid-wrap {
		max-width: 100%;
	}

	.home-scroll-grid {
		gap: 0.65rem;
	}
}

/* ------------------------------------------------------------
   Mobile
------------------------------------------------------------ */

@media (max-width: 700px) {
	[data-css-preset] .container_width {
		width: 100% /*!content_center*/;
	}

	[data-css-preset] .content_padding {
		padding: 4.1rem 1rem 1rem /*!main_margin*/;
	}

	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 99990;
		width: 100vw;
		height: 3.25rem;
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
		pointer-events: none;
	}

	#site_menu_button,
	[data-css-preset] #site_menu_button,
	body.mobile #site_menu_button,
	.mobile #site_menu_button,
	[data-css-preset].mobile #site_menu_button {
		position: fixed !important;
		top: 0 !important;
		left: 50% !important;
		right: auto !important;
		z-index: 100000 !important;
		display: flex !important;
		visibility: visible !important;
		width: auto !important;
		height: 3.25rem !important;
		margin: 0 !important;
		padding: 0 0.7rem !important;
		transform: translateX(-50%) !important;
		align-items: center !important;
		justify-content: center !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		color: rgba(0, 0, 0, 0.9) !important;
		font-size: 25px !important;
		line-height: 1 !important;
		mix-blend-mode: normal !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	#site_menu_button::after {
		content: "MENU";
		margin-left: 0.55rem;
		color: rgba(0, 0, 0, 0.72);
		font-family: var(--font-ui);
		font-size: 8.5px;
		font-weight: 400;
		line-height: 1;
		letter-spacing: 0.16em;
	}

	#site_menu {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		padding: 6.4rem 24px 90px !important;
		background: var(--dark-panel) !important;
	}

	#site_menu::before {
		content: "";
		position: absolute;
		top: 4.65rem;
		left: 24px;
		right: 24px;
		height: 1px;
		background: rgba(255, 255, 255, 0.25);
		pointer-events: none;
	}

	#site_menu .page-link:first-of-type,
	#site_menu .set-link:first-of-type {
		margin-top: 0.4rem !important;
	}

	body.mobile #site_menu .close,
	.mobile #site_menu .close {
		display: block;
		font-size: 50px;
		line-height: 1;
	}

	.home-recent-section,
	.home-grid-wrap {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0;
	}

	.home-scroll-grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
		width: 100%;
		margin: 0;
	}

	.home-scroll-grid .video-thumb {
		width: 100%;
	}

	.video-thumb::after {
		opacity: 1;
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.02) 0%,
			rgba(0, 0, 0, 0.08) 45%,
			rgba(0, 0, 0, 0.38) 100%
		);
	}

	.video-thumb::before,
	.home-scroll-grid .video-thumb::before {
		top: auto;
		left: 1rem;
		right: 1rem;
		bottom: 0.85rem;
		width: auto;
		transform: none;
		opacity: 1;
		color: #fff;
		font-size: 10px;
		line-height: 1.25;
		letter-spacing: 0.11em;
		text-align: left;
	}

	.video-thumb:hover::before,
	.video-thumb:hover img,
	.video-thumb:hover media-item,
	.video-thumb:hover video,
	.video-thumb:hover picture {
		transform: none;
	}

	.video-thumb:hover img,
	.video-thumb:hover media-item,
	.video-thumb:hover video,
	.video-thumb:hover picture {
		opacity: 1;
	}

	body.mobile .quick-view-caption,
	.mobile .quick-view-caption {
		margin: 2rem 0;
		font-size: 1.1rem;
	}
}

/* ------------------------------------------------------------
   Small mobile
------------------------------------------------------------ */

@media (max-width: 430px) {
	[data-css-preset] .content_padding {
		padding-top: 4rem /*!main_margin*/;
		padding-left: 0.8rem /*!main_margin*/;
		padding-right: 0.8rem /*!main_margin*/;
	}

	.home-scroll-grid {
		gap: 0.75rem;
	}

	.video-thumb::before,
	.home-scroll-grid .video-thumb::before {
		left: 0.85rem;
		right: 0.85rem;
		bottom: 0.75rem;
		font-size: 9.5px;
		letter-spacing: 0.105em;
	}
}

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.rotate {
		animation: none;
	}

	.video-thumb img,
	.video-thumb media-item,
	.video-thumb video,
	.video-thumb picture,
	.video-thumb::before,
	.video-thumb::after,
	.quick-view-caption {
		transition: none;
	}
}
.home-grid-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 28px clamp(16px, 2.5vw, 40px) 60px;
}

.home-scroll-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(14px, 1.8vw, 28px);
  row-gap: clamp(18px, 2.5vw, 36px);

  width: 100%;
  max-width: none;
  margin: 0 auto;

  overflow: visible !important;
  transform: none !important;
}

.home-scroll-grid .video-thumb {
  display: block;
  width: 100%;
  min-width: 0 !important;
  text-decoration: none;
}

/* Remove titles below thumbnails */
.home-scroll-grid .video-thumb::after {
  content: none !important;
  display: none !important;
}

.home-scroll-grid .video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.home-scroll-grid .video-thumb:hover img {
  opacity: 0.9;
}

/* Tablet */
@media (max-width: 1000px) {
  .home-grid-wrap {
    padding: 20px 16px 48px;
  }

  .home-scroll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 20px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .home-grid-wrap {
    padding: 16px 12px 40px;
  }

  .home-scroll-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}
.home-hero {
  width: calc(100% - 36px);
  aspect-ratio: 16 / 9;
  margin: 0 18px 1px;
}

.home-hero iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* ------------------------------------------------------------
   Homepage video and project grid
------------------------------------------------------------ */

.home-grid-wrap {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Homepage Vimeo video */
.home-hero {
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  margin: 0 0 18px;
  padding: 0;

  overflow: hidden;
  background: #000;
  line-height: 0;
}

.home-hero iframe {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;
  border: 0;
}

/* Three-column grid */
.home-scroll-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  column-gap: 18px;
  row-gap: 18px;

  box-sizing: border-box;
  align-items: start;

  overflow: visible !important;
  transform: none !important;
}

/* Individual thumbnail */
.home-scroll-grid .video-thumb {
  position: relative;
  display: block;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;
  background: #f5f5f5;
  line-height: 0;
  text-decoration: none;
}

/* Remove all thumbnail titles and overlays */
/* Dark overlay */
.home-scroll-grid .video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block !important;
  background: rgba(0, 0, 0, 0.34);

  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

/* Hover title */
.home-scroll-grid .video-thumb::before {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  display: block !important;
  width: calc(100% - 40px);

  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;

  opacity: 0;
  transform: translate(-50%, -45%);
  pointer-events: none;

  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .home-scroll-grid .video-thumb:hover::after,
  .home-scroll-grid .video-thumb:hover::before {
    opacity: 1;
  }

  .home-scroll-grid .video-thumb:hover::before {
    transform: translate(-50%, -50%);
  }
}

/* Make Cargo images fill each thumbnail */
.home-scroll-grid .video-thumb > *,
.home-scroll-grid .video-thumb img,
.home-scroll-grid .video-thumb media-item,
.home-scroll-grid .video-thumb picture,
.home-scroll-grid .video-thumb video {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center center !important;
}

/* Subtle desktop hover */
@media (hover: hover) and (pointer: fine) {
  .home-scroll-grid .video-thumb img,
  .home-scroll-grid .video-thumb media-item,
  .home-scroll-grid .video-thumb picture,
  .home-scroll-grid .video-thumb video {
    transition: opacity 0.25s ease;
  }

  .home-scroll-grid .video-thumb:hover img,
  .home-scroll-grid .video-thumb:hover media-item,
  .home-scroll-grid .video-thumb:hover picture,
  .home-scroll-grid .video-thumb:hover video {
    opacity: 0.9;
    transform: none !important;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .home-scroll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
  }

  .home-hero {
    margin-bottom: 16px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .home-scroll-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
  }

  .home-hero {
    margin-bottom: 12px;
  }
}
.home-hero {
  position: relative;
}

.home-hero iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero-click-target {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
}
.video-thumb img,
.video-thumb media-item {
  transition: filter 0.25s ease;
}

.video-thumb:hover img,
.video-thumb:hover media-item {
  filter: grayscale(100%) brightness(55%);
}