/* =========================================================
   Ativa Galeria — ajuste as cores da marca aqui
   ========================================================= */
.ag-page,
.ag-scope {
	--ag-bg: #0c0c0d;
	--ag-surface: #161618;
	--ag-line: #2a2a2e;
	--ag-text: #f5f5f5;
	--ag-muted: #a3a3a8;
	--ag-accent: #ff5a1f;       /* cor de destaque (botões, detalhes) */
	--ag-accent-ink: #ffffff;   /* texto sobre a cor de destaque */
	--ag-radius: 14px;
	--ag-wrap: 1200px;
}

/* ---------- Base da página ---------- */
body.ag-page {
	margin: 0;
	padding: 0;
	background: var(--ag-bg);
	color: var(--ag-text);
	-webkit-font-smoothing: antialiased;
}
.ag-page *, .ag-page *::before, .ag-page *::after,
.ag-scope *, .ag-scope *::before, .ag-scope *::after { box-sizing: border-box; }
.ag-page img { max-width: 100%; height: auto; }

.ag-wrap {
	width: 100%;
	max-width: var(--ag-wrap);
	margin: 0 auto;
	padding: 0 20px;
}
.ag-section { padding-top: 8px; padding-bottom: 72px; }

/* ---------- Topo ---------- */
.ag-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(12, 12, 13, .88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ag-line);
}
.admin-bar .ag-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ag-topbar { top: 0; position: relative; } }

.ag-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.ag-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ag-logo__img { display: block; height: 46px; width: auto; }
.ag-logo__text { color: var(--ag-text); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.ag-nav { display: flex; align-items: center; gap: 22px; }
.ag-page .ag-nav__link {
	color: var(--ag-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: color .15s;
}
.ag-page .ag-nav__link:hover,
.ag-page .ag-nav__link.is-active { color: var(--ag-text); }

/* ---------- Botões ---------- */
.ag-page .ag-btn,
.ag-scope .ag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border: 2px solid var(--ag-accent);
	border-radius: 999px;
	background: var(--ag-accent);
	color: var(--ag-accent-ink);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s, filter .15s, background .15s, color .15s;
}
.ag-page .ag-btn:hover,
.ag-scope .ag-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ag-page .ag-btn--sm { padding: 10px 18px; font-size: 14px; }
.ag-page .ag-btn--ghost,
.ag-scope .ag-btn--ghost { background: transparent; color: var(--ag-accent); }
.ag-page .ag-btn--ghost:hover,
.ag-scope .ag-btn--ghost:hover { background: var(--ag-accent); color: var(--ag-accent-ink); filter: none; }

/* ---------- Cabeçalho da página ---------- */
.ag-hero { padding: 64px 0 36px; }
.ag-hero--single { padding-top: 36px; }
.ag-eyebrow {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--ag-accent);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.ag-dot { opacity: .6; }
.ag-page .ag-title {
	margin: 0 0 14px;
	color: var(--ag-text);
	font-size: clamp(32px, 5.5vw, 58px);
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: -.01em;
	text-transform: uppercase;
	text-wrap: balance;
}
.ag-lead {
	max-width: 640px;
	margin: 0;
	color: var(--ag-muted);
	font-size: 17px;
	line-height: 1.6;
}
.ag-page .ag-back {
	display: inline-block;
	margin-bottom: 22px;
	color: var(--ag-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.ag-page .ag-back:hover { color: var(--ag-text); }
.ag-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ag-pill {
	display: inline-flex;
	padding: 9px 16px;
	border: 1px solid var(--ag-line);
	border-radius: 999px;
	color: var(--ag-muted);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Cards de galerias ---------- */
.ag-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}
.ag-scope .ag-card,
.ag-page .ag-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	background: var(--ag-surface);
	color: var(--ag-text);
	text-decoration: none;
	transition: transform .2s, border-color .2s;
}
.ag-card:hover { transform: translateY(-4px); border-color: var(--ag-accent); }
.ag-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #222;
}
.ag-card__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s ease;
}
.ag-card:hover .ag-card__img { transform: scale(1.05); }
.ag-card__badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.ag-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.ag-card__date { color: var(--ag-muted); font-size: 13px; font-weight: 600; }
.ag-card__title { font-size: 20px; line-height: 1.25; font-weight: 800; text-transform: uppercase; }
.ag-card__cta { margin-top: 6px; color: var(--ag-accent); font-weight: 700; font-size: 14px; }
.ag-more { margin: 28px 0 0; text-align: center; }

