/*
Theme Name: Pública 3.0
Theme URI: http://www.apublica.org/
Version: 1.0
Description: Theme made for Agência Pública
Author: Babak Fakhamzadeh & Luiza Peixe
Author URI: https://www.babakfakhamzadeh.com
Text Domain: publica3
*/

/* quick fix */
html, body, .home {
	overflow-x: hidden;
	position: relative;
}

/* Wordpress styles */

.screen-reader-text {
	display: none;
}

/* Modal adjustments */
.modal-body {
	font-family: Georgia,times new roman,Times,serif;
}

/* Gallery adjustments */
.gallery img {
	width: 100%;
	height: auto;
}

.ekko-lightbox .modal-body {
	padding-bottom: 0px;
	margin-bottom: -15px;	
}

/* Changing newsletter submit button */
.newsletter-box input[type=submit] {
	background: #222222;
	border: 0 none;
	cursor: pointer;
	color: white;
}

.mc4wp-response {
	margin-top: 1rem;
}

/* Graphic novel */
.nav-graphic-novel:not(.nav-sidebar) {
	width: 100%;
}
.nav-graphic-novel.nav-sidebar {
	position: fixed;
	right: 0;
	top: 360px;
	width: 50px;	
}

.nav-graphic-novel.nav-sidebar .btn {
	padding-left: 0;
	padding-right: 0;
}

.graphic-novel-page {
	display: none;
}

.graphic-novel-page.active {
	display: block;
}

/* Carousel */
.carousel-control-prev, .carousel-control-next {
	width: 5%;
	min-width: 50px;
	top:50px;
	bottom:50px;
}

/* Cards */
.faded-background[data-href], .linked-background[data-href] {
	cursor: pointer; 
	cursor: hand;
}

.linked-background {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
}

.to-foreground {
	z-index: 10;
}

.thumbnail-4x3 {
	width: 100%;
	padding-bottom: 75%;
	position: relative;
	background-position: center center;
	background-size: cover;
}

.thumbnail-16x9 {
	width: 100%;
	padding-bottom: 56.25%;
	position: relative;
	background-position: center center;
	background-size: cover;
}

.thumbnail-4x3 a, 
.thumbnail-16x9 a {
	display: block;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
}

/* Progress bar */
#progressBarWrap {
	position:fixed;
	top: 40px;
	left: 0;
}
#progressBar {
	width: 0;
	transition: all 0.25s ease-in-out;
	background-color: #FFD400;
	height: 3px;
}

/* Special */
.featured-image-special {
	height: 33vh;
	background-size: cover;
	background-position: center center;
}

.btn-special .img-wrap{
}

.btn-special img {
	margin: -0.5rem -2rem;
	width: auto;
	height: 64px;
}

.btn-special .text-wrap{
	text-align: left;
	padding: 0.1rem 1rem;
}

.btn-special .header {
	font-size: 50%;
}

.btn-special .title {
	font-size:200%;
}

.also-read a,
.most-read a,
.gallery-item a {
	border: none !important;
}

/* Footnote */
.footnote {
	border: 1px solid #FFD400;
	border-left: 3px solid #FFD400;
	clear: both;
/*	background-color: rgba(255,212,0,.25); */
	padding-top:1rem;
	padding-bottom:1rem;
	padding-right: 1rem;
}

.footnote p {
	font-size: 90%;
	line-height: 1.5;
	margin-bottom: 1rem;
	padding-left: 27px;
}

/* Wordpress alignment */
.aligncenter {
	text-align: center;
}

