/* ─── Project Archive ────────────────────────────────────────────────────── */
/*
 * Values transcribed from the old DMA site:
 *   gotheme2015/stylesheets/layout.scss — Project Archive L3700–4358 +
 *   responsive overrides L8062–8171.
 * Colors: red #e4002b, teal #007d8a, charcoal #383838/#646569, grey #ebebeb
 */

.dma-project-archive {
	position: relative;
	background: #fff;
}

/* ── Featured slider ─────────────────────────────────────────────────────── */
.dma-pa-slider {
	position: relative;
	overflow: hidden;
}

/* Timer bar: 200%-wide red/charcoal gradient; .active slides it over 5s */
.dma-pa-timer {
	position: relative;
	width: 100%;
	height: 8px;
	background-size: 200% 100%;
	background-position: 100% 0;
	background-image: linear-gradient(to right, #e4002b 50%, #383838 50%);
	transition: none;
	z-index: 4;
}

.dma-pa-timer.active {
	background-position: 0 0;
	transition: all 5s linear;
}

/* Numbered buttons — top right over the slider */
.dma-pa-numbers {
	position: absolute;
	top: 30px;
	right: 15px;
	z-index: 9;
}

@media (min-width: 1200px) {
	.dma-pa-numbers {
		right: calc(50% - 570px);
	}
}

.dma-pa-num {
	cursor: pointer;
	width: 32px;
	height: 32px;
	text-align: center;
	line-height: 24px;
	font-size: 16px;
	font-family: 'space-mono', 'Space Mono', monospace;
	margin: 0 7.5px;
	color: #fff;
	background: transparent;
	border: 2px solid transparent;
	display: inline-block;
	padding: 0;
}

.dma-pa-num.active {
	font-weight: 700;
	border: 2px solid #fff;
}

/* Slides — stacked, opacity fade (old slick fade, 1s) */
.dma-pa-slides {
	position: relative;
	height: 339px;
}

@media (min-width: 768px) {
	.dma-pa-slides {
		height: 435px;
	}
}

.dma-pa-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1s ease;
}

.dma-pa-slide.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.dma-pa-slide a {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
	color: #fff;
}

.dma-pa-slide-blur,
.dma-pa-slide-white,
.dma-pa-slide-img,
.dma-pa-slide-gradient {
	position: absolute;
	inset: 0;
}

.dma-pa-slide-blur {
	background-size: cover;
	background-position: center 30%;
	filter: blur(8px);
	display: none;
}

.dma-pa-slide-white {
	background: rgba(255, 255, 255, 0.3);
	display: none;
}

@media (min-width: 768px) {
	.dma-pa-slide-blur,
	.dma-pa-slide-white {
		display: block;
	}
	/* Center image column on desktop (old .featured-cols) */
	.dma-pa-slide-img {
		max-width: 1170px;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
	}
	.dma-pa-slide-gradient {
		max-width: 1170px;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
	}
}

.dma-pa-slide-img {
	background-size: cover;
	background-position: center;
	background-color: #c8c9ca;
}

.dma-pa-slide-gradient {
	z-index: 2;
	background-image: linear-gradient(-180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0.84) 91%);
}

.dma-pa-slide-info {
	position: absolute;
	left: 0;
	bottom: 16px;
	z-index: 4;
	color: #fff;
	padding: 0 15px;
	width: 100%;
}

@media (min-width: 768px) {
	.dma-pa-slide-info {
		/* Bound to the same centered column as .dma-pa-slide-img/-gradient so
		   the title never sits over the blurred letterbox edges. */
		left: 50%;
		transform: translateX(-50%);
		max-width: 1170px;
		width: 100%;
		box-sizing: border-box;
		padding: 0 8.33%;
	}
}

.dma-pa-slide-location {
	font-size: 16px;
	line-height: 20px;
	font-family: 'space-mono', 'Space Mono', monospace;
	padding-bottom: 8px;
}

@media (min-width: 768px) {
	.dma-pa-slide-location {
		font-size: 18px;
		line-height: 26px;
		font-weight: 700;
		padding-bottom: 2px;
	}
}

.dma-pa-view {
	font-weight: 700;
	font-family: 'space-mono', 'Space Mono', monospace;
}

