/*
Theme Name:		Segurança Municipal 2.0
Theme URI:		https://seguranca.jundiai.sp.gov.br/
Author:			CIJUN
Author URI:		https://cijun.sp.gov.br/
Description:	Site da Unidade de Gestão de Segurança Municipal
Template:		jundiai-tema-base
Version:		2.0
*/

/* ----- CABEÇALHO ------------------------------------------------------------------- */

#site-titulo .subtitulo {
	color: var(--laranja);
}

.contraste #site-titulo .subtitulo {
	color: #fff;
}

.barra-plataforma {
	background: var(--laranja);
}

/* ----- PÁGINA INICIAL -------------------------------------------------------------- */

.pagina-inicial .saiba-mais:hover {
	background: var(--laranja);
	color: #000;
}

/* ----- CÂMERAS (PÁGINA INICIAL E INTERNA) ------------------------------------------ */

/* página inicial */

#cameras-home {
	background: #333;
	color: #fff;
	padding-bottom: 2em;
}

#cameras-home #cameras-grid .camera .camera-titulo a:link,
#cameras-home #cameras-grid .camera .camera-titulo a:visited {
	color: #fff;
}

#cameras-home .saiba-mais {
	background: var(--laranja);
	color: #000;
}

#cameras-home .saiba-mais:hover {
	background: #000;
	color: #fff;
}

/* template page pagina-cameras.php */

#cameras-interna {
	margin-top: 40px;
}

#cameras-interna #cameras-grid .camera .camera-titulo a:link,
#cameras-interna #cameras-grid .camera .camera-titulo a:visited {
	color: #333;
}

/* grid */

#cameras-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;

}

#cameras-grid .camera {
	width: 100%;
	overflow: hidden;
	text-align: center;
	align-content: center;
	justify-content: center;
}

#cameras-grid .camera .camera-content {
	height: 280px;
	width: 300px;
	position: relative;
	margin: auto;
}

#cameras-grid .camera .camera-iframe {
	height: 300px;
	width: 220px;
	margin: 0 auto 5px;
	position: absolute;
	top: -40px;
	left: 40px;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
}

#cameras-grid .camera .camera-titulo {
	width: 300px;
	margin: 0 auto;
	font-size: 14px;
	position: absolute;
	top: 230px;
	left: 0px;
}

#cameras-grid .camera .camera-titulo a {
	font-weight: 600;
	text-decoration: none;
}

#cameras-grid .camera .camera-titulo a:after {
	content: ' ';
	background: url(https://src.cijun.sp.gov.br/img/media/filled-version/SVG/16-selection-cursors/frame-1.svg) no-repeat center center/100% 100%;
	width: 28px;
	height: 28px;
	margin-left: 5px;
	display: inline-block;
	vertical-align: middle;
	position: absolute;
	top: -220px;
	right: 10px;
	filter: invert(100%);
}

#cameras-grid .fancybox-hidden {
	display: none;
}

.camera-lightbox-titulo {
	margin-bottom: 2em;
	font-weight: 600;
}

.camera-lightbox-iframe {
	width: 300px;
	height: 450px;
	margin-bottom: 0;
}

@media only screen and (min-width: 700px) {

	#cameras-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media only screen and (min-width: 800px) {

	.camera-lightbox-iframe {
		width: 700px;
		height: 480px;
	}

}

@media only screen and (min-width: 1024px) {

	#cameras-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}

/* ----- INDICADORES DO BI (PÁGINA INICIAL) ------------------------------------------ */

#numeros-home {}

#iframe-bi {
	display: block;
}

#container-bi {
	position: relative;
	z-index: 0;
}

#link-bi {
	background: #f5f5f5;
	color: #333;
	border: 1px solid #666;
	width: 100%;
	display: block;
	margin-top: 20px;
	padding: 10px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

#link-bi:hover {
	background: #eee;
}

@media only screen and (min-width: 600px) {

	#iframe-bi {
		height: 440px;
	}

}

@media only screen and (min-width: 800px) {

	#iframe-bi {
		height: 500px;
	}

}

@media only screen and (min-width: 1024px) {

	#iframe-bi {
		height: 640px;
	}

	#link-bi {
		display: none;
	}

}

@media only screen and (min-width: 1220px) {

	#iframe-bi {
		height: 780px;
	}

}

/* ----- GM (PÁGINA INICIAL) --------------------------------------------------------- */

#gm-home {
	background: #f5f5f5;
	padding-bottom: 2em;
}

.contraste #gm-home {
	background: #000;
}


#gm-home .wp-post-image {
	margin: 0 auto 20px;
}

@media only screen and (min-width: 800px) {

	#gm-home .wp-post-image {
		margin: 0 20px 20px 0;
		float: left;
	}

}

/* ----- PROGRAMAS (PÁGINA INICIAL) -------------------------------------------------- */

#programas-home .programas {
	margin-bottom: 2em;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
}

#programas-home .programa {
	background: var(--laranja);
	color: #000;
	padding: 20px;
}

#programas-home .programa .programa-imagem {
	float: left;
	margin: 0 10px 10px 0;
}

#programas-home .programa .saiba-mais {
	background: #fff;
	color: #000;
	margin-top: 0;
}

#programas-home .programa .saiba-mais:hover {
	background: #000;
	color: #fff;
}

@media only screen and (min-width: 800px) {

	#programas-home .programas {
		display: flex;
		flex-flow: row nowrap;
		align-content: center;
		align-items: stretch;
		justify-content: space-between;
		justify-items: center;
	}

	#programas-home .programa {
		 flex-basis: 100%;
	}
	
}

/* ----- NOTÍCIAS (PÁGINA INICIAL) --------------------------------------------------- */

#noticias-home {
	background: #f5f5f5;
	padding-bottom: 2em;
}

/* ----- lINKS ÚTEIS ----------------------------------------------------------------- */

#links {
	margin-top: 60px;
	padding: 40px 0;
}

#links .container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	align-items: flex-start;
	justify-items: center;
}

#links .link {
	color: #666;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	flex-basis: 100%;
}

#links img {
	width: 100%;
	max-width: 150px;
	height: auto;
	margin: 0 auto 10px;
	display: block;
	filter: saturate(80%) opacity(60%);
}

@media only screen and (min-width: 480px) {

	#links .container {
		grid-template-columns: repeat(4, 1fr);
	}

}

@media only screen and (min-width: 600px) {

	#links .container {
		grid-template-columns: repeat(6, 1fr);
	}

}

@media only screen and (min-width: 800px) {

	#links .container {
		grid-template-columns: repeat(8, 1fr);
	}

}

@media only screen and (min-width: 1024px) {
	
	#links {
		margin-top: 100px;
	}

	#links .container {
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-between;
	}

	#links .link {
		flex-basis: 100%;
		flex-shrink: 1;
		font-size: 14px;
	}

	#links img {
		filter: saturate(80%) opacity(60%) grayscale(30%);
	}

	#links img:hover {
		filter: none;
	}

}

/* ----- MENU DO RODAPÉ -------------------------------------------------------------- */

#menu-rodape a:hover {
	color: var(--laranja);
}