/*
  Theme Name: Divi lefeveremedia
  Theme URI: https://lefeveremedia.com
  Version: .01
  Template: Divi
  Author: Jace
  Author URI: https://lefeveremedia.com
  Text Domain: divi-lefeveremedia
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/




/* =====================================================================
   LFM Card Component
   Tall "Catalog Highlight" cards (484x605) + square "Other Media /
   More Work" cards (500x500, smaller & less prominent).
   Default text color assumes a dark background; add .lfm-theme-light
   to a wrapping element when placing cards on a light background.
   ===================================================================== */
.lfm-card {
	display: block;
	text-decoration: none;
	width: 100%;
}

.lfm-card--tall {
	max-width: 484px;
}

.lfm-card--square {
	max-width: 220px;
}

.lfm-card__thumb {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #1a1a1a;
}

.lfm-card--tall .lfm-card__thumb {
	aspect-ratio: 484 / 605;
}

.lfm-card--square .lfm-card__thumb {
	aspect-ratio: 1 / 1;
}

.lfm-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lfm-card__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-top: 14px;
}

.lfm-card__brand,
.lfm-card__role {
	font-weight: 400;
	font-size: 15px;
	line-height: 1.3;
	color: #d7dbe3;
	flex: 1 1 0;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lfm-card--square .lfm-card__brand,
.lfm-card--square .lfm-card__role {
	font-size: 12px;
}

.lfm-card__brand {
	text-align: left;
}

.lfm-card__role {
	text-align: right;
}

.lfm-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 8px;
	font-weight: 700;
	font-size: 22px;
	line-height: 28px;
	height: 56px;
	color: #ffffff;
}

.lfm-card--square .lfm-card__title {
	font-size: 16px;
	line-height: 20px;
	height: 40px;
}

.lfm-theme-light .lfm-card__brand,
.lfm-theme-light .lfm-card__role {
	color: #5a5a5a;
}

.lfm-theme-light .lfm-card__title {
	color: #1a1a1a;
}

.lfm-card-preview-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	background: #0f1115;
	padding: 40px;
}


/* ============================================================
   Phase 3 — Projects Page, Filter Sidebar, Grid, Homepage Tabs
   ============================================================ */

.lfm-projects-page { width: 100%; padding: 0 5vmin; box-sizing: border-box; }

.lfm-projects-toggle { display: flex; gap: 12px; margin-bottom: 28px; }
.lfm-toggle-btn {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.3);
	color: #d7dbe3;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 2px;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lfm-toggle-btn.is-active, .lfm-toggle-btn:hover { background: #ffffff; color: #111111; border-color: #ffffff; }

.lfm-projects-layout { display: flex; align-items: flex-start; gap: 40px; }
.lfm-projects-sidebar { flex: 0 0 240px; max-width: 240px; }
.lfm-projects-main { flex: 1 1 auto; min-width: 0; }

.lfm-filters { display: flex; flex-direction: column; gap: 24px; }
.lfm-filter-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #ffffff; }
.lfm-filter-option { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d7dbe3; margin-bottom: 8px; cursor: pointer; }
.lfm-filter-option input { accent-color: #2f6fed; cursor: pointer; }
.lfm-filter-clear { align-self: flex-start; background: none; border: none; color: #9aa0ab; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.lfm-filter-clear:hover { color: #ffffff; }

.lfm-grid { display: grid; gap: 40px 32px; align-items: start; justify-items: center; transition: opacity .15s ease; }
.lfm-grid--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lfm-grid--square { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lfm-grid.is-loading { opacity: .4; pointer-events: none; }
.lfm-grid .lfm-card { max-width: none; width: 100%; }
.lfm-grid-empty { color: #9aa0ab; font-size: 15px; grid-column: 1 / -1; }

@media (max-width: 1100px) {
	.lfm-grid--tall { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.lfm-grid--square { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lfm-projects-layout { flex-direction: column; }
	.lfm-projects-sidebar { max-width: none; flex-basis: auto; width: 100%; }
	.lfm-projects-main { width: 100%; }
	.lfm-grid--tall.lfm-grid .lfm-card { max-width: 484px; }
}
@media (max-width: 600px) {
	.lfm-grid--square { grid-template-columns: 1fr; }
	.lfm-grid--square.lfm-grid .lfm-card { max-width: 220px; }
}

.lfm-hp-grid-panel .lfm-grid--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lfm-hp-grid-panel .lfm-grid--square { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
	.lfm-hp-grid-panel .lfm-grid--tall { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.lfm-hp-grid-panel .lfm-grid--square { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Phase 3 elements on a light background (e.g. the dedicated Projects page) */
.lfm-theme-light .lfm-filter-title { color: #1a1a1a; }
.lfm-theme-light .lfm-filter-option { color: #5a5a5a; }
.lfm-theme-light .lfm-toggle-btn { color: #1a1a1a; border-color: rgba(0,0,0,0.25); }
.lfm-theme-light .lfm-toggle-btn.is-active, .lfm-theme-light .lfm-toggle-btn:hover { background: #99b3d3; color: #1a1a1a; border-color: #99b3d3; }
.lfm-theme-light .lfm-filter-clear { color: #8a8a8a; }
.lfm-theme-light .lfm-filter-clear:hover { color: #1a1a1a; }
.lfm-theme-light .lfm-grid-empty { color: #8a8a8a; }


.lfm-filters-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.3);
	color: #d7dbe3;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 2px;
	margin-bottom: 16px;
}
.lfm-filters-toggle.is-active { border-color: #99b3d3; }
.lfm-theme-light .lfm-filters-toggle { color: #1a1a1a; border-color: rgba(0,0,0,0.25); }
.lfm-theme-light .lfm-filters-toggle.is-active { border-color: #99b3d3; }

@media (max-width: 1100px) {
	.lfm-filters-toggle { display: flex; }
	#lfm-filters { display: none; }
	#lfm-filters.lfm-filters--open { display: flex; }
}