.dma-pa-view svg {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
}

.dma-pa-slide-title {
	margin: 0;
	font-size: 24px;
	line-height: 28px;
	font-weight: 700;
	font-family: 'mr-eaves-modern', sans-serif;
	color: #fff;
}

@media (min-width: 768px) {
	.dma-pa-slide-title {
		font-size: 56px;
		line-height: 64px;
	}
}

/* Prev/next arrows — hidden on mobile like the old site */
.dma-pa-arrow {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

@media (min-width: 768px) {
	.dma-pa-arrow { display: block; }
	.dma-pa-arrow--prev { left: calc(50% - 360px); }
	.dma-pa-arrow--next { right: calc(50% - 360px); }
}

@media (min-width: 1200px) {
	.dma-pa-arrow--prev { left: calc(50% - 640px); }
	.dma-pa-arrow--next { right: calc(50% - 640px); }
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.dma-pa-nav {
	position: relative;
	background: #ebebeb;
}

/* Desktop tabs */
.dma-pa-nav-desktop {
	position: relative;
	min-height: 69px;
	width: 100%;
	background: #ebebeb;
	text-align: center;
	overflow: hidden;
	display: none;
}

@media (min-width: 992px) {
	.dma-pa-nav-desktop { display: block; }
	.dma-pa-nav-mobile  { display: none !important; }
}

.dma-pa-tab {
	display: inline-block;
	vertical-align: middle;
	padding: 0 14px;
	text-decoration: none;
}

.dma-pa-tab h2 {
	margin: 0;
	font-weight: 400;
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 18px;
	line-height: 69px;
	letter-spacing: -0.11px;
	color: #007d8a;   /* live site tabs are teal */
}

.dma-pa-tab.active { cursor: default; }
.dma-pa-tab.active h2 {
	color: #007d8a;
	font-weight: 700;
}

.dma-pa-tab:not(.active):hover h2 { color: #00515a; }

.dma-pa-search-icon {
	display: inline-block;
	vertical-align: middle;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

/* Slide-in search overlay (shared desktop/mobile) */
.dma-pa-search-overlay {
	position: absolute;
	z-index: 2;
	background: #ebebeb;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transform: translateX(100%);
	transition: transform 0.5s ease;
}

.dma-pa-search-overlay.active {
	transform: translateX(0);
}

.dma-pa-search-overlay form {
	height: 100%;
	position: relative;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.dma-pa-search-overlay input[type="text"] {
	width: calc(100% - 80px);
	height: 100%;
	font-size: 24px;
	line-height: 36px;
	color: #646569;
	background: none;
	border: none;
	-webkit-appearance: none;
	outline: none !important;
	font-family: 'space-mono', 'Space Mono', monospace;
}

.dma-pa-search-close {
	position: absolute;
	right: 0;
	top: 0;
	width: 69px;
	height: 100%;
	text-align: center;
	cursor: pointer;
	background: none;
	border: none;
}

/* Mobile bar */
.dma-pa-nav-mobile {
	position: relative;
	min-height: 53px;
	background: #ebebeb;
}

.dma-pa-mobile-label {
	display: block;
	width: calc(100% - 50px);
	text-align: left;
	background: none;
	border: none;
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: -0.11px;
	font-weight: 700;
	color: #007d8a;
	padding: 16px 15px;
	cursor: pointer;
}

.dma-pa-chevron {
	margin-left: 8px;
	transition: transform 0.3s ease;
}

.dma-pa-mobile-label[aria-expanded="true"] .dma-pa-chevron {
	transform: scaleY(-1);
}

.dma-pa-nav-mobile .dma-pa-search-icon {
	position: absolute;
	top: 2px;
	right: 0;
}

.dma-pa-mobile-drop {
	display: none;
	background: #fff;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	position: absolute;
	width: 100%;
	z-index: 5;
}

.dma-pa-mobile-drop.open { display: block; }

.dma-pa-mobile-link {
	display: block;
	padding: 14px 16px;
	border-bottom: 1px solid #ebebeb;
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 18px;
	color: #646569;
	text-decoration: none;
}

.dma-pa-mobile-link.active {
	color: #007d8a;
	font-weight: 700;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.dma-pa-posts {
	position: relative;
	padding-top: 24px;
	padding-bottom: 56px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.dma-pa-posts {
		padding-top: 56px;
		padding-bottom: 80px;
	}
}

.dma-pa-parallax {
	position: absolute;
	top: 0;
	width: 50%;
	z-index: 0;
	pointer-events: none;
	display: none;
}

@media (min-width: 768px) {
	.dma-pa-parallax { display: block; }
}

.dma-pa-parallax--left  { left: 0; }
.dma-pa-parallax--right { right: 0; text-align: right; }
.dma-pa-parallax img { max-width: 100%; height: auto; }
/*
 * text-align:right above has no effect here — this theme's base img
 * reset makes <img> display:block, and text-align only aligns inline
 * content. A block-level img with no margin just sits flush against
 * its own containing block's LEFT edge regardless of that container's
 * own position — which happens to look right on the --left side
 * (left-of-wrapper = left-of-screen) but left a gap on the --right
 * side (left-of-wrapper != right-of-screen). margin-left:auto pushes
 * a block element to the right of its container regardless of the
 * container's own size, closing that gap.
 */
.dma-pa-parallax--right img { margin-left: auto; }

.dma-pa-container {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.dma-pa-searched-for {
	font-family: 'space-mono', 'Space Mono', monospace;
	padding-top: 24px;
	font-size: 20px;
	line-height: 29px;
	letter-spacing: -0.13px;
	color: #646569;
	margin: 0;
}

.dma-pa-searched-for .dma-pa-term { font-weight: 700; }

.dma-pa-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0 30px;
}

.dma-pa-cell {
	grid-column: span 12;
	margin-top: 24px;
}

@media (min-width: 768px) {
	.dma-pa-cell--8  { grid-column: span 8; }
	.dma-pa-cell--4  { grid-column: span 4; }
	.dma-pa-cell--12 { grid-column: span 12; }
}

/* Card */
.dma-pa-card {
	display: block;
	position: relative;
	color: #fff !important;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
	padding-bottom: 78.62%;
	height: 0;
	text-decoration: none;
	overflow: hidden;
}

@media (min-width: 768px) {
	.dma-pa-card {
		height: 308px;
		padding-bottom: 0;
	}
}

.dma-pa-card-img,
.dma-pa-card-mask,
.dma-pa-card-overlay {
	position: absolute;
	inset: 0;
}

.dma-pa-card-img {
	background-size: cover;
	background-position: center;
	background-color: #c8c9ca;
	transition: all 0.5s ease;
}

@media (min-width: 768px) {
	.dma-pa-card-img { filter: grayscale(100%); }
}

.dma-pa-card-mask {
	z-index: 1;
	opacity: 1;
	background-image: linear-gradient(-180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 96%);
}

.dma-pa-card-overlay {
	z-index: 2;
	background: #007d8a;
	opacity: 0.45;
	transition: all 0.5s ease;
}

.dma-pa-card:hover .dma-pa-card-img { filter: none; }
.dma-pa-card:hover .dma-pa-card-overlay { opacity: 0; }

.dma-pa-card-info {
	position: absolute;
	left: 0;
	bottom: 8px;
	z-index: 3;
	padding: 0 8px;
}

@media (min-width: 768px) {
	.dma-pa-card-info { padding: 0 16px 8px; }
}

.dma-pa-card-title {
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 18px;
	line-height: 22px;
	font-weight: 700;
	margin: 0;
	color: #fff;
}

@media (min-width: 768px) {
	.dma-pa-card-title { font-size: 26px; line-height: 30px; }
}

.dma-pa-card-location {
	font-family: 'space-mono', 'Space Mono', monospace;
	font-size: 15px;
	line-height: 22px;
}

@media (min-width: 768px) {
	.dma-pa-card-location { font-size: 16px; line-height: 22px; }
}

/* Red stat block */
.dma-pa-red-block {
	position: relative;
	padding-bottom: 92.75%;
	height: 0;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
	color: #fff;
	background: #e4002b;
	text-align: center;
	overflow: hidden;
}

@media (min-width: 768px) {
	.dma-pa-red-block {
		height: 308px;
		padding-bottom: 0;
	}
}

.dma-pa-red-pattern {
	position: absolute;
	inset: 0;
	background: url('../img/red-line-pattern.svg') no-repeat center;
	background-size: cover;
	z-index: 1;
}

.dma-pa-red-center {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
}

.dma-pa-stat {
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 144px;
	line-height: 1;
	font-weight: 700;
}

@media (max-width: 1199px) and (min-width: 768px) {
	.dma-pa-stat { font-size: 96px; }
}

.dma-pa-stat-desc {
	font-family: 'space-mono', 'Space Mono', monospace;
	font-weight: 700;
	font-size: 20px;
	line-height: 30px;
}

/* Scroll-in animation (old .slide-up-element) */
.dma-slide-up {
	transform: translateY(50px);
	opacity: 0;
	transition:
		transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		opacity   0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dma-slide-up.visible {
	transform: translateY(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.dma-slide-up {
		transform: none;
		opacity: 1;
		transition: none;
	}
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.dma-pa-pagination {
	padding: 32px 15px 0;
	position: relative;
	text-align: center;
}

.dma-pa-pagination ul {
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
	font-size: 0;
}

.dma-pa-pagination li {
	display: inline-block;
	padding: 0 3px;
}

.dma-pa-pagination .page-numbers {
	display: inline-block;
	border: 2px solid #fff;
	width: 33px;
	height: 33px;
	line-height: 29px;
	text-align: center;
	padding: 0;
	font-size: 24px;
	font-family: 'space-mono', 'Space Mono', monospace;
	color: #646569 !important;
	background: #fff !important;
	text-decoration: none;
}

.dma-pa-pagination a.page-numbers:hover {
	border-color: #646569;
}

.dma-pa-pagination .page-numbers.current {
	border: 2px solid #e4002b;
	color: #e4002b !important;
	font-weight: 700;
}

.dma-pa-pagination .page-numbers.dots {
	border: none;
	background: none !important;
	width: auto;
	cursor: default;
}

.dma-pa-pagination .page-numbers.prev,
.dma-pa-pagination .page-numbers.next {
	border: 2px solid #fff !important;
}

.dma-pa-pag-arrow {
	vertical-align: middle;
	margin-top: -4px;
}

.dma-pa-no-click {
	opacity: 0.5;
	cursor: default;
}

.dma-pa-pag-nav {
	display: inline-block;
	vertical-align: middle;
	padding: 8px 4px;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.dma-pa-pag-nav:hover {
	opacity: 0.65;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.dma-pa-empty {
	position: relative;
	padding: 24px 15px;
	max-width: 700px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.dma-pa-empty { padding: 56px 15px; }
}

.dma-pa-empty-text {
	position: relative;
	background: #fff;
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 28px;
	line-height: 32px;
	color: #007d8a;
	box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.3);
	padding: 24px 16px;
	font-weight: 700;
	text-align: center;
}

@media (min-width: 768px) {
	.dma-pa-empty-text {
		padding: 24px;
		font-size: 32px;
		line-height: 36px;
	}
}

/* ── Bottom text CTA ─────────────────────────────────────────────────────── */
.dma-pa-cta {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: #383838;
	padding: 80px 15px;
	text-align: center;
}

.dma-pa-cta-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 81, 90, 0.78); /* --dma-teal-dark (#00515a) tint for legibility */
}

.dma-pa-cta-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

.dma-pa-cta-main {
	font-family: 'mr-eaves-modern', sans-serif;
	font-size: 40px;
	line-height: 45px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}

.dma-pa-cta-sub {
	font-family: 'space-mono', 'Space Mono', monospace;
	font-size: 18px;
	line-height: 26px;
	color: #fff;
	margin-bottom: 8px;
}

/* White ghost variant on the photo background (old .white-button.red-back) */
.dma-pa-cta .dma-button {
	margin-top: 24px;
	border: 2px solid #fff;
	border-bottom: 7px solid #fff;
	color: #fff !important;
	background-image: linear-gradient(to bottom, transparent 50%, #fff 50%);
}

.dma-pa-cta .dma-button:hover {
	background-position: 0 100%;
	color: #e4002b !important;
}
