/*!
Theme Name: idmais-foundation
Theme URI: http://underscores.me/
Author: Manufactura Independente
Author URI: http://manufacturaindependente.org
Description: ID+ theme based in Foundation 6
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: idmais-foundation
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

idmais-foundation is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Navigation
	## Links
	## Menus
# Accessibility
# Overriding foundation styles
# Custom styles
  ## Navigation  (header, footer and mobile)
  ##
  
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Overriding Foundation styles
--------------------------------------------------------------*/

html {
    background: #eee url('images/bg-paper_fibers.png') repeat 0 0;
}

body,
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: "Aileron", Roboto, "DejaVu Sans", Helvetica, Arial, sans-serif;
}

@media screen and (max-width: 39.9375em) { /* Titles sizes in mobile */
  h1, .h1 {
    font-size: 3rem; }
  h2, .h2 {
    font-size: 2.5rem; }
  .author h2, .author .h2 {
    font-size: 1.75rem; }
  h3, .h3 {
    font-size: 1.9375rem; }
  h4, .h4 {
    font-size: 1.5625rem; }
  .page-header h1, .page-header h2, .page-header h3, .page-header h4,
  .entry-header h1, .entry-header h2, .entry-header h3, .entry-header h4 {
    line-height: 1;
  }
}

a img,
input:focus,
select:focus,
textarea:focus,
button:focus,
.cell:focus { outline: none; }

img {border : 0;}

a {
    color: inherit;
    border-bottom: 2px solid #f68712;}
    a:hover, a:focus {
    color: #f68712;
    outline: none; }
    a > img { display: block; border-bottom: 0; }

h1 a, .h1 a,
h2 a, .h2 a,
h3 a, .h3 a,
h4 a, .h4 a,
h5 a, .h5 a,
h6 a, .h6 a { border-bottom: 0; }

.button {
    color: #0a0a0a;
    background-color: transparent;
    border-bottom: 2px solid #f68712;
    text-align: left;
    font-weight: 700;
    padding: 0.85em 0 0.5em;
}

.button:hover,
.button:focus {
    color: #f68712;
    background-color: transparent;
    border-bottom: 2px solid #f68712;
}

button, .button,
input, select { border-radius: 0; }

/* Search icon from Foundation
*/

@font-face {
  font-family: "foundation-icons";
  src: url("fonts/foundation-icons/foundation-icons.ttf") format("truetype"),
       url("fonts/foundation-icons/foundation-icons.svg#fontcustom") format("svg");
  font-weight: normal;
  font-style: normal;
}

.fi-page::before,
.fi-download:before,
.fi-magnifying-glass:before {
    font-family: "foundation-icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    text-decoration: inherit;
}

.fi-magnifying-glass:before { content: "\f16c"; }
.fi-page::before { content: "\f18e"; }
.fi-download::before { content: "\f143"; }

/*--------------------------------------------------------------
# Custom styles
--------------------------------------------------------------*/

body {
    background: #000;
}

#main,
.content {
    background: #fff url('images/bg-paper_fibers.png') repeat 0 0;
    min-height: 300px;
}

#top-navigation .grid-x {
    background-color: #000;
    color: #fff;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    line-height: 1;
}

/* Theme main menu - editable
 * Top navigation
 * Mobile navigation
*/


#primary-menu > li.menu-item {
    font-size: 1.25rem;
    font-weight: 700;
	-ms-flex: 1 1 0px;
	flex: 1 1 0px;
    width: auto;
	min-height: 0;
	min-width: 0;
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
    padding-top: 0;
    padding-bottom: 1rem;
}

#primary-menu > li.menu-item:first-child { padding-left: 0; }
#primary-menu > li.menu-item:last-child { padding-right: 0; }

#primary-menu a {
    display: bottom;
    border-bottom: 0;
    padding: 0.5rem 1rem 0.35rem 0;
    color: #fff;
    border-top: 1px solid #fff;
}

#primary-menu a:hover, 
#primary-menu a:focus {
    opacity: 0.8;
}

#primary-menu li.current_page_item a {
    color: #f68712;
    border-top: 1px solid #f68712;
}

#primary-menu .sub-menu .current-menu-item a {
    color: #f68712;
}

#primary-menu li.current_page_item > a:hover,
#primary-menu li.current_page_item > a:focus,
#primary-menu .sub-menu .current-menu-item a:hover,
#primary-menu .sub-menu .current-menu-item a:focus {
    color: #f68712;
}

#primary-menu li.current-menu-parent > a,
#primary-menu li.current-menu-ancestor > a  {
    border-top-color: #f68712;
}

#primary-menu li.current_page_item .sub-menu a {
    color: #fff;
}

#primary-menu .sub-menu {
    list-style-type: none;
    margin-left: 0;
}

#primary-menu .sub-menu li.menu-item {
    font-size: 1rem;
    font-weight: 400;
}

