/* Eviction Photos — studio gallery layout */

:root {
	--ep-bg: #f8eeec;
	--ep-ink: #111111;
	--ep-muted: #5c514c;
	--ep-accent: #db3c8a;
	--ep-accent-dark: #b42e70;
	--ep-footer: #00522d;
	--ep-footer-text: #ecf0f1;
	--ep-line: #eadfdc;
	--ep-wrap: 1280px;
	--ep-radius: 8px;
	--ep-font: "Geist", "Segoe UI", sans-serif;
	--ep-display: "Host Grotesk", "Geist", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ep-bg);
	color: var(--ep-ink);
	font-family: var(--ep-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ep-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--ep-accent-dark);
}

h1,
h2,
h3,
.ep-section-title {
	font-family: var(--ep-display);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1rem;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	background: #fff;
	color: var(--ep-ink);
	padding: 8px 12px;
	z-index: 100;
}

.skip-link:focus {
	top: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

:focus-visible {
	outline: 2px solid var(--ep-accent);
	outline-offset: 3px;
}

.wrap {
	width: min(var(--ep-wrap), calc(100% - 40px));
	margin-inline: auto;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--ep-bg);
}

.admin-bar .site-header {
	top: 32px;
}

.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 24px;
}

.site-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.site-logo img,
.custom-logo {
	width: 48px;
	height: 48px;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu > li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--ep-ink);
	text-decoration: none;
	font-size: 16px;
}

.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu a:hover {
	color: var(--ep-accent);
}

.menu-item-has-children > a::after {
	content: "▾";
	font-size: 0.7em;
	margin-left: 4px;
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 210px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: var(--ep-radius);
	box-shadow: 0 10px 28px rgba(40, 20, 20, 0.12);
	z-index: 5;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	padding: 8px 16px;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ep-ink);
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -7px;
}

.menu-toggle__bars::after {
	top: 7px;
}

.side-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	z-index: 30;
	transition: opacity 0.2s ease;
}

.side-menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(320px, 88vw);
	background: var(--ep-bg);
	z-index: 40;
	padding: 28px 22px;
	transform: translateX(-105%);
	transition: transform 0.2s ease;
	overflow: auto;
	visibility: hidden;
}

body.side-open .side-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.side-open .side-menu {
	transform: translateX(0);
	visibility: visible;
}

.side-menu-close {
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: var(--ep-ink);
	margin-bottom: 12px;
}

.side-menu .primary-menu {
	flex-direction: column;
	align-items: stretch;
}

.side-menu .sub-menu {
	position: static;
	display: block;
	box-shadow: none;
	background: transparent;
	padding: 0 0 8px 12px;
}

/* Hero */

.ep-cover {
	position: relative;
	min-height: 500px;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	text-align: center;
	margin-bottom: 18px;
}

.ep-cover__bg,
.ep-cover__overlay {
	position: absolute;
	inset: 0;
}

.ep-cover__bg {
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
}

.ep-cover__overlay {
	background:
		linear-gradient(180deg, rgba(62, 0, 48, 0.38), rgba(24, 0, 20, 0.55)),
		rgba(140, 16, 92, 0.5);
}

.ep-cover__inner {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100% - 40px));
}

.ep-cover h1 {
	margin: 0 0 16px;
	font-size: 36px;
	color: #fff;
}

.ep-cover p {
	margin: 0 auto 12px;
	max-width: 720px;
	color: rgba(255, 255, 255, 0.94);
}

.ep-cover__note {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.82) !important;
}

.ep-button,
button,
input[type="submit"] {
	display: inline-block;
	background: var(--ep-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 14px 29px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.ep-button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--ep-accent-dark);
	color: #fff;
}

.ep-cover .ep-button {
	margin-top: 10px;
}

.ep-cover__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ep-button.ep-button--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}

.ep-button.ep-button--ghost:hover {
	background: #fff;
	color: var(--ep-accent);
}

.primary-menu > .ep-menu-shop > a {
	background: var(--ep-footer);
	color: #fff;
	border-radius: 4px;
	margin-left: 8px;
}

.primary-menu > .ep-menu-shop > a:hover {
	background: #063d22;
	color: #fff;
}

