/* Páginas internas (Trabalho e Serviços) — usa as variáveis de estilo.css */
.pagina-galeria { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

.gal-topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--fundo) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--dourado) 18%, transparent);
}
.voltar {
  display: inline-flex; align-items: center; gap: 4px;
  height: 44px; padding: 0 14px 0 8px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--dourado) 40%, transparent);
  color: var(--dourado);
  font-size: 14px; font-weight: 800;
  transition: background-color .2s ease;
}
.voltar svg { width: 20px; height: 20px; }
.voltar:hover { background: color-mix(in srgb, var(--dourado) 12%, transparent); }
.gal-marca { font-family: var(--serifa); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--titulo); }

.gal-titulo { text-align: center; padding: 30px 20px 22px; animation: entrar .7s cubic-bezier(.2,.7,.2,1) both; }
.gal-titulo small { display: block; font-weight: 200; font-size: 24px; letter-spacing: -.02em; }
.gal-titulo h1 {
  font-weight: 900; font-size: clamp(44px, 14vw, 58px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--claro) 0%, var(--titulo) 55%, var(--dourado-escuro) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.gal-titulo p { margin-top: 10px; font-size: 13px; color: color-mix(in srgb, var(--branco) 60%, transparent); }

.grade {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 14px;
}
.grade li { animation: entrar .5s cubic-bezier(.2,.7,.2,1) calc(.15s + min(var(--i), 8) * .05s) both; }
.grade li:first-child { grid-column: 1 / -1; }
.foto {
  display: block; width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dourado) 35%, transparent);
  background: var(--card);
}
.grade li:first-child .foto { aspect-ratio: 4 / 3.6; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.foto:hover img { transform: scale(1.04); }

.mais-insta {
  display: flex; align-items: center; justify-content: center;
  height: 48px; margin: 22px 14px 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--dourado) 40%, transparent);
  color: var(--dourado); font-weight: 800; font-size: 14px;
  transition: background-color .2s ease;
}
.mais-insta:hover { background: color-mix(in srgb, var(--dourado) 10%, transparent); }

/* botão fixo embaixo */
.barra-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--fundo) 40%);
  display: flex; justify-content: center;
}
.pilula.cta { width: 100%; max-width: 404px; height: 52px; margin: 0; border-radius: 14px; font-size: 15px; }

/* foto ampliada */
.visor {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0,0,0,.96); color: var(--branco);
}
.visor[open] { display: grid; place-items: center; animation: aparecer .25s ease; }
@keyframes aparecer { from { opacity: 0; } }
.visor::backdrop { background: transparent; }
.visor img { max-width: min(92vw, 520px); max-height: 80dvh; border-radius: 14px; object-fit: contain; }
.visor-fechar { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; font-size: 34px; line-height: 1; color: var(--branco); }
.visor-seta {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 32px; line-height: 1; padding-bottom: 4px;
  background: color-mix(in srgb, var(--dourado) 18%, transparent);
  color: var(--titulo);
}
.visor-seta.ant { left: 10px; }
.visor-seta.prox { right: 10px; }
.visor-num { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 13px; opacity: .7; }

/* Fundo claro (rosé queimado) — textos fora dos cards em marrom escuro */
.voltar { color: var(--titulo); border-color: color-mix(in srgb, var(--titulo) 35%, transparent); }
.voltar:hover { background: color-mix(in srgb, var(--titulo) 8%, transparent); }
.gal-titulo small { color: var(--branco); }
.gal-titulo h1 { background: none; -webkit-text-fill-color: var(--titulo); color: var(--titulo); }
.gal-titulo p { color: color-mix(in srgb, var(--titulo) 85%, transparent); }
/* Amanda: fundo creme pede texto escuro no topo das páginas internas */
.gal-titulo small { color: color-mix(in srgb, var(--titulo) 80%, transparent); }
.gal-titulo p { color: color-mix(in srgb, var(--titulo) 70%, transparent); }
.gal-titulo h1 { -webkit-text-fill-color: var(--titulo); color: var(--titulo); }