#primary-menu .sub-menu li.menu-item a {
    border-bottom: 0;
    border-top: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

#top-navigation .lang-menu,
#secondary-navigation .lang-menu,
#overlay-navigation .lang-menu {
  width: auto;
}

#top-navigation .lang-menu a,
#secondary-navigation .lang-menu a,
#overlay-navigation .lang-menu a {
    color: #fff;
	position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.4375rem;
    font-size: 1rem;
    line-height: 2.25rem;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #fff;
    padding: 0 0.5rem;
}

#top-navigation .search-menu input[type="text"],
#secondary-navigation .search-menu input[type="text"],
#overlay-navigation .search-menu input[type="text"] {
    font-weight: 700;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 0;
}

#top-navigation .search-menu input::placeholder,
#secondary-navigation .search-menu input::placeholder,
#overlay-navigation .search-menu input::placeholder {
    color: #fefefe;
}

/* Sticky nav
*/

.sticky-title-bar {
    background: #000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms;
}

.sticky-title-bar .sticky-menu,
#overlay-navigation .menu-header {
    width: 100%;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}


.sticky-title-bar a,
.sticky-title-bar span,
#overlay-navigation .menu-header a {
  transition: all 0.3s ease;
  border-bottom: 0;
}

.sticky-title-bar .logo img,
#overlay-navigation .menu-header .logo img { 
  max-height: 2.25rem;
  width: auto;
}

.sticky-title-bar #secondary-navigation {
  display: none;
  width: 100%;
  padding-top: 0.5rem;
  border-bottom: 1px solid #f68712;
}

.sticky-title-bar #secondary-navigation.expanded {
  display: block;
}

body.sticky-shrinknav-wrapper #top-navigation {
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
  transition: all 0.3s ease;
}

body.sticky-shrinknav-wrapper .sticky-title-bar {
  -webkit-transform: scale(100%);
      -ms-transform: scale(100%);
          transform: scale(100%);
      visibility: visible;
      opacity: 1;
      transition: visibility 0s linear 0s, opacity 300ms;
      border-bottom: 1px solid #ddd;
}

/* Mobile navigation
*/

@media screen and (max-width: 39.9375em) { /* Small only */
    #primary-menu {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -ms-flex-direction: column;
        flex-direction: column; 
    }
    #primary-menu > li.menu-item {
        flex: 0 0 auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    #top-navigation { display: none; }
    .body.sticky-shrinknav-wrapper .sticky-title-bar,
    .sticky-title-bar {
        visibility: visible;
        opacity: 1;
    }
    .sticky-title-bar #secondary-navigation {
    }
}


/* Overlay nav
*/

#mobile-overlay-menu {
    border-bottom: 1px solid #ddd;
    max-width: 100% !important;
}

#stickynav-menu-icon.menu-open::after,
.menu-open:after {
	color: #fff;
	content: "\f169";
	font-family: "foundation-icons";
	font-size: 24px;
	transition-property: all .2s linear 0s;
	-moz-transition: all .2s linear 0s;
	-webkit-transition: all .2s linear 0s;
	-o-transition: all .2s linear 0s;
}

#stickynav-menu-icon.close::after,
.menu-close:after {
	color: #fff;
	content: "\f217";
	font-family: "foundation-icons";
	font-size: 24px;
	transition-property: all .2s linear 0s;
	-moz-transition: all .2s linear 0s;
	-webkit-transition: all .2s linear 0s;
	-o-transition: all .2s linear 0s;
}

.overlay {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100%;
	background: #000;
	overflow: auto;
	z-index: 999;
}

#overlay-navigation .menu-header {
    position: relative;
}

#overlay-navigation .menu-header {
    position: fixed;
    background-color: #000;
    z-index: 1500;
}

#overlay-navigation .grid-x {
    padding-top: 60px;
	padding-bottom: 0.9375rem;
}

/* Prevent FOUC */
.no-js .top-navigation { display: none; }

@media screen and (min-width: 40em) {
  .no-js .top-navigation { display: block; }
  .no-js .title-bar { display: none; }
}
/* Header 
*/

#header {
    background-color: #000;
    color: #fff;
    padding-top: 1em;
    padding-bottom: 2em;
}

/* Footer
*/

#footer {
    background: #eee url('images/bg-paper_fibers.png') repeat 0 0;
    padding-top: 4rem;
    padding-bottom: 3rem;
    line-height: 1;
}

@media screen and (max-width: 39.9375em) { /* Small only */
    #footer { padding-top: 2rem; }
}

#footer #footer-widgets {
    color: #444;
    font-size: 85%;
}

#footer #footer-widgets h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

#footer #footer-widgets ul {
    list-style-type: none;
    margin-left: 0;
}

#footer #footer-widgets .cell .textwidget {
    margin-top: 1.5rem;
}

