/* Portfolio single pages. */
/* Ohio pulls Elementor content out by the page gutter, which only suits content inside its page container. */
/* The Portfolio page is laid out like the archives, so it gets the same fix. */
:is(.elementor-location-single, .elementor-location-archive, .elementor-20700).elementor { margin-left: 0; margin-right: 0; }

/* Screenshots are busier than Ohio's demo photos, so the hero text needs a stronger backdrop. */
.ca-hero .overlay { background: linear-gradient(180deg, rgba(17, 16, 19, .8) 0, rgba(17, 16, 19, 0) 200px), linear-gradient(90deg, rgba(17, 16, 19, .88) 0%, rgba(17, 16, 19, .55) 55%, rgba(17, 16, 19, .25) 100%); }

.ca-app-icon { display: block; width: 72px; height: 72px; border-radius: 16px; margin-bottom: 24px; }

/* Single entry, split like Ohio's project layout 4: screenshots fill the right column, phone screens two to a row. */
/* Most entries have one or two screenshots, so the column is a full-height panel with them centred, not a short strip. */
.project.-layout4.ca-split .project-gallery { display: flex; flex-direction: column; justify-content: center; gap: 24px; min-height: 100vh; padding: calc(var(--clb-header-height) + 24px) 48px 48px; background: #19181c; }
@media (min-width: 768px) { .project.-layout4.ca-split .project-content { min-height: calc(100vh - var(--clb-header-height)); } }
.ca-split .project-gallery .gallery-image { margin: 0; }
.ca-split .project-gallery img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ca-split-tall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* Website names are long single words, so the title is sized to fit them on one or two lines. */
.ca-split .project-title .headline { font-size: clamp(32px, 3.2vw, 56px); overflow-wrap: anywhere; }
/* Phones: Ohio puts the images first; the details come first here, clear of the header, then the screenshots. */
@media (max-width: 767px) {
	.project.-layout4.ca-split .vc_row { flex-direction: column; }
	.project.-layout4.ca-split .project-content { padding-top: var(--clb-header-height); }
	.project.-layout4.ca-split .project-gallery { min-height: 0; padding: 16px; gap: 16px; }
	.ca-split-tall { gap: 16px; }
}
/* With a cover: the 1080x1920 cover fills the whole column, edge to edge and top to bottom, screenshots follow. */
.project.-layout4.ca-split .project-gallery.has-cover { display: block; padding: 0; }
.ca-split-cover { height: 100vh; }
.ca-split .ca-split-cover :is(.gallery-image, img) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ca-split-shots { display: flex; flex-direction: column; gap: 24px; padding: 48px; }
.ca-split [data-ca-lightbox] { cursor: zoom-in; transition: transform .35s ease, filter .35s ease; }
.ca-split [data-ca-lightbox]:is(:hover, :focus-visible) { transform: translateY(-4px); filter: brightness(1.06); }
.ca-split [data-ca-lightbox]:focus-visible { outline: 2px solid var(--clb-color-primary); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 767px) {
	.ca-split-cover { height: auto; padding-top: 0; }
	.ca-split .ca-split-cover img { width: 100%; height: auto; }
	.ca-split-shots { padding: 16px; gap: 16px; }
}
.ca-split .options-group + .button { margin-top: 8px; }
.ca-split .button + .button { margin-left: 32px; }
.ca-hero-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }

.ca-text p:last-child { margin-bottom: 0; }
.ca-text { font-size: 17px; line-height: 1.6; }

.ca-grid .jet-listing-dynamic-repeater__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 40px;
}
.ca-grid .jet-listing-dynamic-repeater__item > :is(.ca-feature, .ca-result) { display: block; }
.ca-feature img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; }
.ca-feature img[src=""] { display: none; }
.ca-feature-title { margin: 0 0 12px; }
.ca-feature-text { margin: 0; opacity: .75; }

.ca-result-value { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; font-weight: 600; margin-bottom: 8px; }
.ca-result-metric { opacity: .75; }

.ca-quote { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; }
.ca-quote-name { font-weight: 600; }
.ca-quote-role { opacity: .75; }

