/* Madok Project Showcase — frontend styles */

.madok-ps {
	position: relative;
	overflow: hidden;
	padding-bottom: 4rem;
	background-color: #4f4d40;
}

.madok-ps-layout {
	display: flex;
	align-items: stretch;
}

.madok-ps-title-rail {
	flex: 0 0 4rem;
	box-sizing: border-box;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.madok-ps-title {
	margin: 0;
	padding: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	text-transform: uppercase;
	font-weight: 300;
	letter-spacing: 0.15em;
	font-size: 1.15rem;
	color: #9e8a7d;
}

.madok-ps-body {
	flex: 1 1 auto;
	min-width: 0;
}

.madok-ps-slides {
	position: relative;
}

.madok-ps-slide {
	outline: none;
}

.madok-ps-media {
	position: relative;
	width: 100%;
}

@media (max-width: 767px) {
	.madok-ps-layout {
		flex-direction: column;
	}
	.madok-ps-title-rail {
		flex-basis: auto;
		padding: 1.5rem 5vw 0;
	}
	.madok-ps-title {
		writing-mode: horizontal-tb;
		transform: none;
	}
}

.madok-ps-figure {
	position: relative;
	overflow: hidden;
	height: 70vh;
	margin: 0;
}

.madok-ps-image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.madok-ps-label {
	position: absolute;
	left: 3rem;
	bottom: 2rem;
	z-index: 3;
	padding: 0.35em 0.6em;
	background-color: #ffffff;
	color: #21170a;
	font-size: 1rem;
	line-height: 1.4;
}

.madok-ps-info-row {
	max-width: 1440px;
	margin: 3rem auto 0;
	padding: 0 5vw;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.madok-ps-info {
	flex: 1 1 auto;
}

.madok-ps-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem 2rem;
	width: 100%;
	max-width: 60rem;
}

@media (min-width: 768px) {
	.madok-ps-stats {
		grid-template-columns: repeat(4, 1fr);
	}
}

.madok-ps-stat {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.madok-ps-stat-label {
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	color: #9e8a7d;
}

.madok-ps-stat-value {
	font-size: 1.75rem;
	font-weight: 300;
	color: #d9d9d9;
}

.madok-ps-arrows {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex: 0 0 auto;
}

/* Reset every native/theme/Elementor default a <button> might carry (background
   fills, borders, focus rings) — this widget draws its own arrow graphic and
   nothing else should be visible. Each state gets its own rule (rather than one
   shared comma-list) so a browser choking on any single pseudo-class — e.g. an
   older :focus-visible implementation — can't invalidate the whole declaration
   and silently drop the sizing, which collapses the button to a tiny default. */
.madok-ps-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 66px;
	box-sizing: content-box;
	margin: 0;
	padding: 0;
	height: 19px;
	width: 66px;
	line-height: 0;
	cursor: pointer;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: inherit;
}

.madok-ps-arrow:hover,
.madok-ps-arrow:focus,
.madok-ps-arrow:active,
.madok-ps-arrow:visited {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.madok-ps-arrow:focus-visible {
	outline: 1px dotted currentColor;
	outline-offset: 4px;
}

.madok-ps-arrow svg {
	display: block;
	width: 66px;
	height: 19px;
	stroke: #9e8a7d;
	fill: none;
	transition: stroke 0.2s ease;
}

.madok-ps-empty-notice {
	padding: 2rem;
	text-align: center;
	color: #9e8a7d;
	background: #f5f5f0;
}

/* Slick overrides: the widget draws its own arrows, hide slick's defaults and dots */
.madok-ps-slides .slick-arrow,
.madok-ps-slides .slick-dots {
	display: none !important;
}

.madok-ps-slides .slick-slide {
	outline: none;
}