@media screen and (min-width: 64em) { /* large and up */
    #footer #footer-widgets .cell .textwidget { margin-top: 0; }
}

#footer #footer-widgets .cell .textwidget  a { border: 0; }

#footer #footer-widgets .cell img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

#footer #footer-widgets .cell p.logo img,
#footer #footer-widgets .cell:first-child > p.logo img {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
}

#footer #footer-widgets .cell:first-child p:nth-child(2) {
    margin-top: 2em;
}

#footer #footer-widgets .cell:first-child p:nth-child(2) img {
    height: 30px;
    width: auto;
}

/* Reveal image gallery
*/

.reveal#image-detail {
    padding-left: 25px;
    padding-right: 25px;
}

.reveal#image-detail .slick-track {
    height: inherit;
    width: inherit;
}

.reveal#image-detail .slick-slide {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    float: none;

    height: inherit;
    width: inherit;
}

.reveal#image-detail .slick-slide img {
    margin: 0 auto;
    max-width: auto;
    max-height: 100vh;
    object-fit: contain;
}

.reveal#image-detail .slick-slide p {
    margin-top: 1rem;
    margin-bottom: 0;
}

.reveal#image-detail .slick-slide p > strong:first-child {
    display: inline-block;
    padding-right: 0.5rem;
    margin-right: 0.5rem;
    border-right: 1px solid #ccc;
    font-size: 90%;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
}

.reveal#image-detail .slick-prev::before,
.reveal#image-detail .slick-next::before {
    color: #333;
}

.reveal#image-detail button.close-button {
    color: #555;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    min-width: 2rem;
}


/* WP Image galleries
*/

.gallery {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
}

#main .entry-content p + .gallery {
    padding-top: 1.5em;
}

.gallery .gallery-item {
    width: calc(100% - 1.875rem);
    margin-left: 0.9375rem;
    margin-right: 0.9375rem;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    flex-basis: auto;
    min-height: 0px;
    min-width: 0px;
    width: 100%;
}

.gallery .gallery-caption span,
.gallery .gallery-caption strong,
.gallery .gallery-caption em {
    display: block;
}

/* About page, gallery with director's photos */

.gallery .gallery-caption a {
    display: inline-block;
    font-size: 110%;
    margin-bottom: 0.5rem;
}

.gallery .gallery-caption em {
    font-size: 85%;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#main .entry-content .gallery .gallery-item .gallery-icon,
.gallery .gallery-item .gallery-icon {
    margin-bottom: 1rem;
}

.gallery .gallery-item .gallery-icon a { display: block; }

.gallery .gallery-item .gallery-icon img {
    width: 100%;
    height: auto;
}

.gallery-columns-1 .gallery-item {
    width: calc(100% - 1.875rem); }
.gallery-columns-2 .gallery-item {
    width: calc(50% - 1.875rem); }
.gallery-columns-3 .gallery-item {
    width: calc(33.33333% - 1.875rem); }
.gallery-columns-4 .gallery-item {
    width: calc(25% - 1.875rem); }
.gallery-columns-5 .gallery-item {
    width: calc(20% - 1.875rem); }
.gallery-columns-6 .gallery-item {
    width: calc(16.6666% - 1.875rem); }
.gallery-columns-7 .gallery-item {
    width: calc(14.2857% - 1.875rem); }
.gallery-columns-8 .gallery-item {
    width: calc(12.5% - 1.875rem); }
.gallery-columns-9 .gallery-item {
    width: calc(11.1111% - 1.875rem); }

/* Static pages
*/
.page #main .entry-content h1 a,
.page #main .entry-content h2 a,
.page #main .entry-content h3 a,
.page #main .entry-content h4 a,
.page #main .entry-content h5 a,
.page #main .entry-content h6 a {
    border-bottom: 2px solid #f68712;
}

/* Single and archive templates, common parts
*/

#main header.entry-header,
#main header.page-header {
    background-color: #000;
    color: #fff;
    padding-top: 1em;
    padding-bottom: 2em;
}

@media screen and (max-width: 39.9375em) { /* Small only */
    #main header.entry-header .grid-x .cell.small-12:first-child,
    #main header.page-header .grid-x .cell.small-12:first-child {
        margin-bottom: 1rem;
    }
}

.search-results #main .grid-container article header.entry-header,
.archive #main .grid-container article header.entry-header {
    background-color: transparent;
    color: #000;
    padding-top: 2em;
    padding-bottom: 0;
}

.search-results #main .content.list h5.entry-title em {
    font-style: normal;
    font-size: 80%;
    font-weight: 700;
    color: #acacac;
    margin-left: 0.5rem;
}

.search-results #main .content.list h5.entry-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
}

.search-results #main .content.list > div:first-child h5.entry-title {
    margin-top: 0;
}

.search-results #main .content.list li {
    line-height: 1.2;
}