/* Home sections */

.home-sections {
	padding-bottom: 64px;
}

.home-section {
	margin-top: 42px;
}

.ep-section-title {
	text-align: center;
	font-size: 28px;
	margin: 0 0 22px;
}

.ep-lead,
.ep-note {
	text-align: center;
	color: var(--ep-muted);
	max-width: 680px;
	margin: 0 auto 22px;
}

.ep-topics {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	justify-content: center;
	column-gap: 88px;
	row-gap: 2px;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.ep-topics li {
	break-inside: avoid;
	padding: 7px 8px;
}

.ep-topics li::before {
	content: "→ ";
	color: var(--ep-ink);
}

.ep-topics a {
	text-decoration: none;
	font-weight: 500;
}

.ep-topics a:hover {
	text-decoration: underline;
}

.ep-grid,
.ip-box-container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ep-card,
.ip_box {
	position: relative;
	border-radius: var(--ep-radius);
	overflow: hidden;
	background: #333;
	min-height: 0;
}

.ep-card__link {
	display: block;
	position: relative;
	color: #fff;
	text-decoration: none;
	aspect-ratio: 1;
}

.ep-card img,
.ip_box img,
.ep-card__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1;
}

.ep-card__views {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 5px 7px;
	border-radius: 999px;
}

.ep-card__shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 28px 12px 12px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
	color: #fff;
}

.ep-card__title {
	font-family: var(--ep-display);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.ep-card__topic {
	font-size: 12px;
	opacity: 0.85;
}

.ep-card__link:hover img {
	transform: scale(1.03);
	transition: transform 0.25s ease;
}

.ep-authors,
.imagepress-authors-list {
	display: flex;
	justify-content: center;
	gap: 18px;
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
}

.ep-authors a,
.imagepress-authors-list a {
	text-decoration: none;
	font-weight: 500;
}

.ep-person {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ep-person--wide {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: center;
	padding: 8px 0 12px;
}

.ep-person__id {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ep-person h3 {
	margin: 0 0 6px;
	font-size: 22px;
}

.ep-person h3 a {
	color: var(--ep-ink);
	text-decoration: none;
}

.ep-person h3 a:hover {
	color: var(--ep-accent);
}

.ep-person__stats {
	display: flex;
	gap: 16px;
	margin: 0;
	color: var(--ep-muted);
}

.ep-person__stats b {
	color: var(--ep-ink);
	font-size: 18px;
}

.ep-person__stats small {
	display: block;
	font-size: 12px;
}

.ep-avatar,
.ep-person img.avatar,
.ep-profile-head img.avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
}

.ep-avatar {
	display: grid;
	place-items: center;
	background: var(--ep-accent);
	color: #fff;
	font-family: var(--ep-display);
	font-weight: 700;
}

.ep-person__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ep-person__thumbs a {
	display: block;
	border-radius: var(--ep-radius);
	overflow: hidden;
	aspect-ratio: 1;
}

.ep-person__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ep-highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ep-highlight figcaption {
	text-align: center;
	margin-top: 8px;
	color: var(--ep-muted);
	font-size: 14px;
}

.ep-subsection {
	font-size: 22px;
	margin: 28px 0 12px;
}

/* Interior pages */

.page-main {
	padding: 36px 0 72px;
}

.entry-content {
	max-width: 760px;
	margin-inline: auto;
}

.page-main .ep-grid,
.page-main .ip-box-container,
.entry-content .ep-grid,
.entry-content .ip-box-container {
	max-width: none;
}

.page-wall .entry-content,
.page-main .ep-grid {
	max-width: none;
}

.ep-post {
	padding: 18px 0;
	border-bottom: 1px solid var(--ep-line);
}

.ep-post h2 {
	margin: 0 0 6px;
	font-size: 24px;
}

.ep-meta {
	color: var(--ep-muted);
}

.single-image .entry-content,
.ep-upload {
	max-width: 860px;
}

.ep-profile-head {
	display: flex;
	gap: 18px;
	align-items: center;
	max-width: 760px;
	margin: 0 auto 28px;
}

.ep-profile-head h1,
.ep-profile-head h2 {
	margin: 0 0 6px;
	text-align: left;
}

.ep-account__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
}

.ep-account__links a {
	text-decoration: none;
	font-weight: 500;
}

.ep-login,
.ep-upload form,
.entry-content form {
	max-width: 460px;
	margin: 0 auto 16px;
	background: #fff;
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(40, 20, 20, 0.05);
}

.page-main input[type="text"],
.page-main input[type="email"],
.page-main input[type="password"],
.page-main input[type="url"],
.page-main input[type="search"],
.page-main input[type="file"],
.page-main textarea,
.page-main select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e4d4cf;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	margin-bottom: 12px;
}