/* ---------- Grade de fotos ---------- */
.ag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.ag-item {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: #1d1d20;
	cursor: zoom-in;
}
.ag-item__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .4s ease, opacity .2s;
}
.ag-item:hover .ag-item__img { transform: scale(1.06); }
.ag-item:focus-visible { outline: 3px solid var(--ag-accent); outline-offset: 2px; }

.ag-empty {
	padding: 48px 24px;
	border: 1px dashed var(--ag-line);
	border-radius: var(--ag-radius);
	color: var(--ag-muted);
	text-align: center;
	font-size: 16px;
}

/* ---------- Paginação ---------- */
.ag-pagination { margin-top: 40px; }
.ag-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ag-pagination .page-numbers {
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid var(--ag-line);
	border-radius: 999px;
	color: var(--ag-text);
	text-align: center;
	text-decoration: none;
	font-weight: 600;
}
.ag-pagination .page-numbers.current,
.ag-pagination a.page-numbers:hover { border-color: var(--ag-accent); background: var(--ag-accent); color: var(--ag-accent-ink); }
.ag-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Chamada final + rodapé ---------- */
.ag-cta { border-top: 1px solid var(--ag-line); background: var(--ag-surface); }
.ag-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.ag-page .ag-cta__title {
	max-width: 620px;
	margin: 0;
	color: var(--ag-text);
	font-size: clamp(24px, 3.4vw, 36px);
	line-height: 1.1;
	font-weight: 900;
}
.ag-footer { border-top: 1px solid var(--ag-line); color: var(--ag-muted); font-size: 14px; }
.ag-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.ag-footer__links { display: flex; gap: 18px; }
.ag-page .ag-footer a { color: var(--ag-muted); text-decoration: none; }
.ag-page .ag-footer a:hover { color: var(--ag-text); }

/* ---------- Lightbox ---------- */
.ag-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .94);
	-webkit-user-select: none;
	user-select: none;
	touch-action: pan-y;
}
.ag-lb[hidden] { display: none; }
.ag-lb__stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 72px; }
.ag-lb__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transition: opacity .2s;
}
.ag-lb__img.is-loading { opacity: .25; }
.ag-lb button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}
.ag-lb button:hover, .ag-lb button:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.ag-lb__close { top: 14px; right: 14px; }
.ag-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.ag-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.ag-lb__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	color: #d4d4d8;
	font-size: 14px;
}
.ag-lb__dl { color: #fff; font-weight: 600; text-decoration: none; opacity: .85; }
.ag-lb__dl:hover { opacity: 1; text-decoration: underline; }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
	.ag-wrap { padding: 0 16px; }
	.ag-topbar__inner { min-height: 62px; }
	.ag-logo__img { height: 38px; }
	.ag-nav { gap: 14px; }
	.ag-nav__link:first-child { display: none; }
	.ag-hero { padding: 40px 0 24px; }
	.ag-lead { font-size: 16px; }
	.ag-cards { grid-template-columns: 1fr; gap: 16px; }
	.ag-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
	.ag-item { border-radius: 4px; }
	.ag-cta__inner { padding-top: 36px; padding-bottom: 36px; }
	.ag-cta .ag-btn { width: 100%; }
	.ag-lb__stage { padding: 60px 8px; }
	.ag-lb__prev, .ag-lb__next { top: auto; bottom: 60px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ag-page *, .ag-scope * { transition: none !important; }
}