.search-results #main .team-list {
    border-top: 0;
    padding-top: 0;
}

.search-results #main .content .team-list li a  {
    display: flex;
    width: 100%;
    border-top: 0;
}
    

.search-results #main .content li.cell a img  {
    height: 80px;
    width: auto;
}

    .search-results #main .team-list li.cell a img  {
        height: 40px;
        width: auto;
    }
    
    .search-results #main .content span.photo  {
        margin-right: 0.5rem;
    }
    
    .search-results #main .content #members span.photo  {
        margin-right: 0.5rem;
    }
    
    .search-results #main .team-list span.photo {
        height: 40px;
        width: 40px;
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .search-results #main .team-list li.cell a span.photo img[src=""]  {
        width: 40px;
        height: 0;
        padding-bottom: 50px;
        background-color: #eee;
        display: block;
        overflow: hidden;
    }

.search-results #main .content .team-list li a  span.entry-title {
    display: inline-block;
}

.search #main .grid-container #searchform input.submit {
    display: none;
}

#searchform div {
    position: relative;
}

#searchform div input[type="text"] {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 0;
    height: auto;
    padding: 1rem 2rem 1rem 0.75rem;
}
    .page-header #searchform div input[type="text"] {
        color: #fff;
        background-color: transparent;
        border: 1px solid #fff;
    }

#searchform div i {
    font-size: 1.75rem;
    position: absolute;
    color: #aaa;
    top: 0.75rem;
    right: 0.5rem;
}
    #main #searchform div i {
        top: 0.25rem;
    }

    .page-header #searchform div i,
    .page-header #searchform div input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

#main #searchform input::placeholder {
    color: #aaa;
}

.error404 #main .page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#main .entry-content,
#main .content {
    padding-top: 2em;
    padding-bottom: 2em;
}

#main .entry-content .cell,
#main .entry-content .cell > div,
#main ul#project-details {
    margin-bottom: 1.25rem;
}

@media screen and (min-width: 40em) {

    .error404 #main .page-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    #main .entry-content .cell,
    #main .entry-content .cell > div,
    #main ul#project-details {
        margin-bottom: 2rem;
    }
}

#main .entry-content h2,
#main .entry-content h3,
#main .entry-content h4 {
    margin-bottom: 0.5em;
}

#main .entry-content h2:not(:first-child),
#main .entry-content h3:not(:first-child),
#main .entry-content h4:not(:first-child) {
    margin-top: 1em;
}

@media screen and (min-width: 64em) {
    #main .entry-content h2:not(:first-child),
    #main .entry-content h3:not(:first-child),
    #main .entry-content h4:not(:first-child),
    #main .entry-content h5:not(:first-child) {
       margin-top: 2em;
    }
    #main .entry-content #production h4 + h5,
    #main .entry-content #publications h4 + h5 { margin-top: 0; }
}

#main .entry-content h5,
.search-results #main .content h5  { 
    font-weight: 900;
}

@media screen and (min-width: 64em) {
    #main .entry-content .cell.small-12 p,
    #main .entry-content .cell.small-12 li,
    .post-type-archive-publication #main .content.list li,
    .post-type-archive-production #main .content.list li,
    .search-results #main .content li {
        max-width: 75%;
    }
}

#main .entry-content p.photo a,
#main .entry-content p.logo a { border: 0; }

#main .entry-content ul,
.page #main .entry-content ul,
.search-results #main .content ul {
    list-style-type: none;
}

#main .entry-content ul:not(.grid-x),
.page #main .entry-content ul,
.search-results #main .content ul  {
    margin-left: 0;
}

#main .entry-content li:not(:last-child) { margin-bottom: 1rem; }
#main .content #research-interests li,
#main .content #keywords li { margin-bottom: 0.25rem; }

#main .entry-content .specifications { margin-top: 1rem; }
#main .entry-content .specifications strong { margin-right: 0.25rem; }


.page #main .entry-content li:not(:last-child),
.search-results #main .content li:not(:last-child) { margin-bottom: 0.5rem; }


#main .content ul.grid-x li a {
    display: block;
    border-top: 1px solid #000;
    padding-top: 0.5rem;
    border-bottom: 0;
}

#main .content ul.grid-x li a:hover {
    border-color: #f68712;
}

#main .content ul.grid-x li img, 
#main .content ul.grid-x li strong,
#main .content ul.grid-x li span {
    display: block;
    margin-bottom: 0.5rem;
}

#main.content .grid-x.small-up-1 .cell h4,
#main .content.list .grid-x.small-up-1 .cell h4 {
    line-height: 1.2;
    margin-bottom: 2rem;
}

.archive #main .content.list .grid-x .cell > a img,
.home #main.content .grid-x .cell > a img,
#main #projects .cell > a img {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}

