/* Specific styles for 100 project */

:root {
	--main-color: var(--brand-blue);
	--light-color: 84,149,236;
	--dark-color: 37,97,201;
	--items-per-line: 4;
}

.ferdio-footer-credits {
	padding-bottom: 20px;
}

/* Project logo */

.ferdio-header {
	--second-logo-width: 280px;
	--logo-total-width: calc( var(--header-gap) + var(--logo-size) + var(--header-gap) + var(--second-logo-width) );
}


.ferdio-header .logo a.logo-100 {
	width: var(--second-logo-width);
	height: var(--header-height);
}

@media (max-width: 450px) {
	.ferdio-header .logo a.logo-100 {
		width: 40%;
	}
}

.ferdio-header .logo a.logo-100 svg path.d {
	fill: rgb(var(--dark-color)) !important;
}

.ferdio-header .logo > :not(.logo-100):after,
.ferdio-header .logo > :not(.logo-100):before {
	content: '';
	background: rgb(var(--brand-dark));
	position: absolute;
	pointer-events: none;
	display: none;
}

.ferdio-header .logo > :not(.logo-100):focus:after,
.ferdio-header .logo > :not(.logo-100):hover:after,
.ferdio-header .logo > :not(.logo-100):focus:before,
.ferdio-header .logo > :not(.logo-100):hover:before {
	display: block;
}

.ferdio-header .logo > :not(.logo-100):after {
	content: 'Go to Data Viz Project';
	z-index: 999;
	color: white;
	width: 80px;
	top: calc(var(--header-height) + 10px);
	left: -5px;
	padding: 5px;
	text-align: center;
	border-radius: 5px;
	pointer-events: none;
	font-size: 0.8em;
	line-height: 1.2em;
}

.ferdio-header .logo > :not(.logo-100):before {
	z-index: 999;
	width: 10px;
	height: 10px;
	top: calc(var(--header-height) + 10px - 5px);
	left: 30px;
	transform: rotate(45deg);
}

/* Additional taxonomies */

.ferdio-header .button-group#story .button {
	display: block;
	margin: 10px auto;
	font-size: 17.5px;
}

.dmbs-content.active-story {
	padding-top: 390px;
}

.dmbs-content.active-property {
	padding-top: 110px;
}

.ferdio-header .button-group#property .group-wrap {
	padding: 3px 25px;
}

.ferdio-header .button-group#property .button {
	background: transparent;
	border: none;
	display: inline-flex;
	align-items: center;
	width: 80px;
	height: 90px;
	flex-direction: column;
	color: white;
}

.ferdio-header .button-group#property .button .replaced-svg {
	transition: 0.2s ease-in-out;
	width: 100%;
	height: 100%;
}

.ferdio-header .button-group#property .button .replaced-svg * {
	fill: none !important;
	stroke: white !important;
	stroke-width: 1px !important;
	vector-effect: non-scaling-stroke !important;
}

.ferdio-header .button-group#property:focus-within .button:not(:focus),
.ferdio-header .button-group#property:hover .button:not(:hover),
.ferdio-header .button-group#property:has(.is-checked) .button:not(.is-checked):not(:hover):not(:focus) {
	opacity: 0.5;
}

.ferdio-header .button-group#property .button.is-checked {
	opacity: 1 !important;
}

.postmeta-single .property li {
	margin: 10px 0;
}

.postmeta-single .property li {
	width: 60px;
	height: 60px;
}
.postmeta-single .property svg * {
	stroke: rgb(var(--dark-color)) !important;
	stroke-width: 1px !important;
	vector-effect: non-scaling-stroke !important;
}

/* Homepage */

#intro {
	max-width: 725px;
	margin: auto;
	text-align: center;
	font-size: 18px;
	padding: 25px;
	margin-bottom: 50px;
}

#intro .dataset {
	width: 100%;
	max-width: 500px;
}

.isotope-item a h2 {
	color: rgba(var(--text-color),.3);
}

/* About page */


.single-page .wp-video,
.single-page .about-animation {
	display: block;
	max-width: 400px;
	width: 100%;
	aspect-ratio: 1/1;
	margin: 50px auto;
	filter: drop-shadow(4px 4px 8px rgba(var(--text-color),.25));
	pointer-events: none;
}

.single-page .wp-video .mejs-controls {
	display: none;
}

p.action {
  margin-bottom: 75px;
}

/* Viz page */

.viz-page .page-title {
	text-align: center;
	position: relative;
}

.viz-page .page-title nav {
	display: block;
	clear: both;
	position: absolute;
	top: 0;
	left: 15px;
	right: 15px;
}

.viz-page .page-title nav a {
	font-size: 20px;
	display: flex;
}

.viz-page .page-title nav a:focus,
.viz-page .page-title nav a:hover {
	color: rgb(var(--brand-dark));
}

.viz-page .page-title nav a:before,
.viz-page .page-title nav a:after {
	display: block;
	width: 30px;
	height: 30px;
	background-size: contain;
	transition: transform .2s ease-in-out;
}

.viz-page .page-title nav a[rel="prev"] {
	float: left;
}

.viz-page .page-title nav a[rel="next"] {
	float: right;
}

.viz-page .page-title nav a[rel="prev"]:before {
	content: '';
	background: url('../img/icon-left.svg');
}

.viz-page .page-title nav a[rel="next"]:after {
	content: '';
	background: url('../img/icon-right.svg');
}

.viz-page .page-title nav a[rel="prev"]:focus:before,
.viz-page .page-title nav a[rel="prev"]:hover:before {
	transform: translateX(-5px);
}

.viz-page .page-title nav a[rel="next"]:focus:after,
.viz-page .page-title nav a[rel="next"]:hover:after {
	transform: translateX(5px);
}

.viz-page .content-single {
	margin-top: 15px;
	margin-bottom: 30px;
}

.viz-page .postmeta-single .shape,
.viz-page .postmeta-single .property {
}


@media (max-width: 991px) {
	.viz-page .postmeta-single .shape,
	.viz-page .postmeta-single .property {
		display: flex;
		flex-direction: row;
	}
	.viz-page .postmeta-single .col-sm-12 {
		margin-top: 25px;
	}
}

/* IIBA vote */

.ferdio-header #nav-main .nav-promo.iiba {
	display: block;
}

.ferdio-header #nav-main .nav-promo.iiba a {
	background: rgb(var(--brand-dark));
}