@media (max-width: 1024px) {
	.ca-grid .jet-listing-dynamic-repeater__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ca-grid .jet-listing-dynamic-repeater__items { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.clb__dark_section :is(.ca-text, .ca-quote, .ca-quote-name, .ca-quote-role, .ca-features, .ca-results) { color: #FFFFFFD9; }
.clb__dark_section :is(.ca-feature-title, .ca-result-value) { color: #FFFFFF; }

/* Portfolio archives, sticky metro. Reserving the square lets the grid lay out before the images arrive. */
.ca-archive .portfolio-archive-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
/* Vertical covers: the square shows the street display with the poster's logo. */
.ca-archive .portfolio-archive-image.-cover { object-position: 50% 42%; }
/* The card stops under the fixed header instead of behind it. */
.ca-archive .card-details .holder.-sticky-block { top: calc(var(--clb-header-height, 80px) + 24px); }

/* Home slider. */
/* The home page is only the slider, so it must not scroll: the scroll label would move under the fixed switcher. The admin bar's height is taken off for signed-in users. */
/* The slider sets its own height on load, so this one has to override it. */
.home.admin-bar .page-content .elementor > .e-con,
.home.admin-bar .portfolio-projects.-full-vh,
.home.admin-bar .portfolio-onepage-slider,
.home.admin-bar .portfolio-projects.-full-vh .portfolio-item.-full-vh { min-height: 0; height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)) !important; }
/* The menu crosses the split between the dark panel and the image, and has to stay readable on any image. */
.home .grid_5 .portfolio-item-image::after { content: ""; position: absolute; inset: 0 0 auto; height: 200px; background: linear-gradient(180deg, rgba(17, 16, 19, .8) 0%, rgba(17, 16, 19, 0) 100%); pointer-events: none; }
/* Below wide desktop, Ohio moves the arrows to the bottom left, onto the search button and the project link. They sit above the colour switcher instead, clear of the social links along the bottom. */
@media (max-width: 1180px) {
	.home .portfolio-onepage-slider .clb-slider-nav-btn { left: auto; right: calc(var(--clb-spacer) + 44px); bottom: calc(var(--clb-spacer) + 48px); }
}
/* Our slides have no date, so its separator goes with it. */
.home .grid_5 .headline-meta .date:empty { display: none; }
/* The vertical covers fill the visible half beside the panel, on desktops and on landscape tablets alike. */
@media (min-width: 1025px), (min-width: 769px) and (orientation: landscape) {
	.home .grid_5 .portfolio-item-image { left: 50%; width: 50%; }
}
/* Portrait tablets and phones stack the slide: the text sits at the foot of the upper part (Ohio aligns it to the
   bottom of its panel), the cover fills the rest. Phones give the text a little more room for a two-line title. */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 768px) {
	.home .grid_5 .portfolio-item { --ca-slide-text: 48%; }
	.home .grid_5 .portfolio-item .overlay { width: 100%; height: var(--ca-slide-text); }
	.home .grid_5 .portfolio-item .overlay .project-content { height: 100%; }
	.home .grid_5 .portfolio-item-image { top: var(--ca-slide-text); height: calc(100% - var(--ca-slide-text)); }
	.home .grid_5 .portfolio-item-image::after { display: none; }
}
@media (max-width: 600px) {
	.home .grid_5 .portfolio-item { --ca-slide-text: 55%; }
}
/* Short phones keep the type, name and link; the short description would push the text under the menu bar. */
@media (max-width: 600px) and (max-height: 720px) {
	.home .grid_5 .project-content .project-details { display: none; }
}
/* Each cover's poster sits at its middle (rebuild_far_covers.py), so the crop stays centred at every size. */
.home .grid_5 .portfolio-item-image { background-position: 50% 50%; }

/* A gallery with one screenshot fills the width in the screenshots' own 1680x1050 shape. */
.elementor-location-single .e-gallery-grid:has(> .e-gallery-item:only-child) { --columns: 1 !important; --aspect-ratio: 62.5% !important; }