.archive #main .content.list .grid-x .cell > a:hover img,
.home #main.content .grid-x .cell > a:hover img,
#main #projects .cell > a:hover img {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: all 100ms ease;
}

.archive #main .content.list .grid-x .cell > a:hover h4,
.archive #main .content.list .grid-x .cell > a:hover h5 {
    color: #333;
}

#main .blend-mode a img,
#main .team-list.blend-mode .cell > a img {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}

#main .blend-mode a:not(.post-edit-link),
#main .team-list.blend-mode .cell > a:not(.post-edit-link),
#main #projects .blend-mode .cell > a:not(.post-edit-link) {
    border-bottom: 0;
}

#main .blend-mode a:hover,
#main .team-list.blend-mode .cell > a:hover {
    color: #333;
}

#main .blend-mode a span.photo,
#main .team-list.blend-mode .cell > a span.photo,
#main #projects .cell > a span.photo {
    display: inline-block;
}

#main .blend-mode a:hover span.photo,
#main .team-list.blend-mode .cell > a:hover span.photo,
#main #projects .blend-mode .cell > a:hover span.photo {
    background: rgba(246, 135, 18, 0.7);
    transition: all 100ms ease;
}
    
#main .blend-mode a:hover img,
#main .team-list.blend-mode .cell > a:hover img,
#main #projects .blend-mode .cell > a:hover img {
    mix-blend-mode: luminosity;
    transition: all 100ms ease;
}


/* placeholder when there's no image */
.archive #main .content.list .grid-x .cell > a img[src=""],
.archive #main .content.list .cell.project a p.photo img[src=""],
#main #projects .cell a .photo img[src=""] {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #eee;
    display: block;
    overflow: hidden;
}


.archive #main .content.list {
    padding-top: 2em;
    padding-bottom: 2em;
}

.archive #main .content.list .cell {
    padding-top: 1rem;
}

.archive #main .content.list .cell > a {
    display: block;
    padding-top: 0.5rem;
    border-top: 1px solid #000;
    border-bottom: 0;
    line-height: 1;
}

.archive #main .content.list .cell > a:hover {
    border-top: 1px solid #f68712;
}

#main .entry-footer {}

#main .entry-footer .edit-link a {
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(246, 135, 18, 0.7);
    border-bottom: 0;
}

#main .entry-footer .edit-link a:hover {
    color: rgba(246, 135, 18, 1);
}

/* inline edit-links */

#main .entry-content span.edit-link,
#main .hentry span.edit-link,
#main .content.list li span.edit-link {
	display: inline-block;
	margin: 0 0 0 0.5em;
}

#main .entry-content span.edit-link a,
#main .hentry span.edit-link a,
#main .content.list li span.edit-link a {
    font-size: 85%;
    line-height: 1.4;
    font-weight: 700;
	display: inline-block;
}

/* Pagination in archive pages and search results
*/


.pagination {
    width: 100%;
}

.pagination .nav-links {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pagination .nav-links::before, .pagination .nav-links::after {
    display: table;
    content: ' ';
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-order: 1;
    order: 1;
}
.pagination .nav-links::after { clear: both; }

.pagination .nav-links a {
    border-bottom: 0;
}

.pagination .nav-links a:hover {
    background: #e6e6e6;
}

.pagination .nav-links a.prev::before {
    display: inline-block;
    margin-right: 0.5rem;
    content: '\00ab';
}

.pagination .nav-links .page-numbers {
    display: inline-block;
    margin-right: 0.0625rem;
    border-radius: 0;
    font-size: 0.875rem;
}

.pagination .nav-links .current {
    padding: 0.1875rem 0.625rem;
    background: #f68712;
    color: #fff;
    cursor: default;
}

.pagination .nav-links a.next::after {
    display: inline-block;
    margin-left: 0.5rem;
    content: '\00bb';
}

.pagination .nav-links .dots::after {
    padding: 0.1875rem 0.625rem;
    content: '\2026';
    color: #0a0a0a;
}

/* Member list and member search results
*/

#main #member-list.content h2:not(:first-child),
#main #member-list.content h3:not(:first-child),
#main #member-list.content h4:not(:first-child)  {
    margin-top: 1em;
}

@media screen and (min-width: 64em) {
    #main #member-list.content h2:not(:first-child),
    #main #member-list.content h3:not(:first-child),
    #main #member-list.content h4:not(:first-child) {
       margin-top: 2em;
    }
}

#main #member-list ul {
    list-style-type: none;
}

#main #member-list.content .cell {
    padding-top: 1rem;
}

#main #member-list.content .cell > a {
    display: block;
    padding-top: 0.5rem;
    border-top: 1px solid #000;
    border-bottom: 0;
    line-height: 1;
}

#main #member-list.content .cell > a span.photo {
    display: block;
    position: relative;
    margin-bottom: 0.5rem;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    text-align: center;
}