img.alignright, img.alignleft {
	float: none;
	width: 100%;
	height: auto;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.modal-body figure.aligncenter img {
	width: 100% !important;
	height: auto;
}

img.alignnone, img.aligncenter, img.size-full {
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	img.alignright {
		float: right;
		margin-left: 1rem;
		max-width: 400px;
		height: auto;
	}
	
	img.alignleft {
		float: left;
		margin-right: 1rem;
		max-width: 400px;
		height: auto;
	}
}

/* Post widgets */
.postWidgets .widget {
	background-color: #efefef;
}

.postWidgets .widget h3 {
	padding: 0 15px;
}

.postWidgets .widget .textwidget p {
	padding: 0 15px 15px 15px;	
}

/* Shares */
.at4-share-count-container {
	color: black !important;
}

/* Special */
a.special {
	font-family: Georgia, 'Times New Roman', Times, serif;
	border: 1px solid #FFD400;
	display: inline-block;
	padding: 0.25em 3em;
	font-style: italic;
	margin-bottom: 0.25em;	
}

/* Donation */
.donationBox h3 {
	color: #FFD400;
	text-transform: uppercase;
	font-size: 3rem;
	font-weight: bold;
}

/* Collapsible */
.collapsible .card {
	border: 0;
}
.collapsible .card-header img {
	width: 36px;
	height: auto;
}

.image-inside-collapsible {
	position:relative;
}

.collapsible .card-body {
	border-left: 1px solid #f8f9fa;
	border-right: 1px solid #f8f9fa;
	border-bottom: 1px solid #f8f9fa;
}

.collapsible .card-header a {
	border: 0 !important;
}

.collapsible .card-header a:hover {
	background: none !important;
}

/* Pagination */
.paginationSimple {
	margin-top: 0.25rem;	
}

.paginationSimple .page-item {
	display: none;
}

.paginationSimple .active {
	display: none;
}

/* widgets */
#sidebar-1 .widget h2 {
	display: none;
}

#sidebar-1 .widget.widget_text:not(.widget_custom_html) {
	background-color: #efefef;
	text-align: center;
}

#sidebar-1 .widget.widget_text .textwidget:not(.custom-html-widget) {
	width: calc(100% - 30px);
	padding-top:3rem;
	padding-bottom:3rem;
	margin-left:auto;
	margin-right:auto;
} 

@media (min-width: 567px) {
	#sidebar-1 .widget.widget_text .textwidget:not(.custom-html-widget) {
		width: 510px;
	}
}

@media (min-width: 768px) {
	#sidebar-1 .widget.widget_text .textwidget:not(.custom-html-widget) {
		width: 570px;
	}
}

@media (min-width: 992px) {
	#sidebar-1 .widget.widget_text .textwidget:not(.custom-html-widget) {
		width: 770px;
	}
}

@media (min-width: 1200px) {
	#sidebar-1 .widget.widget_text .textwidget:not(.custom-html-widget) {
		width: 920px;
	}
}

/* Contact Form 7 */
div.wpcf7 .screen-reader-response[role="alert"] {
	width: 100%;
	height: auto;
	margin-bottom: 3rem;
	position: relative ;
	text-align: center; 
	border-top:1px solid #FFD400;
	border-bottom: 1px solid #FFD400;
	padding:3rem;
	background-color:#f8f9fa;
}

/* Mailchimp */
.mc4wp-form-basic input[type="email"] {
	width: 0 !important;
}

/* Non pt content */
.brick-category-2765, .brick-category-2766 {
	display: none;
	height: 0;
}

.category-2765 .brick-category-2765 {
	display: block;
	height: auto;
}

.category-2766 .brick-category-2766 {
	display: block;
	height: auto;
}

.search .brick-category-2765,
.search .brick-category-2766 {
	display: block;
	height: auto;
}

/* freegrid (alternative freewall) */
.freeGrid .col {
	background-size:cover ;
	background-position: center center;	
	position: relative;
	height: 240px;
}

.freeGrid .col a.blocked {
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-color: rgba(0,0,0,.125);	
	transition: all 0.25s ease-in-out;
	border: 1px solid white !important;
}

.freeGrid .col a.blocked:hover {
	background-color: rgba(0,0,0,.25);	
}

.freeGrid .col h2 {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 1rem;
	text-align: center;	
}

.freeGrid .col.video-summary .play-button {
	left:50%;
	top:50%;
	bottom:auto;
	font-size:200%;
	transform:translate(-50%, -100%);
}

.freeGrid .col h2 a {
	color: white;
	border: none !important;
}

@media (min-width: 992px) {
	.freeGrid .col {
		height: 360px;
	}
}

@media (min-width: 1200px) {
	.freeGrid .col {
		height: 480px;
	}

	.freeGrid .col.video-summary .play-button {
		font-size:300%;
	}
}

/* Special */
.specialSlidesWrap {
	position: relative;
}

.specialSlidesWrap .labels {
	position:absolute;
	top: 0px;
	left: 50%;
	transform:translate(-50%,0);
}

