/**
 * Portfolio Carousel Styles - Exact Squarespace Match
 */

.portfolio-section {
	padding: 4vmax 0 0;
	background-color: rgba(0, 0, 0, 0.03);
	min-height: 75vh;
	position: relative;
}

.portfolio-section-title {
	text-align: center;
	padding-top: 4vmax;
	margin-bottom: 70px;
}

.portfolio-section-title p {
	font-size: 2.5rem;
	font-family: 'Libre Baskerville', serif !important;
	font-weight: 700;
	white-space: pre-wrap;
	margin: 0;
	color: #ffffff !important;
}

.portfolio-carousel-wrapper {
	position: relative;
	min-height: 75vh;
	overflow: hidden;
}

.portfolio-carousel-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.portfolio-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 75vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.portfolio-slide.active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.portfolio-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.portfolio-slide-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 15vw;
	box-sizing: border-box;
}

.portfolio-card {
	background: rgba(255, 255, 255, 0.95);
	padding: 3em 2.5em;
	width: 500px;
	max-width: calc(100% - 40px);
	margin: 0;
	box-sizing: border-box;
}

.portfolio-card h2 {
	font-size: 2.5rem;
	margin: 0 0 0.8em 0;
	font-family: 'Libre Baskerville', Georgia, serif;
	font-weight: 400;
	line-height: 1.2;
	color: var(--black, #000);
	text-align: left;
}

.portfolio-card p {
	font-size: 1rem;
	margin: 0 0 1.5em 0;
	white-space: pre-wrap;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 400;
	line-height: 1.6;
	color: var(--black, #000);
	text-align: left;
}

.portfolio-btn {
	display: inline-block;
	margin-top: 0;
	padding: 14px 28px;
	background-color: #000;
	color: #fff;
	text-decoration: none;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 4px;
	transition: opacity 0.3s ease;
	text-align: left;
}

.portfolio-btn:hover {
	opacity: 0.85;
}

.portfolio-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 15px 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #000;
	font-weight: 700;
	line-height: 1;
	border: none;
}

.portfolio-nav:hover {
	background: rgba(255, 255, 255, 1);
	border-color: rgba(0, 0, 0, 0.3);
}

.portfolio-nav svg {
	width: 44px;
	height: 18px;
	display: block;
}

.portfolio-nav svg path {
	stroke: currentColor;
	stroke-width: 1;
	fill: none;
}

.portfolio-nav-prev {
	left: 5vw;
}

.portfolio-nav-next {
	right: 5vw;
}

.portfolio-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.portfolio-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.8);
	cursor: pointer;
	transition: all 0.3s ease;
}

.portfolio-dot.active {
	background: rgba(255, 255, 255, 1);
	border-color: rgba(255, 255, 255, 1);
}

@media screen and (max-width: 767px) {
	.portfolio-slide {
		padding: 20px;
	}
	
	.portfolio-slide-content {
		padding: 0 20px;
		justify-content: center;
	}
	
	.portfolio-card {
		width: 100%;
		max-width: 100%;
		padding: 2em 1.5em;
	}
	
	.portfolio-card h2 {
		font-size: 2rem;
	}
	
	.portfolio-card p {
		font-size: 0.95rem;
	}
	
	.portfolio-nav {
		padding: 10px 15px;
	}
	
	.portfolio-nav svg {
		width: 24px;
		height: 14px;
	}
	
	.portfolio-nav-prev {
		left: 10px;
	}
	
	.portfolio-nav-next {
		right: 10px;
	}
}