#main #member-list.content .cell > a span.photo img {
    margin-bottom: 0;
    height: 100%;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
}

#main #member-list.content .cell > a img[src=""] {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #eee;
    display: block;
    overflow: hidden;
}

/* Member single page
*/

.author #main header.entry-header #photo img { max-height: 300px; }

#main header.entry-header #shortname {
    display: flex;
    flex-direction: column;
}

.author #main header.entry-header #shortname h1,
.author #main header.entry-header #shortname h2 {
    line-height: 1.2;
    margin-top: auto;
    margin-bottom: 0;
    max-width: 70%;
}

.author #main header.entry-header #shortname h5 {
    color: #999;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@media screen and (max-width: 39.9375em) { /* small screens */
    .author #main header.entry-header #photo img { max-height: 180px; }
    .author #main header.entry-header #shortname h1,
    .author #main header.entry-header #shortname h2 {
        max-width: 100%;
    }

}

.author #main a[href$=".pdf"] {
    white-space: inherit;
}

.author #main .entry-content .grid-x.small-up-1 .cell h4 {
    margin-bottom: 0.5rem;
}

.author #main .entry-content #occupations li:not(:last-child),
.author #main .entry-content #php-details li:not(:last-child),
.author#main .entry-content  #groups li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.author #main .entry-content #bio + .grid-x,
.author #main .entry-content #bio + .grid-x .cell {
    margin-bottom: 0;
}

.author #main .entry-content #production .grid-x {
    margin-top: 2rem;
}

.author #main .entry-content ul.recent-list,
.author #main .entry-content ul.all-list {
    line-height: 1.3;
}

.author #main .entry-content ul.recent-list {
    margin-bottom: 0;
}

.author #main .entry-content ul.all-list {
    display: block;
    width: 100%;
    padding-top: 1rem;
}

.author #main .entry-content .cell h5 {
    line-height: 1.2;
}

.author #main .entry-content a.see-all.button {
    display: inline-block;
    margin: 1em 0 0;
}

@media screen and (min-width: 64em) {/* Large and up */
    /*.author #main .entry-content ul.recent-list li,
    .author #main .entry-content ul.all-list li {
        max-width: 80%;
    }*/
}

/* Research Group
*/

.single-research-group #main header.entry-header #shortname h5,
.single-research-group #main header.entry-header #shortname h2 {
    line-height: 1;
}

#main header.entry-header .entry-acronym,
#main .entry-title strong.entry-acronym {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#main .entry-title strong.entry-acronym {
    display: block;
    font-size: 90%;
}

.single-research-group #main .entry-content h4 + h5 {
   margin-top: 0.25rem;
   margin-top: 0.5rem;
}

#main .team-list {
    list-style-type: none;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 0.5rem;
}

#main .team-list li {
    max-width: 100% !important;
}

#main .team-list li:not(:last-child) {
    margin-bottom: 0.35rem;
}

#main .team-list li a,
#main .team-list li > div,
#main #project-team .team-list div a  {
    display: flex;
    width: 100%;
    line-height: 1;
    border: 0;
}

#main #coordinator .team-list li a
#main #coordinator .team-list a,
#main #project-team .team-list a {
    border-top: 0;
}
#main .team-list li a:hover,
#main .team-list a:hover,
#main #project-team .team-list a:hover {
    color: #333;
    border-top: 0;
}

#main .team-list li span,
#main .team-list span {
    display: inline-block;
    margin-bottom: 0;
}

#main .team-list span.photo {
    width: 40px;
    height: 40px;
    overflow: hidden;
    background-color: #EEE;
}

#main .team-list li img,
#main .team-list img {
    width: auto;
    height: 40px;
}

#main .team-list li img[src=""],
#main .team-list img[src=""] { /* placeholder when there's no image */
    width: 40px;
    height: 0;
    padding-bottom: 40px;
    background-color: #eee;
    display: block;
    overflow: hidden;
}

#main .team-list.blend-mode li a:hover img[src=""],
#main .team-list.blend-mode a:hover img[src=""] {
    background-color: #ddd;
}

#main .team-list li span:nth-child(2),
#main .team-list span:nth-child(2) {
    margin-top: auto;
    margin-right: 0.75rem;
    margin-bottom: auto;
    margin-left: 0.75rem;
}

#main .entry-content #projects a {
    display: block;
    border-bottom: 0;
    border-top: 1px solid #000;
    padding-top: 0.5rem;
}

#main .entry-content #projects a:hover {
    border-top-color: #f68712;
}


#main .entry-content #projects .cell a span.photo {
    display: block;
}

/* Project list
*/

.archive #main .cell.project {
    margin-bottom: 1rem;
}

.archive #main .cell.project .cell {
    padding-top: 0;
}

.archive #main .content.list .cell.project a.grid-x {
    display: flex;
    border-bottom: 0;
    border-top: 1px solid #000;
    padding-top: 0.5rem;
}