.page-main label {
	display: block;
	font-weight: 500;
	margin-bottom: 4px;
}

.login-username,
.login-password,
.login-remember {
	margin-bottom: 12px;
}

/* ImagePress output sitting on this theme */

.ip-element-categories {
	columns: 3;
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.ip-element-categories a {
	color: var(--ep-accent);
	text-decoration: none;
}

.ip_box {
	border-radius: var(--ep-radius);
	overflow: hidden;
}

.cinnamon-card,
#author-cards .cinnamon-card {
	background: transparent;
}

/* Footer */

.site-footer {
	background: var(--ep-footer);
	color: var(--ep-footer-text);
	padding: 28px 0;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.footer-brand,
.footer-copy {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: #fff;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

.ep-zip-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 10px;
	margin: 0 auto 28px;
}

.ep-zip-form label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ep-zip-form input {
	width: 9rem;
	max-width: 9rem;
	margin: 0;
	text-align: center;
	font-size: 18px;
}

.ep-lawyers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.ep-lawyer {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(40, 20, 20, 0.06);
}

.ep-lawyer__photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: #e7d5cf;
}

.ep-lawyer__photo--empty {
	display: block;
}

.ep-lawyer__body {
	padding: 14px 14px 18px;
}

.ep-lawyer__body h2 {
	margin: 0 0 8px;
	font-size: 20px;
	text-align: left;
}

.ep-lawyer__body p {
	margin: 0 0 10px;
}

.ep-lawyer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.ep-lawyer__links a {
	text-decoration: none;
	font-weight: 500;
}

.ep-contact-toggle,
.ep-lawyer button {
	font-size: 16px;
	padding: 10px 16px;
}

.ep-contact {
	margin-top: 12px;
}

.ep-contact input,
.ep-contact textarea {
	width: 100%;
	max-width: none;
}

.ep-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.ep-banner {
	text-align: center;
	border-radius: 8px;
	padding: 12px 16px;
	max-width: 640px;
	margin: 0 auto 18px;
}

.ep-banner--ok {
	background: #e5f4ec;
	color: var(--ep-footer);
}

.ep-banner--error {
	background: #fde8f1;
	color: var(--ep-accent-dark);
}

/* Narrow screens */

@media (max-width: 1100px) {
	.ep-grid,
	.ip-box-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nav-wrap > .primary-menu {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ep-cover {
		height: auto;
		min-height: 420px;
		padding: 48px 0;
	}

	.ep-cover h1 {
		font-size: 28px;
	}

	.ep-topics {
		grid-template-columns: repeat(2, max-content);
		column-gap: 40px;
	}

	.ip-element-categories {
		columns: 2;
	}

	.ep-grid,
	.ip-box-container,
	.ep-highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ep-person--wide,
	.ep-person__thumbs {
		grid-template-columns: 1fr 1fr;
	}

	.ep-lawyers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ep-person--wide {
		grid-template-columns: 1fr;
	}

	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 560px) {
	.wrap {
		width: min(var(--ep-wrap), calc(100% - 28px));
	}

	.ep-topics {
		grid-template-columns: 1fr;
	}

	.ip-element-categories,
	.ep-grid,
	.ip-box-container,
	.ep-highlights,
	.ep-person__thumbs {
		grid-template-columns: 1fr;
		columns: 1;
	}

	.ep-lawyers {
		grid-template-columns: 1fr;
	}

	.ep-profile-head {
		flex-direction: column;
		text-align: center;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
