/* Agma Journal – Victourriahz style. Override the variables if needed. */
.aj {
	--aj-text: #fff;
	--aj-muted: #bdbdbd;
	--aj-line: #2a2a2a;
	--aj-head: "Montserrat", sans-serif;
	--aj-body: "Montserrat", sans-serif;
	--aj-gap: 22px;
	color: var(--aj-text);
}

/* ---------- Bar: tabs + search ---------- */
.aj-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	border-bottom: 1px solid var(--aj-line); margin-bottom: 26px;
}
.aj-tabs { display: flex; flex-wrap: wrap; gap: 6px 34px; }
.aj-tab {
	position: relative; display: inline-block; padding: 14px 0;
	color: var(--aj-muted) !important; font: 500 11px/1 var(--aj-body); letter-spacing: 2px; text-transform: uppercase;
	text-decoration: none !important; transition: color .2s ease;
}
.aj-tab::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: var(--aj-text); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.aj-tab:hover, .aj-tab.is-active { color: var(--aj-text) !important; }
.aj-tab.is-active::after { transform: scaleX(1); }

.aj-search { display: flex; align-items: center; gap: 8px; flex: none; margin: 0; }
.aj-search input[type=search] {
	width: 150px; height: 34px; padding: 0 !important; margin: 0;
	background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
	color: var(--aj-text) !important; font: 500 11px var(--aj-body); letter-spacing: 2px; text-transform: uppercase; text-align: right;
	transition: width .3s ease;
}
.aj-search input[type=search]:focus { width: 220px; outline: none; border-bottom: 1px solid #666 !important; }
.aj-search input::placeholder { color: var(--aj-muted); opacity: 1; }
.aj-search input::-webkit-search-cancel-button { filter: invert(1); }
.aj-search button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; padding: 0 !important; min-height: 0;
	background: transparent !important; border: 0 !important; color: var(--aj-text) !important; cursor: pointer; box-shadow: none !important;
}

/* ---------- Grid ---------- */
.aj-grid {
	display: grid; grid-template-columns: repeat(var(--aj-cols, 3), minmax(0, 1fr));
	gap: 44px var(--aj-gap);
	transition: opacity .25s ease;
}
.aj.is-loading .aj-grid { opacity: .35; pointer-events: none; }

.aj-card { display: flex; flex-direction: column; min-width: 0; }
.aj-img { display: block; overflow: hidden; aspect-ratio: 1.35 / 1; border: 1px solid var(--aj-line); background: #111; margin-bottom: 14px; }
.aj-img img, .aj-img-ph { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .7s ease; }
.aj-card:hover .aj-img img { transform: scale(1.04); filter: brightness(1.08); }

.aj-num { color: var(--aj-text); font: 300 15px/1 var(--aj-head); letter-spacing: 1px; margin-bottom: 6px; }
.aj-title { margin: 0 0 6px; }
.aj-title a {
	color: var(--aj-text) !important; font: 400 16px/1.25 var(--aj-head); letter-spacing: 2px; text-transform: uppercase; text-decoration: none !important;
}
.aj-title a:hover { opacity: .75; }
.aj-sub { margin: 0 0 16px; color: var(--aj-muted); font: 400 13px/1.5 var(--aj-body); }
.aj-read {
	margin-top: auto; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	color: var(--aj-text) !important; font: 500 11px/1 var(--aj-body); letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none !important;
}
.aj-read svg { transition: transform .25s ease; }
.aj-read:hover svg { transform: translateX(4px); }

.aj-empty { padding: 40px 0; text-align: center; color: var(--aj-muted); font: 500 12px var(--aj-body); letter-spacing: 2px; text-transform: uppercase; }
.aj-empty[hidden], .aj-more[hidden] { display: none !important; }

/* ---------- Load more ---------- */
.aj-more-wrap { display: flex; justify-content: center; margin-top: 50px; }
.aj-more {
	display: inline-block; padding: 14px 36px; border: 1px solid var(--aj-text);
	color: var(--aj-text) !important; font: 500 11px/1 var(--aj-body); letter-spacing: 3px; text-transform: uppercase; text-decoration: none !important;
	transition: background .25s ease, color .25s ease;
}
.aj-more:hover { background: var(--aj-text); color: #000 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.aj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aj-bar { flex-direction: column; align-items: stretch; gap: 0; }
	.aj-search { justify-content: flex-end; border-top: 1px solid var(--aj-line); }
}
@media (max-width: 767px) {
	.aj-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.aj-tabs::-webkit-scrollbar { display: none; }
	.aj-tab { white-space: nowrap; }
	.aj-search input[type=search], .aj-search input[type=search]:focus { width: 100%; text-align: left; }
	.aj-search { justify-content: space-between; }
	.aj-grid { grid-template-columns: 1fr; gap: 36px; }
}