.archive #main .cell.project p.photo {
    padding-left: 0;
    padding-right: 0.75rem;
}

.archive #main .cell.project .entry-title {
    padding-right: 0;
}

#main .cell.project .entry-footer {}


/* Project page
*/

#main .project i {
    color: #333;
    font-size: 20px;
    display: inline-block;
    margin-right: 0.35rem;
}

#main .project p.detail:not(:last-child) {
    margin-bottom: 0.75rem;
}

#main .project p.detail strong + span {
    display: block;
}

#main a[href$=".pdf"] {
    white-space: nowrap;
}

#main #project-images ul.grid-x li {
    margin-bottom: 1.25rem;
}

#main #project-images ul.grid-x li:hover span.has-tip {
    cursor: zoom-in;
}

#main #project-team a {
    border-bottom: 0;
}

#main #project-team > .grid-x.team-list {
    border-top: 0;
    margin-bottom: 1rem;
}

#main #project-team > .grid-x.team-list li.external a {
    border-bottom: 2px solid #f68712;
}

#main #project-team > .grid-x.team-list li.external a:hover,
#main #project-team > .grid-x.team-list li.external a:focus {
    color: #f68712;
}

#main #project-team > .grid-x.team-list li.external em {
    font-size: 85%;
    font-style: normal;
    font-weight: 700;
}

#main #project-team h5 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 0.5;
}

#main .entry-content #support ul {
    margin-bottom: 1rem;
}

#main .entry-content #support ul li {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#main .entry-content #support a.institution {
    display: block;
    border-bottom: 0;
    opacity: 0.8;
}

#main .entry-content #support a.institution:hover {
    opacity: 1;
    transition: opacity 300ms ease;
}

#main .entry-content a.institution img {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
}

/* Homepage
*/

.home #header .site-intro {
    padding-top: 1rem;
}

.home #header .site-intro > * {
    font-size: 1.25rem;
    line-height: 1.2;
}

.home #header .site-intro a:last-child {
    white-space: nowrap;
}

@media screen and (min-width: 64em) {/* Large and up */
    .home #header .site-intro {
        padding-top: 0;
    }
    .home #header .site-intro > * {
        font-size: 1.9375rem;
        line-height: 1.5;
    }
}

.home section.grid-container {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

p.image {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

.home .grid-x .cell > a {
    display: block;
    border-bottom: 0;
}

.home #research-groups .cell > a {
    margin-bottom: 1.5rem;
}

.home #events p.image,
.home #projects p.image,
.post-type-archive-event .content.list p.photo {
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    position: relative;
}

.home #events p.image img,
.home #projects p.image img,
.post-type-archive-event .content.list p.photo img { /* force image resize using a responsive square div container, homepage + events archive */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.home #events p.image img[src=""],
.home #projects p.image img[src=""],
.post-type-archive-event .content.list p.photo img[src=""] {
    background-color: #eee;
    height: 0;
    padding-bottom: 100%;
}


/* List filters: publications' list; members' list; education
*/

#main header.entry-header .filters .menu li label,
#main header.page-header .filters .menu li label {
    color: #fff;
}

#main header.entry-header .filters .button,
#main header.page-header .filters .button {
    color: #f68712;
}

#main header.entry-header .filters .button.hollow,
#main header.page-header .filters .button.hollow {
    border: 1px solid #fff;
    color: #fff;
}

#main .page-header .filters .menu.simple {
    text-align: left;
    align-items: flex-start;
}

#main .page-header .filters .menu.simple a {
    text-align: left;
    font-weight: 700;
    padding-bottom: 0.25rem;
}

#main .page-header .filters .menu.simple li.is-active a {
    color: #f68712;
    background-color: transparent;
}

#main .page-header .filters form {
    margin-top: 1rem;
}

#main .page-header .filters form li.contains-button {
    margin-top: auto;
}

#main .page-header .filters form select {
    color: #fff;
    background-color: #000;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28255, 255, 255%29'></polygon></svg>");
    border: 1px solid #fff;
    -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   font-weight: 700;
   outline: 0;
}

@media screen and (max-width: 39.9375em) {
    #main .page-header .filters .menu.simple.vertical li:not(:first-child) {
        margin-top: 0.5rem;
    }
    #main .page-header .filters .menu.simple li + li {
        margin-left: 0;
    }
    #main .page-header .filters .menu.simple.horizontal li,
    #main .page-header .filters .menu.simple.horizontal li + li {
        margin: 0.25rem;
    }
    #main .page-header .filters form li,
    #main .page-header .filters form li {
        display: block;
        width: 100%;
    }
}

/* Publication and Production list
*/

.post-type-archive-publication #main .content.list ul.no-bullet,
.post-type-archive-production #main .content.list ul.no-bullet {
    margin-bottom: 0;
}

