/* Layout 11 - Flexbox Refactor */

.ps-container {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: 100%;
	background: #fff;
	overflow: hidden;
	position: relative;
}

/* Header - kept but minimized if empty, or full width if needed */
.ps-header {
	width: 100%;
	height: 50px;
	/* Reduced from 150px as it seemed unused */
	background: #fff;
	z-index: 10;
	display: none;
	/* Hiding for now based on screenshot */
}

/* Header Title (if enabled) */
.ps-header h1 {
	margin: 0;
	padding: 0 20px;
	line-height: 50px;
	color: #ccc;
	font-weight: 200;
	letter-spacing: 4px;
}

/* LEFT COLUMN: Text Content */
.ps-contentwrapper {
	width: 50%;
	height: 100%;
	position: relative;
	background: #fff;
	z-index: 5;
	order: 1;
}

/* Inside Left Column */
.ps-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 60px;
	box-sizing: border-box;
	/* Fix overflow issue */
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	/* Hidden by default */
	pointer-events: none;
	transition: opacity 0.4s ease-in-out;
	background: #fff;
}

/* Active Class from JS to show content */
.ps-content.ps-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 10;
}

/* Text styles */
.ps-content h2 {
	font-size: 32px;
	margin: 0 0 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.ps-content p {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
	margin-bottom: 20px;
}

.ps-content a:last-child {
	display: inline-block;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-bottom: 2px solid #333;
	width: fit-content;
}

/* RIGHT COLUMN: Slides + Nav */
.ps-slidewrapper {
	width: 50%;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	order: 2;
}

/* Top Right: Images */
.ps-slides {
	width: 100%;
	height: 70%;
	/* Takes up top 70% of right column */
	position: relative;
	overflow: hidden;
}

.ps-slides>div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
	z-index: 1;
}

/* Active Class from JS */
.ps-slides>div.ps-active {
	opacity: 1;
	z-index: 10;
}

/* Bottom Right: Navigation */
.ps-slidewrapper>nav {
	width: 100%;
	height: 30%;
	/* Takes up bottom 30% of right column */
	display: flex;
	position: relative;
}

.ps-slidewrapper>nav>a {
	width: 50%;
	height: 100%;
	position: relative;
	background-color: #f0f0f0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: opacity 0.3s;
}

.ps-slidewrapper>nav>a:hover {
	opacity: 0.8;
}

/* Navigation Arrow Icons */
.ps-slidewrapper>nav>a:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
	pointer-events: none;
}

.ps-slidewrapper>nav>a.ps-prev:after {
	transform: translate(-50%, -50%) rotate(135deg);
	/* Point Left */
}

.ps-slidewrapper>nav>a.ps-next:after {
	transform: translate(-50%, -50%) rotate(-45deg);
	/* Point Right */
}

/* Overlay for arrows to make them visible on images */
.ps-slidewrapper>nav>a:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
}


/* Responsive */
@media screen and (max-width: 860px) {
	.ps-container {
		flex-direction: column;
	}

	.ps-contentwrapper,
	.ps-slidewrapper {
		width: 100%;
		height: 50%;
	}

	.ps-content {
		padding: 30px;
	}
}