/* Galeria de fotos em tela cheia (assets/js/galeria-fotos.js) */
.clg-aberta, .clg-aberta body { overflow: hidden; }
.clg-fundo { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .94); display: flex; flex-direction: column; color: #fff; }
.clg-fundo[hidden] { display: none; }
.clg-topo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.clg-titulo { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.clg-contador { font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.clg-fechar { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.clg-fechar:hover { background: rgba(255, 255, 255, .25); }
.clg-palco { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 56px; }
.clg-foto { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.clg-erro { font-size: 14px; opacity: .8; text-align: center; }
.clg-seta { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.clg-seta:hover { background: rgba(255, 255, 255, .28); }
.clg-seta[hidden] { display: none; }
.clg-ant { left: 8px; }
.clg-prox { right: 8px; }
.clg-miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.clg-miniaturas[hidden] { display: none; }
.clg-mini { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #1e293b; cursor: pointer; line-height: 0; opacity: .65; }
.clg-mini img { width: 72px; height: 54px; object-fit: cover; display: block; }
.clg-mini.clg-ativa { border-color: #ff6b00; opacity: 1; }
.clg-mini-erro { display: none; }
@media (max-width: 640px) {
  .clg-palco { padding: 0 6px; }
  .clg-seta { width: 38px; height: 38px; font-size: 24px; background: rgba(15, 23, 42, .55); }
  .clg-mini img { width: 60px; height: 45px; }
}
