/*
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
*/


/* iframe wraps */
.iframe-wrap {
	position:relative; 
	width:100%; 
	height:0px; 
	margin-bottom:2rem;
}

.iframe-wrap-75 {
	padding-bottom:75%;	
}

.iframe-wrap-5625 {
	padding-bottom:56.25%;	
}

.iframe-wrap iframe {
	border: 0;
	position:absolute; 
	left:0; 
	top:0; 
	width:100%; 
	height:100%
}

/* sliding background, experimental */

.sliding-background-wrapper {
  overflow: hidden;
}

.sliding-background {
	background-repeat: repeat-x;
	width: 5076px;
	animation: slide 120s linear infinite;
}

@keyframes slide{
  0%{
    transform: translate3d(0, 0, 0);
  }
  50%{
    transform: translate3d(-868px, 0, 0);
  }
  100%{
    transform: translate3d(0px, 0, 0);
  }
}

/* quick fix */

html, body, .home {
	overflow-x: hidden;
	position: relative;
}
.w-100 {
	height: auto;
}

twitter-widget {
	margin: auto;
}

.grecaptcha-badge {
	display: none !important;
}

/* Wordpress styles */

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

/* Modal adjustments */
.modal-body:not(.narrowNewsletter) {
	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;	
}

/* nav */
.navbar-transparent {
	background-color: rgba(0,0,0,0.5) !important;
	box-shadow: none !important;
	color: #f8f9fa;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.navbar-transparent.bg-light {
	background-color: #f8f9fa !important
}

.navbar-transparent:not(.bg-light) i,
.navbar-transparent:not(.bg-light) .menuText,
.navbar-transparent:not(.bg-light) a.label {
	color: #f8f9fa !important;
}

.navbar-transparent:not(.bg-light) .aliados-button a {
	border-color: #ffd400 !important;
}
.navbar-transparent:not(.bg-light) .aliados-button a.label:hover,
.navbar-transparent:not(.bg-light) .label:hover {
	color: black !important;
}
nav .avatar {
	width: auto;
	height: 20px !important;
	padding: 0;
	margin: 0;
}

#searchSection, 
#userMenu,
#newsletterSection {
	box-shadow: 0 0 6px rgba(0,0,0,.25);
	display: none;
	width: 100%;
	position: fixed;
	top: 40px;
	left: 0;
	z-index: 1029;
}

/* offcanvas hack */
.offcanvas-start,
.offcanvas-end {
	height: 100vh;
	box-shadow: 0 0 6px rgba(0,0,0,.25);
	position: fixed;
	top: 0;
	z-index: 100030;
	width: 100%;
	max-width: 480px;
}

.offcanvas-start {
	left: 0;
}

.offcanvas-end {
	right: 0;
}

.offcanvas-body {
	overflow-y: auto;
}
.offcanvas-body::-webkit-scrollbar {
	width: 0px;
	background: transparent; /* make scrollbar transparent */
}


/* offcanvas main menu */
#offcanvas-menu {
	list-style: none;
}

#offcanvas-menu li {
	margin-bottom: .5rem;
}

#offcanvasMenu ul {
	list-style: none;
	padding: 0;
}

#offcanvasMenu a {
	font-size: 1rem !important;
}

#offcanvasMenu h5 {
	border-bottom: 1px solid #222;
	padding-bottom: .25rem;
}

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

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

/* placeholders */
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	color: #FFD400;
	font-size: 1rem;
	line-height: 1.25rem;
}
::-moz-placeholder { /* Firefox 19+ */
	color: #FFD400;
	font-size: 1rem;
	line-height: 1.25rem;
}
:-ms-input-placeholder { /* IE 10+ */
	color: #FFD400;
	font-size: 1rem;
	line-height: 1.25rem;
}
:-moz-placeholder { /* Firefox 18- */
	color: #FFD400;
	font-size: 1rem;
	line-height: 1.25rem;
}

/* 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 */
.specialLabel {
	font-family: "Raleway", sans-serif;
	font-weight: 900;
	margin-right: 0.5rem;
	text-transform: uppercase;
}

.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 */
.specialWrap {
	font-size: 0.8rem;
}
a.special {
	font-family: "Raleway", sans-serif;
	border: 1px solid #FFD400;
	display: inline-block;
	padding: 0.25em 1em;
	margin-bottom: 0.25em;	
	font-weight: bold;
	text-transform: uppercase;
}

/* 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;*/
}

.checkbox-parent-label {
	display: none !important;
}

.yikes-easy-mc-form .yikes-easy-mc-checkbox-label {
	display: inline !important;
}