h3 a.active {
	border-bottom: 3px solid #FFD400;
}

/* Special menu */
.inlineMenu {
	position: absolute;
	top: 10px;
	right: 15px;
	z-index: 1010;
}
@media (min-width: 567px) {
	.inlineMenu {
		right: 0px;
	}
}
@media (min-width: 768px) {
	.inlineMenu {
		right: 15px;
	}
}

.inlineMenu button {
	border-radius: 100%;
	width: 48px;
	height: 48px;
	padding: 0;	
}

.inlineMenu button:after {
	border: 0;
}

.inlineMenu .list-group .list-group-item a {
	border-bottom: 1px solid #222222;	
}

.inlineMenu .list-group .list-group-item:last-child a {
	border-bottom: 0;
}

.inlineMenu .list-group-item {
	background-color: #FFD400;
}

.inlineMenu .list-group-item:hover {
	background-color: #222222;
}

.inlineMenu .list-group-item:hover a {
	color: #FFD400;
}

.inlineMenu .list-group {
	border-bottom: 3px solid #222222;	
}

/* Video at top of video page */
@media (min-width: 768px) {
	.video-large .play-button {
		font-size: xx-large;
		left: 60px;
	}
	
	.video-large .texts {
		width: calc(100% - 140px);
	}
}

/* Inverse video */
.videoInverse {
	background-color: #222;
	color: white;
}

.videoInverse .category-select {
	background-color: #222;
}

.videoInverse .category-select button {
	background-color: white;
}

.videoInverse .contents a {
	color: white;
}

.videoInverse .summaries .card {
	border-bottom: 0;
}

.videoInverse .freewall {
	background-image: none !important;
}

.videoInverse .card {
	background-color: #222;
	color: white;
}

.videoInverse .card a {
	color: white;
}

.videoInverse .tags a {
	background-color: white;
}

.videoInverse .tags a:hover {
	background-color: #FFD400;
}

/* Hero with video */
.hero-with-video {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 0;
	height: calc(100vh - 40px);
}

.hero-with-special .play-button {
	position: absolute;
	z-index: 100;
	padding-left: 1rem;
	padding-right: 1rem;
	border-radius: 0.3rem;	

	left:50%;
	top:50%;
	font-size:300%;
	transform:translate(-50%, -100%);
}

.hero-with-special .play-button {
	color:#FFD400;
}
.hero-with-special .play-button:hover {
	color: #222;
}

.publica3_three_pieces_widget .col-12 {
	background-color: white;
}

/* Amazonia resiste */
.special-template-single-amazonia-resiste .animations {
	position: relative;	
}

.special-template-single-amazonia-resiste .animations,
.special-template-single-amazonia-resiste .animations > div:not(.labels):not(.dropdown) {
	width: 100vw;
	height: 52.647975078vw; /* 845/1645 */
	background-position: center center;
	background-size: cover;
}

.special-template-single-amazonia-resiste .animations .labels,
.special-template-single-amazonia-resiste .animations h1 {
	position: absolute;
	z-index: 1010;
	width: 100%;
}

.special-template-single-amazonia-resiste .animations #mapFeature {
	opacity: 0.5;
}

.special-template-single-amazonia-resiste .animations #mapContour {
	opacity: 0.5;
}

.special-template-single-amazonia-resiste .animations .layer {
	position: absolute;
}

.special-template-single-amazonia-resiste #cloudsBottom {
	opacity: 0.67;
}

.special-template-single-amazonia-resiste .animations .point {
	border-radius: 100%;
	background-color: rgba(255,212,0,0.67);
	width: 24px;
	height: 24px;
	position: absolute;
	display: inline-block;
	border: 4px solid #FFD400;
}

@media (min-width: 768px) {
	.special-template-single-amazonia-resiste .animations .point {
		width: 36px;
		height: 36px;
	}
}

.special-template-single-amazonia-resiste h1 img {
/*	height: 128px;
	width: auto;
	max-width: 50%;*/
	max-width: 100%;
	height: auto;
}

.special-template-single-amazonia-resiste .headingOverlay {
/*	position: absolute;
	top: 200px;
	left: 50%;
	transform: translate(-50%, 0);
	font-size: larger; */
}

