:root {
	--peretz-blue: #0a8ece;
	--peretz-ink: #0c1b22;
	--peretz-paper: #eef3f5;
	--peretz-line: #8f999d;
	--peretz-white: #fff;
}

html {
	scroll-behavior: smooth;
}

.peretz-selected-projects,
.peretz-projects-archive,
.peretz-single-project {
	color: var(--peretz-ink);
	font-family: "Open Sans", Arial, sans-serif;
}

.peretz-selected-projects {
	background: var(--peretz-white);
	overflow: hidden;
	padding: clamp(38px, 5vw, 74px) 0 clamp(34px, 4vw, 58px);
	width: 100%;
}

.peretz-section-heading,
.peretz-projects-all {
	display: grid;
	grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
	gap: clamp(16px, 2vw, 30px);
	align-items: center;
	margin-inline: clamp(20px, 2vw, 42px);
}

.peretz-section-heading span,
.peretz-projects-all > span {
	border-top: 1px solid var(--peretz-line);
}

.peretz-section-heading h2 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(27px, 3vw, 45px);
	font-weight: 400;
	letter-spacing: .01em;
	line-height: 1;
	margin: 0;
	text-align: center;
}

.peretz-projects-slider {
	margin-top: clamp(30px, 3vw, 52px);
	overflow: visible;
	padding-bottom: 54px;
	width: 100%;
}

.peretz-projects-slider .swiper-wrapper {
	align-items: stretch !important;
}

.peretz-projects-slider .peretz-project-slide {
	align-self: stretch !important;
	display: block;
	height: clamp(330px, 42vw, 610px) !important;
	max-width: 820px;
	width: min(72vw, 820px) !important;
}

