/* Galeria de artes (/galeria/): página simples, sem animação, responsiva. */
:root {
  --azul-escuro: #00102f;
  --azul-suave: #9cc0e6;
  --grad-botao: linear-gradient(90deg,
    #00184b  0%, #00235a 17%, #002d6a 25%, #00387a 33%, #00458b 41%,
    #00529f 48%, #005cab 56%, #005eae 64%, #005eae 100%);
  --borda-botao: #0063aa;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #0c3a80 0%, var(--azul-escuro) 55%) fixed;
  background-color: var(--azul-escuro);
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

.g-topo {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(0, 16, 47, 0.88);
  border-bottom: 1px solid rgba(160, 195, 235, 0.18);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.g-marca { font-size: 20px; font-weight: 300; letter-spacing: 0.01em; }
.g-marca b { font-weight: 700; }

.g-voltar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  /* mesmo estilo do botão "Entrar para GeraçãoSioz" do site: reto, degradê azul + borda */
  border: 1.5px solid var(--borda-botao);
  border-radius: 0;
  background: var(--grad-botao);
  box-shadow: -2px 4px 6px rgba(0, 8, 25, 0.55);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  transition: filter 0.2s;
}
.g-voltar:hover { filter: brightness(1.2); }

.g-main { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 64px; }

.g-intro { text-align: center; margin-bottom: clamp(24px, 4vw, 44px); }
.g-intro h1 { margin: 0; font-size: clamp(28px, 4.2vw, 46px); font-weight: 600; line-height: 1.15; }
.g-intro p { margin: 10px auto 0; max-width: 520px; font-size: clamp(14px, 1.6vw, 17px); font-weight: 300; line-height: 1.5; color: var(--azul-suave); }

.g-obs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(160, 195, 235, 0.25);
  background: rgba(8, 28, 68, 0.5);
  text-align: left;
  font-size: clamp(12px, 1.3vw, 13.5px);
  line-height: 1.5;
  color: var(--azul-suave);
}
.g-intro .g-obs {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: clamp(12px, 1.3vw, 13.5px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--azul-suave);
}
.g-obs__i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--azul-suave);
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  line-height: 16px;
  text-align: center;
}

.g-grade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.g-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1f45;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(0, 5, 20, 0.4);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item:focus-visible, .g-btn:focus-visible, .g-voltar:focus-visible { outline: 2px solid #8fc4ff; outline-offset: 3px; }

.g-fim { margin-top: clamp(36px, 6vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.g-fim p { margin: 0; font-size: clamp(16px, 2vw, 20px); font-weight: 400; }
.g-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 44px;
  /* mesmo formato dos botões principais: chanfros em cantos opostos + borda azul */
  clip-path: polygon(0 0, 93.1% 0, 100% 25%, 100% 100%, 6.9% 100%, 0 75%);
  background: var(--borda-botao);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  transition: filter 0.2s;
}
.g-btn::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  clip-path: polygon(0 0, 93.1% 0, 100% 25%, 100% 100%, 6.9% 100%, 0 75%);
  background: var(--grad-botao);
}
.g-btn > * { position: relative; z-index: 1; }
.g-btn:hover { filter: brightness(1.15); }
.g-voltar--fim { margin-top: 4px; }

/* ampliação */
.g-zoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 6, 20, 0.93);
}
.g-zoom[hidden] { display: none; }
.g-zoom__img { max-width: min(92vw, 860px); max-height: 90vh; width: auto; height: auto; border-radius: 10px; }
.g-zoom button {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.g-zoom button:hover { background: rgba(255, 255, 255, 0.3); }
.g-zoom__fechar { top: 14px; right: 16px; width: 44px; height: 44px; font-size: 30px; }
.g-zoom__seta { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 34px; padding-bottom: 4px; }
.g-zoom__seta--ant { left: 14px; }
.g-zoom__seta--prox { right: 14px; }
html.g-travado { overflow: hidden; }

@media (max-width: 1000px) { .g-grade { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .g-grade { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item { border-radius: 8px; }
  .g-marca { font-size: 17px; }
  .g-voltar { height: 36px; padding: 0 14px; font-size: 13px; }
  .g-zoom__seta { top: auto; bottom: 18px; margin-top: 0; }
}
