/* Montoya Portfolio Builder - Frontend Stylesheet */

/* Main Container Spacing */
.portfolio-builder-content {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 40px 120px 40px;
	box-sizing: border-box;
}

/* Individual Row Alignment */
.portfolio-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 120px;
	position: relative;
	box-sizing: border-box;
}

.portfolio-row:last-child {
	margin-bottom: 40px;
}

.portfolio-row .pb-col {
	box-sizing: border-box;
}

/* --- 1 Column Row Layouts --- */
.pb-row-1col {
	justify-content: center;
}

.pb-row-1col .pb-col-wrap {
	width: 100%;
}

/* Editorial Text layout - narrower reading width, elegant typography */
.pb-row-1col.pb-row-type-text .pb-col-wrap {
	max-width: 860px;
	margin: 0 auto;
	text-align: left;
}

/* Large Full Width Image layout */
.pb-row-1col.pb-row-type-image .pb-col-wrap {
	max-width: 100%;
}

/* --- 2 Column Row Layouts --- */

/* Balanced 50/50 Split */
.pb-row-balanced-split {
	justify-content: space-between;
}

.pb-row-balanced-split .pb-col-1,
.pb-row-balanced-split .pb-col-2 {
	flex: 0 0 46%;
}

/* Asymmetric Left (Narrow Left, Wide Right) - 40/60 look */
.pb-row-asymmetric-left {
	justify-content: space-between;
}

.pb-row-asymmetric-left .pb-col-1 {
	flex: 0 0 38%;
}

.pb-row-asymmetric-left .pb-col-2 {
	flex: 0 0 54%;
}

/* Asymmetric Right (Wide Left, Narrow Right) - 60/40 look */
.pb-row-asymmetric-right {
	justify-content: space-between;
}

.pb-row-asymmetric-right .pb-col-1 {
	flex: 0 0 54%;
}

.pb-row-asymmetric-right .pb-col-2 {
	flex: 0 0 38%;
}

/* Split Text (Clean Editorial Paragraph Columns) */
.pb-row-split-text {
	justify-content: space-between;
	align-items: flex-start;
}

.pb-row-split-text .pb-col-1,
.pb-row-split-text .pb-col-2 {
	flex: 0 0 46%;
}

/* Side-by-Side Images Staggered Collage Effect */
.pb-row-staggered-images {
	justify-content: space-between;
	align-items: flex-start;
}

.pb-row-staggered-images .pb-col-1 {
	flex: 0 0 47%;
}

.pb-row-staggered-images .pb-col-2 {
	flex: 0 0 47%;
	margin-top: 80px;
	/* Shift right column down on desktop for asymmetry */
}

.pb-row-staggered-images-reverse {
	justify-content: space-between;
	align-items: flex-start;
}

.pb-row-staggered-images-reverse .pb-col-1 {
	flex: 0 0 47%;
	margin-top: 80px;
	/* Shift left column down on desktop */
}

.pb-row-staggered-images-reverse .pb-col-2 {
	flex: 0 0 47%;
}

/* --- Element Typography --- */

/* Custom premium body paragraph text styling matching Al Balad Hospital reference */
.pb-text-content {
	color: inherit;
	opacity: 0.95;
}

.pb-text-content p {
	font-family: inherit;
	font-size: 19px;
	line-height: 1.8;
	font-weight: 300;
	letter-spacing: -0.01em;
	margin-bottom: 25px;
}

.pb-text-content p:last-child {
	margin-bottom: 0;
}

.pb-text-content h1,
.pb-text-content h2,
.pb-text-content h3,
.pb-text-content h4,
.pb-text-content h5,
.pb-text-content h6 {
	color: inherit;
	font-weight: 500;
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 20px;
}

.pb-text-content h2 {
	font-size: 38px;
	letter-spacing: -0.02em;
}

.pb-text-content h3 {
	font-size: 28px;
	letter-spacing: -0.015em;
}

/* Info List Style (like BHC Brand detail in Al Balad page) */
.pb-text-content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
}