.yikes-easy-mc-form .field-no-label, .yikes-easy-mc-form label {
	text-align: left;
}

.yikes-easy-mc-form .field-no-label p, .yikes-easy-mc-form label p {
	margin-top: 1.5rem !important;
	text-align: center;
}

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

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

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

/* Search */

.search .brick-category-2765,
.search .brick-category-2766 {
	display: flex;
	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;
	text-shadow: 0px 0px 2px black;
}

.freeGrid .col h2 a:hover {
	color: white !important;
	text-shadow: 0px 0px 2px white !important;
}

.freeGrid .col a:hover {
	background: 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;
}

.videoInverse .newsletter-box h1 div {
	background-color: rgba(0,0,0,0.75);
}
/* 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 {
}

/* interview */
.interview-widget h4,
.publica3_podcast_widget .podcast-top {
	border-top: 2px solid #FFD400;
	padding-top: .25rem !important;
	font-weight: normal;
}

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

.interview-widget .read-more a,
.publica3_podcast_widget .read-more a {
	border-top: 1px solid #f8f9fa;
	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: 100vw;
	height: 100vh;
	position: relative;
}

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

#amazoniaPublica .slide img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

#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;
}

#amazoniaPublica #specialIntroduction #intro {
	font-style: italic;
	background-color: rgba(255,255,255,0.75);
	width: calc(100vw - 30px);
}

#amazoniaPublica #specialIntroduction .dropdown-menu {
	max-width: min(95vw, 320px);
	overflow: hidden;
	text-overflow: ellipsis;
}

#amazoniaPublica #specialIntroduction .dropdown-item {
		overflow: hidden;
		text-overflow: ellipsis;
	}

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

#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;
}

/* stacked special legacy */
/* .stackedSpecial .articleTitle {
	position: absolute;
	bottom: 2rem;
	padding: 1rem;
	background-color: rgba(0,0,0,.25);	
}

.stackedSpecial .freeGrid .author {
	position: absolute;
	top: 0;
	right: 0;
}

.stackedSpecial .featured-image-alt .content {
	bottom: auto;
	top: 50%;
	transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
	.stackedSpecial .freeGrid h2 {
		font-size: 1.75rem;		
	}
}

@media (max-width: 768px) {
	.stackedSpecial .featured-image-alt .introduction h1, 
	.stackedSpecial .featured-image-none h1 {
		font-size: 4.5rem;		
	}
} */

/* section style (used on homepage and above widgets) */
.section-divider {
	border-top: 2px solid #ffd400;
}
.section-heading {
	text-align: left;
	margin-top: 0;
	font-weight: inherit;
	text-transform: uppercase !important;
	padding-top: .25rem !important;
	margin-bottom: 1.5rem !important;
	font-size: 1.75rem;
	font-family: Raleway, Roboto, "Helvetica Neue", Arial, sans-serif !important;
	/* border-top: 2px solid #ffd400; */
}

/* additional homepage styles */
.hide_date .meta .card-date,
.hide_date .meta .divider {
	display: none;
}

.hide_summary .card-text.summary {
	display: none !important;
}

/* embeds */
.twitter-tweet.twitter-tweet-rendered,
.instagram-media.instagram-media-rendered {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* formrenderer, citybase */
.fr_add_file label {
	border: 1px solid #ccc;
}

.fr_add_file label:hover {
	background-color: #eee;
}

.fr_response_field_website input {
	width: 100% !important;
}

/* web stories */
.web-stories-widget div.d-flex {
	border-top: 2px solid #ffd400;

}
.web-stories-widget h2 {
	text-align: left;
	margin-top: 0;
	font-weight: inherit;
	text-transform: uppercase !important;
	padding-top: .25rem !important;
	margin-bottom: 1.5rem !important;
	font-size: 1.75rem;
	font-family: Raleway, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* backwards compatibility */

.thumbnail_wrap {
	position: relative;
	width: 100%;
	height: 0;
}

.thumbnail_wrap_3x4 {
	padding-bottom: 133%;
}

.thumbnail_wrap_4x3 {
	padding-bottom: 75%;
}

.thumbnail_wrap_1x1 {
	padding-bottom: 100%;
}

.thumbnail_wrap .featured-image {
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.img-128 {
	width: 128px;
	height: 128px;
}

.featured-image {
	height: 100vh;
	background-size: cover;
}

.grayscale {
	filter: grayscale(1);
}

.article-author,
.author-avatar {
	margin-left: 50%; 
	transform: translateX(-50%);
}

@media (min-width: 768px) {
	.article-author {
		margin-left: 100%; 
		transform: translateX(-100%);
	}
}