body,
html {
	background-color: #EEEEEE !important;
	width: auto !important;
	height: auto !important;
}

body.visor_aberto {
	overflow: hidden;
}

.projeto_nao_encontrado {
	min-height: calc(100vh - 230px);
	padding-top: 4rem;
}

/* Cabeçalho */
.projeto_hero {
	position: relative;
	overflow: hidden;
	background-color: #1B1C1D;
}

.projeto_hero_fundo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(24px) brightness(.35);
	transform: scale(1.15);
}

.projeto_hero_conteudo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 2rem 0;
}

.projeto_capa {
	flex: 0 0 auto;
	width: 460px;
	max-width: 45%;
	aspect-ratio: 460 / 215;
	object-fit: cover;
	border-radius: .5rem;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .5);
}

.projeto_titulo {
	min-width: 0;
}

.projeto_titulo .ui.header {
	margin: .5rem 0 1rem;
	overflow-wrap: anywhere;
}

.projeto_voltar {
	color: rgba(255, 255, 255, .8);
}

.projeto_voltar:hover {
	color: #FFFFFF;
}

/* Conteúdo */
.projeto_conteudo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1rem;
	align-items: start;
	padding: 1rem 0;
}

.projeto_coluna {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.projeto_coluna > .ui.segment {
	margin: 0;
}

.projeto_descricao {
	line-height: 1.6;
}

.projeto_descricao > :last-child {
	margin-bottom: 0;
}

/* Progresso */
.projeto_progresso_item + .projeto_progresso_item {
	margin-top: 1rem;
}

.projeto_progresso_rotulo {
	display: flex;
	justify-content: space-between;
	margin-bottom: .35rem;
}

.projeto_progresso .ui.progress {
	margin: 0 !important;
}

.projeto_progresso .ui.progress .bar {
	min-width: 0;
}

/* Informações */
.projeto_ficha {
	margin: 0;
}

.projeto_ficha > div + div {
	margin-top: .75rem;
}

.projeto_ficha dt {
	color: rgba(0, 0, 0, .6);
}

.projeto_ficha dd {
	margin: 0;
	font-weight: 700;
}

/* Galeria */
.projeto_galeria {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: .75rem;
}

.projeto_galeria > button {
	padding: 0;
	border: 0;
	border-radius: .25rem;
	overflow: hidden;
	background: rgba(0, 0, 0, .05);
	cursor: zoom-in;
}

.projeto_galeria > button:focus-visible,
.visor_botao:focus-visible {
	outline: 3px solid #2185D0;
	outline-offset: 2px;
}

.projeto_galeria img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .2s ease;
}

.projeto_galeria > button:hover img {
	transform: scale(1.04);
}

/* Visor da galeria */
#visor_galeria {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 5rem;
	background-color: rgba(0, 0, 0, .92);
	/* Sem isso, deslizar para trocar de imagem aciona o "voltar" do navegador no celular */
	touch-action: pinch-zoom;
}

#visor_galeria[hidden] {
	display: none;
}

#visor_imagem {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#visor_contador {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	text-align: center;
	color: #FFFFFF;
}

.visor_botao {
	position: absolute;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #FFFFFF;
	background-color: rgba(255, 255, 255, .15);
	cursor: pointer;
}

.visor_botao:hover {
	background-color: rgba(255, 255, 255, .3);
}

.visor_botao i.icon {
	margin: 0;
}

#visor_fechar {
	top: .5rem;
	right: .5rem;
}

#visor_anterior {
	top: calc(50% - 1.75rem);
	left: .75rem;
}

#visor_proxima {
	top: calc(50% - 1.75rem);
	right: .75rem;
}

/* Créditos */
.ui.feed > .event[hidden] {
	display: none;
}

.projeto_creditos .label img {
	border-radius: 50%;
}

.projeto_creditos .summary a {
	overflow-wrap: anywhere;
}

/* Tablet e celular: uma coluna, com o progresso primeiro e os créditos por último */
@media (max-width: 991px) {
	.projeto_conteudo {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.projeto_coluna {
		display: contents;
	}

	.projeto_progresso {
		order: -1;
	}

	.projeto_creditos {
		order: 1;
	}
}

@media (max-width: 767px) {
	#visor_galeria {
		padding: 4rem .5rem 4.5rem;
	}

	#visor_anterior,
	#visor_proxima {
		top: auto;
		bottom: .25rem;
	}
}

@media (max-width: 600px) {
	.projeto_hero_conteudo {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem 0;
	}

	.projeto_capa {
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.projeto_galeria {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