.post-type-archive-publication #main .content.list li,
.post-type-archive-production #main .content.list li {
    margin-top: 0.75rem;
    line-height: 1.2;
}

.post-type-archive-event .content.list .grid-x + h3,
.post-type-archive-publication #main .content.list a.back-top + h3,
.post-type-archive-production #main .content.list a.back-top + h3 {
    /* to counter the sticky menu */
    padding-top: 2rem;
}

.post-type-archive-publication #main .content.list .not-found,
.post-type-archive-production #main .content.list .not-found {
    min-height: 30vh;
}

/* Education list + Education search results
*/

.post-type-archive-education #main .content.list li,
#main .content.list #education li {
    margin-top: 0.75rem;
}

.post-type-archive-education #main .content.list li > *,
#main .content.list #education li > * {
    line-height: 1.2 !important;
}

.post-type-archive-education #main .content.list li span.h6,
#main .content.list #education li span.h6 {
    margin-bottom: 0;
}

.post-type-archive-education #main .content.list li p:first-child,
#main .content.list #education li p:first-child {
    margin-bottom: 0.25rem;
}

.post-type-archive-education #main .content.list li span.entry-title::before,
.post-type-archive-education #main .content.list li span.end-year::before,
.post-type-archive-education #main .content.list li p:nth-child(2) span::before,
#main .content.list #education li span.entry-title::before,
#main .content.list #education li span.end-year::before,
#main .content.list #education li p:nth-child(2) span::before {
    content: " • ";
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.post-type-archive-education #main .content.list li span.entry-title:empty::before,
.post-type-archive-education #main .content.list li span.end-year:empty::before,
.post-type-archive-education #main .content.list li p:nth-child(2) span:empty::before,
.post-type-archive-education #main .content.list li p:nth-child(2) span.degree::before,
#main .content.list #education li span.entry-title:empty::before,
#main .content.list #education li span.end-year:empty::before,
#main .content.list #education li p:nth-child(2) span:empty::before,
#main .content.list #education li p:nth-child(2) span.degree::before {
    display: none;
}

.post-type-archive-education #main .content.list li span.student,
#main .content.list #education li span.student {
    font-weight: 700;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span,
#main .content.list #education li p:nth-child(2) span {
    font-size: 90%;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span em,
#main .content.list #education li p:nth-child(2) span em {
  color: rgba(0, 0, 0, 0.5);
  font-size: 90%;
  font-style: normal;
  text-transform: uppercase;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span.degree,
#main .content.list #education li p:nth-child(2) span.degree {
  font-size: 80%;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.15rem 0.25rem;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span.degree.master,
#main .content.list #education li p:nth-child(2) span.degree.master {
  background-color: #e0d4c8;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span.degree.phd,
#main .content.list #education li p:nth-child(2) span.degree.phd {
  background-color: #e9b47b;
}

.post-type-archive-education #main .content.list li p:nth-child(2) span.degree.postdoc,
#main .content.list #education li p:nth-child(2) span.degree.postdoc {
  background-color: #a5825f;
}

/* Contacts page #page-id-4417
*/

.page-id-4417 #main .entry-content ul.grid-x > a:first-child { border: 0; }
.page-id-4417 #main .entry-content ul.grid-x li a { border-top: 0; }

.page-id-4417 #main .entry-content ul.grid-x a[href^="mailto:"] {
    display: inline-block;
    border-bottom: 2px solid #f68712;
}
.page-id-4417 #main .entry-content ul.grid-x {
    margin-top: 2.5rem;
}

.page-id-4417 #main .entry-content .cell img {
    height: 40px;
    width: auto;
}

.author #main .entry-content #groups.cell h5 {
    font-size: 12px;
}
.author #main .entry-content #groups.cell ul {
    margin-bottom: 14px;
}

#latest-posts {
    margin-bottom: 14px;
}
#latest-posts ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
#main #latest-posts ul li {
    width: 100%;
    max-width: 100%;
    display: inline-block;
}
#latest-posts ul li a {
    display: flex;
}
#latest-posts ul li a div:first-child {
    width: 130px;
    height: 80px;
    margin-right: 14px;
}
#latest-posts ul li a div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#latest-posts ul li a div:last-child {
    flex-grow: 1;
}
#main #latest-posts ul li a h4 {
    margin: 0;
    font-size: 20px;
}
#latest-posts ul li a span {
    font-size: 12px;
    color: rgba(0,0,0,.4);
}
#post-thumbnail {
    margin-bottom: 14px;
}

#archive-news {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

#archive-news span.date {
    font-size: 12px;
    color: rgba(0,0,0,.4);
}

#archive-news a {
    border-bottom: 0;
}
#main.content #archive-news article .entry-title {
    margin-bottom: .6rem;
}

#archive-news article {
    margin-bottom: 2rem;
}
#archive-news article .excerpt {
    font-size: 12px;
}