/*!
 * SINTEPI — galeria de vídeos do YouTube (modelo do portal do Sinttel-PI).
 * Projeto Gerado pelo Prompt Mestre do Desenvolvedor e Vibe Coder Dante Testa — www.dantetesta.com.br
 */
.sp-gal { background: #fff; border: 1px solid var(--sp-line, #e5e5e5); padding: 22px 24px 24px; }
.sp-gal-h { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sp-gal-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sp-gal-id { flex: 1 1 280px; min-width: 0; }
.sp-gal-id h2 { font-family: var(--sp-font-title, inherit); font-size: 1.6rem; line-height: 1.15; margin: 0; color: var(--sp-ink, #1a1a1a); }
.sp-gal-id p { margin: 4px 0 0; color: var(--sp-mut, #555); font-size: .92rem; }
.sp-gal-n { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; color: var(--sp-mut, #555); font-size: .9rem; }
.sp-gal-n b { color: var(--sp-ink, #1a1a1a); }
.sp-gal-sub { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; background: var(--sp-royal, #1e2a8c); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; border-radius: 4px; }
.sp-gal-sub:hover, .sp-gal-sub:focus-visible { background: var(--sp-azul, #0f1a4d); color: #fff; }
.sp-gal-tabs { display: flex; gap: 4px 24px; flex-wrap: wrap; margin: 18px 0 0; border-bottom: 1px solid var(--sp-line, #e5e5e5); }
.sp-gal-tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 0; font-weight: 700; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; color: #3d3d3d; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sp-gal-tabs button:hover { color: var(--sp-royal, #1e2a8c); }
.sp-gal-tabs button[aria-selected="true"] { color: var(--sp-royal, #1e2a8c); border-bottom-color: var(--sp-amarelo, #f5d90a); }
.sp-gal-tabs button:focus-visible { outline: 3px solid var(--sp-royal, #1e2a8c); outline-offset: 2px; }
.sp-gal-bar { display: flex; justify-content: flex-end; margin: 16px 0; }
.sp-gal-ql { position: relative; width: 100%; max-width: 320px; display: block; }
.sp-gal-ql .sp-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sp-mut, #555); }
.sp-gal-q { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px 10px 40px; border: 1px solid #b9bcc6; font: inherit; font-size: .95rem; border-radius: 4px; }
.sp-gal-q:focus-visible { outline: 3px solid var(--sp-royal, #1e2a8c); outline-offset: 1px; }
.sp-gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.sp-gal [hidden] { display: none !important; }
.sp-vc button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; }
.sp-vc button:focus-visible { outline: 3px solid var(--sp-royal, #1e2a8c); outline-offset: 3px; }
.sp-vc-th { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.sp-vc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-vc-th i { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font: 700 .75rem/1 system-ui, sans-serif; padding: 4px 6px; }
.sp-vc-th em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(15, 26, 77, .85); color: var(--sp-amarelo, #f5d90a); display: flex; align-items: center; justify-content: center; padding-left: 3px; box-sizing: border-box; opacity: 0; transition: opacity .15s; }
.sp-vc button:hover .sp-vc-th em, .sp-vc button:focus-visible .sp-vc-th em { opacity: 1; }
.sp-vc-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; color: var(--sp-royal, #1e2a8c); font-family: var(--sp-font-title, inherit); font-size: 1.08rem; line-height: 1.25; font-weight: 700; }
.sp-vc button:hover .sp-vc-t { text-decoration: underline; }
.sp-vc-dt { margin-top: 4px; font-size: .78rem; color: var(--sp-mut, #555); }
.sp-vc-d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: .88rem; line-height: 1.45; color: #333; }
.sp-vc-s { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--sp-mut, #555); }
.sp-vc-s > span { display: inline-flex; gap: 4px; align-items: center; }
.sp-gal-msg { text-align: center; color: var(--sp-mut, #555); margin: 16px 0; }
.sp-gal-msg[data-err] { color: var(--sp-err, #b42318); }
.sp-gal-more { text-align: center; margin: 24px 0 0; }
.sp-gal-dlg { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.sp-gal-dlg-in { position: relative; width: min(960px, 100%); background: #000; padding: 12px; }
.sp-gal-fr { position: relative; aspect-ratio: 16 / 9; }
.sp-gal-fr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-gal-dlg-in p { margin: 10px 0 0; text-align: center; }
.sp-gal-dlg-in a { color: #fff; }
.sp-gal-x { all: unset; cursor: pointer; position: absolute; right: 0; top: -48px; color: #fff; font-size: 2.2rem; line-height: 1; padding: 4px 12px; min-width: 44px; min-height: 44px; box-sizing: border-box; text-align: center; }
.sp-gal-x:focus-visible { outline: 3px solid var(--sp-amarelo, #f5d90a); }
@media (max-width: 1000px) { .sp-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.sp-gal { padding: 16px; }
	.sp-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.sp-gal-n { width: 100%; }
	.sp-gal-bar { justify-content: stretch; }
	.sp-gal-ql { max-width: none; }
}
@media (max-width: 440px) {
	.sp-gal-grid { grid-template-columns: 1fr; }
	.sp-gal-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 20px; }
	.sp-gal-tabs button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .sp-vc-th em { transition: none; } }