.special-template-single-amazonia-resiste .headingOverlay .label {
	color: white;
}

.special-template-single-amazonia-resiste .headingOverlay h1 {
	font-size: 2rem;
	color: white;
}

@media (min-width: 768px) {
	.special-template-single-amazonia-resiste .headingOverlay .label {
		font-size: large;
	}

	.special-template-single-amazonia-resiste .headingOverlay h1 {
		font-size: 3.5rem;
	}
}

.special-template-single-amazonia-resiste .modal-group {
	display: none;	
}

.special-template-single-amazonia-resiste .point:hover {
}

/* Load overlay */
#loadOverlay{
}

.inHiding {
/*	display: inline-block !important;*/
}

/* interview */
.interview-widget h4 {
	border-top: 3px solid #FFD400;
}

.interview-widget img {
	max-width: 256px;
	height: auto;
}

.interview-widget .read-more a {
	border-top: 1px solid rgba(0, 0, 0, 0.125);
	font-size: small;
	display: block;
}

.interview-widget .double-quote {
	font-size: 3.5rem;
	margin-right: 15px;
}

@media (min-width: 768px) {
	.interview-widget .centrist {
		top: 50%;
	    transform: translate(0, -50%);
		position: absolute;
	}
}

@media (min-width: 1200px) {
	.interview-widget h2 {
		font-size: 2.5rem;
	}

	.interview-widget .double-quote {
		font-size: 5rem;
	}
}

/* Amazonia Publica */
#amazoniaPublica #slidesWrap {
	width: 100%;
	height: 200vh;
	position: relative;
	max-height: 1024px;
}

#amazoniaPublica .slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center center;
	z-index: 10;
}

#amazoniaPublica #slidesOverlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	background-image: url(/wp-content/uploads/2018/05/overlay1.png);
	opacity: 0.5;
}

#amazoniaPublica #specialIntroduction {
	position: absolute;
	top: 30px;
	right: 0;
	z-index: 30;
	text-align: right;
}

#amazoniaPublica #specialIntroduction h1 {
	padding: 15px;
	background-color: black;
	color: white;
	margin-bottom: 5px;
	display: inline-block;
	float:right;
}

#amazoniaPublica #specialIntroduction #intro {
	font-style: italic;
	padding: 15px;
	background-color: rgba(255,255,255,0.75);
	width: calc(100vw - 30px);
	display: inline-block;
	float: right;
	clear: both;
}

@media (min-width: 768px) {
	#amazoniaPublica #specialIntroduction #intro {
		width: 50%;
	}
}

#amazoniaPublica #specialIntroduction #intro p{
	margin: 0;	
}

#amazoniaPublica #extras {
	z-index: 20;
	position: absolute;
	right: 0;
	bottom: 0px;	
}

#amazoniaPublica #extras ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: right;	
}

#amazoniaPublica #extras a {
	color: white;
	font-size: small;
	background-color: black;
	padding: 5px 15px 5px 5px;	
	margin: 0 0 5px 0;
}

#amazoniaPublica .list-group {
	clear: both;
	float: right;
	margin-right: 15px;
	margin-top: 5px;
	background-color: white;
}

#amazoniaPublica .list-group .list-group-item {
	padding: 5px;
}

#amazoniaPublica .list-group .list-group-item.open {
	background-color: rgba(255,215,0,0.25);
}

#amazoniaPublica .list-group .list-group-item.open .fa-chevron-down {
	display: none;
}

#amazoniaPublica .list-group .list-group-item.open .fa-chevron-up {
	display: inline-block;
}

#amazoniaPublica .list-group .list-group-item.closed .fa-chevron-down {
	display: inline-block;
}

#amazoniaPublica .list-group .list-group-item.closed .fa-chevron-up {
	display: none;
}

#amazoniaPublica .menuFolder,
#amazoniaPublica .menuItem {
	display: none;
}

/* content-sabesp */
.content-sabesp .select2.select2-container.select2-container--default {
	width: 100% !important;
}

.content-sabesp .tabela {
	width: 100%;
}

.content-sabesp .blue.awesome, 
.content-sabesp .blue.awesome:visited {
	background-color: #FFD400;
	margin-bottom:1rem;
	color: #222;
}

.content-sabesp #resultadoclientes {
	text-align: center;
}