.pb-text-content li {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 10px;
	display: flex;
	justify-content: space-between;
}

/* Adapt list border color for dark backgrounds */
.light-content .pb-text-content li {
	border-color: rgba(255, 255, 255, 0.15);
}

.dark-content .pb-text-content li {
	border-color: rgba(0, 0, 0, 0.15);
}

/* --- Element Media & Figure Aesthetics --- */
.pb-figure {
	margin: 0;
	padding: 0;
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	/* Montoya rounded border default */
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pb-figure:hover {
	transform: scale(1.01);
}

.pb-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pb-figure:hover .pb-img {
	transform: scale(1.04);
}

/* Aspect Ratio Utilities */
.pb-img-ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.pb-img-ratio-4-3 {
	aspect-ratio: 4 / 3;
}

.pb-img-ratio-16-9 {
	aspect-ratio: 16 / 9;
}

.pb-img-ratio-3-4 {
	aspect-ratio: 3 / 4;
}

.pb-img-ratio-1-1 img,
.pb-img-ratio-4-3 img,
.pb-img-ratio-16-9 img,
.pb-img-ratio-3-4 img {
	height: 100% !important;
	object-fit: cover !important;
}

/* --- Responsive Layout Breaks --- */
@media (max-width: 1024px) {
	.portfolio-builder-content {
		padding: 40px 25px 80px 25px;
	}

	.portfolio-row {
		margin-bottom: 80px;
	}

	.pb-text-content h2 {
		font-size: 32px;
	}

	.pb-text-content p {
		font-size: 17px;
	}
}

@media (max-width: 768px) {
	.portfolio-row {
		flex-direction: column !important;
		margin-bottom: 60px;
	}

	.portfolio-row .pb-col {
		flex: 0 0 100% !important;
		margin-bottom: 30px;
	}

	.portfolio-row .pb-col:last-child {
		margin-bottom: 0;
	}

	/* Reset staggering offsets on mobile screens */
	.pb-row-staggered-images .pb-col-2,
	.pb-row-staggered-images-reverse .pb-col-1 {
		margin-top: 0 !important;
	}
}

/* --- Fullscreen Zoom Gallery Breakout --- */
.pb-row-zoom-gallery {
	display: block !important;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-bottom: 120px;
	padding: 0 !important;
}

@media (max-width: 1024px) {
	.pb-row-zoom-gallery {
		margin-bottom: 80px;
	}
}

@media (max-width: 768px) {
	.pb-row-zoom-gallery {
		margin-bottom: 60px;
		width: auto;
		left: auto;
		right: auto;
		margin-left: -25px;
		margin-right: -25px;
	}
}

/* --- Staggered Gallery Layout --- */
.pb-staggered-gallery {
	display: flex;
	flex-direction: row;
	gap: 60px;
	width: 100%;
	align-items: flex-start;
}

.pb-gallery-col {
	display: flex;
	flex-direction: column;
	gap: 60px;
	flex: 1;
}

/* Vertical offset for the right column on desktop to create staggering effect */
.pb-gallery-col-right {
	margin-top: 150px;
}

.pb-gallery-item {
	width: 100%;
	display: block;
	position: relative;
}

.pb-gallery-item .pb-figure {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 12px;
	background-color: #fafafa;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.pb-gallery-item .pb-figure:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.pb-gallery-item .pb-img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-gallery-item:hover .pb-img {
	transform: scale(1.03);
}

/* Responsive adjustment for tablets & mobiles */
@media (max-width: 1024px) {
	.pb-staggered-gallery {
		gap: 40px;
	}

	.pb-gallery-col {
		gap: 40px;
	}

	.pb-gallery-col-right {
		margin-top: 80px;
	}
}

@media (max-width: 768px) {
	.pb-staggered-gallery {
		flex-direction: column;
		gap: 30px;
	}

	.pb-gallery-col {
		gap: 30px;
	}

	.pb-gallery-col-right {
		margin-top: 0;
		/* Reset stagger on small screens for natural vertical stack */
	}
}