.peretz-project-slide__link {
	background: #d9dee0;
	display: block;
	height: 100% !important;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.peretz-project-slide__image,
.peretz-project-slide__placeholder {
	display: block;
	height: 100% !important;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: filter .4s ease, transform .8s ease;
	width: 100% !important;
}

.peretz-project-slide__placeholder,
.peretz-project-card__placeholder,
.peretz-project-intro__placeholder {
	background: linear-gradient(135deg, #cad5d9, #eef1f1);
}

.peretz-project-slide__shade {
	background: linear-gradient(180deg, rgba(7, 18, 24, .08), rgba(7, 18, 24, .56));
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .4s ease;
}

.peretz-project-slide__content {
	align-items: center;
	color: var(--peretz-white);
	display: flex;
	flex-direction: column;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 28px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	transform: translateY(14px);
	transition: opacity .4s ease, transform .4s ease;
}

.swiper-slide-active .peretz-project-slide__shade,
.swiper-slide-active .peretz-project-slide__content {
	opacity: 1;
}

.swiper-slide-active .peretz-project-slide__content {
	transform: translateY(0);
}

.swiper-slide-active .peretz-project-slide__image {
	transform: scale(1.02);
}

.peretz-project-slide__logo {
	max-height: 126px;
	max-width: min(65%, 360px);
	object-fit: contain;
	width: auto;
}

.peretz-project-slide__title {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(25px, 2.4vw, 38px);
	line-height: 1.1;
	margin-top: 12px;
}

.peretz-project-slide__description {
	font-size: clamp(13px, 1.2vw, 17px);
	margin-top: 8px;
}

.peretz-button {
	align-items: center;
	border: 1px solid currentColor;
	border-radius: 7px;
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 10px 28px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.peretz-project-slide__content .peretz-button {
	margin-top: clamp(18px, 3vw, 42px);
}

.peretz-button--light {
	color: var(--peretz-white);
}

.peretz-button--outline {
	background: transparent;
	color: var(--peretz-ink);
}

.peretz-button--primary {
	background: var(--peretz-blue);
	border-color: var(--peretz-blue);
	color: var(--peretz-white);
}

.peretz-button:hover,
.peretz-button:focus-visible {
	background: var(--peretz-ink);
	border-color: var(--peretz-ink);
	color: var(--peretz-white);
}

.peretz-projects-slider .swiper-pagination {
	bottom: 14px;
}

.peretz-projects-slider .swiper-pagination-bullet {
	background: transparent;
	border: 1px solid #526269;
	height: 12px;
	margin: 0 4px !important;
	opacity: 1;
	width: 12px;
}

.peretz-projects-slider .swiper-pagination-bullet-active {
	background: var(--peretz-ink);
}

.peretz-projects-all {
	margin-top: 35px;
}

.peretz-page-hero {
	background: var(--peretz-paper);
	padding: clamp(60px, 9vw, 60px) max(24px, calc((100vw - 1240px) / 2));
	text-align: center;
}

.peretz-page-hero__eyebrow,
.peretz-project-section__eyebrow {
	color: var(--peretz-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	margin: 0 0 12px;
}

.peretz-page-hero h1,
.peretz-project-section h2,
.peretz-project-intro h1 {
	font-family: "Open Sans", Arial, sans-serif;
	font-weight: 400;
}

.peretz-page-hero h1 {
	font-size: clamp(38px, 6vw, 58px);
	line-height: 1;
	margin: 0;
}

.peretz-projects-grid {
	display: grid;
	gap: clamp(30px, 3vw, 58px) clamp(18px, 2vw, 38px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	max-width: none;
	padding: clamp(50px, 6vw, 90px) clamp(20px, 3vw, 58px);
	width: 100%;
}

.peretz-project-card__title {
	font-size: clamp(20px, 1.7vw, 27px);
	font-weight: 500;
	margin: 0 0 14px;
}

.peretz-project-card__link {
	aspect-ratio: 1.35;
	background: #d9dee0;
	display: block;
	overflow: hidden;
	position: relative;
}

.peretz-project-card__image,
.peretz-project-card__placeholder {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .55s ease;
	width: 100%;
}

.peretz-project-card__overlay {
	align-items: center;
	background: rgba(4, 21, 29, .67);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 28px;
	position: absolute;
	transition: opacity .3s ease;
}

.peretz-project-card__link:hover .peretz-project-card__overlay,
.peretz-project-card__link:focus-visible .peretz-project-card__overlay {
	opacity: 1;
}

.peretz-project-card__link:hover .peretz-project-card__image,
.peretz-project-card__link:focus-visible .peretz-project-card__image {
	transform: scale(1.035);
}

.peretz-project-card__logo {
	max-height: 110px;
	max-width: 70%;
	object-fit: contain;
	width: auto;
}

.peretz-project-card__name {
	color: var(--peretz-white);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 30px;
	text-align: center;
}

.peretz-load-more-wrap {
	padding: 0 24px 80px;
	text-align: center;
}

.peretz-load-more:disabled {
	cursor: wait;
	opacity: .55;
}

.peretz-load-more-status {
	font-size: 18px;
	margin: 10px 0 0;
}

.peretz-projects-empty {
	grid-column: 1 / -1;
	margin: 30px auto;
	text-align: center;
}

.peretz-project-nav {
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #dde2e4;
	left: 0;
	min-height: var(--peretz-project-nav-height);
	position: fixed;
	right: 0;
	top: var(--peretz-header-height);
	z-index: 900;
}

.admin-bar .peretz-project-nav {
	top: calc(var(--peretz-header-height) + 32px);
}

.peretz-project-nav__inner {
	display: flex;
	gap: clamp(18px, 3vw, 46px);
	justify-content: center;
	margin: 0 auto;
	max-width: none;
	overflow-x: auto;
	padding: 17px 24px;
	scrollbar-width: thin;
}

.peretz-project-nav a {
	color: var(--peretz-ink);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.peretz-project-nav a:hover,
.peretz-project-nav a:focus-visible {
	color: var(--peretz-blue);
}

.peretz-project-section {
	background: var(--peretz-white);
	border-top: 1px solid #d8e1e5;
	color: var(--peretz-ink);
	scroll-margin-top: calc(var(--peretz-header-height) + var(--peretz-project-nav-height) + 20px);
}

.peretz-project-intro {
	box-sizing: border-box;
	display: grid;
	gap: clamp(32px, 5vw, 76px);
	grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr);
	margin: 0;
	max-width: none;
	min-width: 0;
	min-height: 0;
	padding: clamp(55px, 6vw, 96px) clamp(22px, 4vw, 72px);
	width: 100%;
	border-top: 0;
}

.peretz-project-intro__media {
	aspect-ratio: 4 / 3;
	background: #d9dee0;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	width: 100%;
}

.peretz-project-intro__image,
.peretz-project-intro__placeholder {
	display: block;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	width: 100%;
}

.peretz-project-intro__content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 20px 0;
	width: 100%;
}

.peretz-project-intro__logo {
	max-height: 130px;
	max-width: min(100%, 340px);
	object-fit: contain;
	object-position: right center;
	width: auto;
}

.peretz-project-intro h1 {
	font-size: clamp(36px, 5vw, 52px);
	line-height: 1;
	margin: 20px 0 26px;
}

.peretz-rich-text {
	font-size: 17px;
	line-height: 1.85;
}

.peretz-rich-text > :first-child {
	margin-top: 0;
}

.peretz-rich-text > :last-child {
	margin-bottom: 0;
}

.peretz-project-section--tinted {
	background: var(--peretz-paper);
}

.peretz-project-section--dark {
	background: var(--peretz-white);
	color: var(--peretz-ink);
}

.peretz-project-section__inner {
	box-sizing: border-box;
	margin: 0;
	max-width: none;
	padding: clamp(58px, 7vw, 105px) clamp(22px, 4vw, 72px);
	width: 100%;
}

.peretz-project-section h2 {
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1.1;
	margin: 0 0 clamp(28px, 4vw, 52px);
	text-align: center;
}

.peretz-project-download {
	align-items: center;
	display: flex;
	flex-direction: column;
    text-align: center;
    row-gap: 15px;
}

.peretz-project-download h2 {
	margin-bottom: 0;
}

.peretz-models-content {
	overflow-x: auto;
}

.peretz-models-content table {
	border-collapse: collapse;
	width: 100%;
}

.peretz-models-content td,
.peretz-models-content th {
	border: 1px solid #cbd3d6;
	padding: 14px 18px;
	text-align: right;
}

.peretz-models-content th {
	background: var(--peretz-paper);
}

.peretz-project-gallery-slider {
	overflow: hidden;
	width: 100%;
}

.peretz-project-gallery__item {
	aspect-ratio: 16 / 7;
	display: block;
	overflow: hidden;
	width: 100%;
}

.peretz-gallery-controls {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: 44px minmax(100px, 220px) 44px;
	justify-content: center;
	margin-top: 26px;
}

.peretz-gallery-controls button {
	background: transparent;
	/* border: 1px solid currentColor; */
	border:none;
	/* border-radius: 50%; */
	color: inherit;
	cursor: pointer;
	font-size: 20px;
	/* height: 44px; */
	padding: 0;
	/* width: 44px; */
}
.peretz-gallery-controls button:hover {
	background: transparent;
	color: var(--peretz-blue);
}
.peretz-gallery-pagination {
	position: static !important;
}

.peretz-gallery-pagination .swiper-pagination-bullet {
	background: var(--peretz-ink);
}

.peretz-project-gallery__item img {
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease, transform .45s ease;
	width: 100%;
}

.peretz-project-gallery__item:hover img,
.peretz-project-gallery__item:focus-visible img {
	opacity: .85;
	transform: scale(1.03);
}

.peretz-project-map iframe {
	border: 0;
	display: block;
	height: min(60vh, 450px);
	width: 100%;
}

.peretz-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, .91);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 50px;
	position: fixed;
	z-index: 100000;
}

.peretz-lightbox[hidden] {
	display: none;
}

.peretz-lightbox__image {
	max-height: calc(100vh - 80px);
	max-width: calc(100vw - 80px);
	object-fit: contain;
}

.peretz-lightbox__close {
	background: transparent;
	border: 0;
	color: var(--peretz-white);
	cursor: pointer;
	font-size: 48px;
	line-height: 1;
	padding: 10px;
	position: absolute;
	right: 18px;
	top: 10px;
}

.peretz-lightbox-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.peretz-projects-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.peretz-project-intro {
		grid-template-columns: 1fr;
	}

	.peretz-project-intro__media {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

}

@media (max-width: 767px) {
	.admin-bar .peretz-project-nav {
		top: calc(var(--peretz-header-height) + 46px);
	}

	.peretz-section-heading,
	.peretz-projects-all {
		gap: 12px;
		margin-inline: 16px;
	}

	.peretz-projects-slider .peretz-project-slide {
		height: 430px !important;
		width: 86vw !important;
	}

	.peretz-project-slide__content {
		padding: 22px;
	}

	.peretz-project-slide__logo {
		max-height: 90px;
	}

	.peretz-projects-all > span {
		display: none;
	}

	.peretz-projects-all {
		display: flex;
		justify-content: center;
	}

	.peretz-projects-grid {
		gap: 34px;
		grid-template-columns: 1fr;
		padding-inline: 20px;
	}

	.peretz-project-nav__inner {
		justify-content: flex-start;
	}

	.peretz-project-intro__content,
	.peretz-project-section__inner {
		padding-inline: 22px;
	}

	.peretz-project-intro {
		gap: 30px;
		padding: 42px 18px 54px;
	}

	.peretz-project-intro__content {
		padding: 0;
	}

	.peretz-project-gallery__item {
		aspect-ratio: 4 / 3;
	}

	.peretz-project-download {
		align-items: flex-start;
		flex-direction: column;
		gap: 26px;
	}


	.peretz-lightbox {
		padding: 20px;
	}

	.peretz-lightbox__image {
		max-height: calc(100vh - 40px);
		max-width: calc(100vw - 40px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.peretz-project-slide__content,
	.peretz-project-slide__image,
	.peretz-project-slide__shade,
	.peretz-project-card__image,
	.peretz-project-card__overlay,
	.peretz-project-gallery__item img {
		transition: none;
	}
}
