/**
 * Styles for the expandable infoboxes
 */
.expandable-content:not(.expanded) {
    display: none;
}

#wrapper .eit-projects .expandable-content {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    border: solid 3px #6bb745;
    background-color: #ffffff;
    padding: 30px 40px 40px 50px;
    border-radius: 0;
    width: 100%;
    margin-bottom: 16px;
}

#wrapper .eit-projects .expandable-content.expanded {
    display: flex;
    flex-direction: column;
}

#wrapper .eit-projects .expandable-content button {
    background-color: transparent;
    text-align: right;
    line-height: 0;
    font-family: inherit;
}

#wrapper .eit-projects .expandable-content button svg {
    width: 20px;
    height: 20px;
}

#wrapper .eit-projects .expandable-content .eit-projects-taxonomy {
    font-size: 15px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #6bb745;
    text-transform: uppercase;
}

#wrapper .eit-projects .expandable-content .entry-title {
    width: 100%;
    max-width: 609px;
    font-size: 24px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
}

#wrapper .eit-projects .expandable-content .entry-title a {
    color: #58595b;
}

#wrapper .eit-projects .expandable-content .entry-content h3 {
    font-size: 15px;
    line-height: 1.4;
    color: #004494;
    display: inline-block;
    width: auto;

}

#wrapper .eit-projects .expandable-content .entry-content h3 button {
    appearance: none;
    display: inline-block;
    color: inherit;
    font-size: inherit;
    padding: 5px 10px;
    line-height: 1.4;
    border-bottom: 3px solid #1a80b6;
    cursor: pointer;
}

#wrapper .eit-projects .expandable-content .entry-content h3 button:active {
    outline: 0 none;
}

#wrapper .eit-projects .expandable-content .entry-content h3 button[aria-selected="false"] {
    color: #58595b;
    border-bottom-color: #dddddd;
}

#wrapper .eit-projects .expandable-content .entry-content p {
    max-width: 804px;
    width: 100%;
    font-size: 16px;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #57585a;
}

/**
 * Enable a tab system for the current .entry-content
 */
.expandable-content.tabbed .entry-content {
    display: table;
}

/**
 * Every second child is an .expandable-content and all
 * of those per row have an order one greater then the carret,
 * so when opened they appear under the row of carrets
 */

@media screen and (min-width: 698px) {
    .eit-projects-grid > :nth-child(1) { order: 1; }
    .eit-projects-grid > :nth-child(2) { order: 2; }
    .eit-projects-grid > :nth-child(3) { order: 1; }
    .eit-projects-grid > :nth-child(4) { order: 2; }
    .eit-projects-grid > :nth-child(5) { order: 3; }
    .eit-projects-grid > :nth-child(6) { order: 4; }
    .eit-projects-grid > :nth-child(7) { order: 3; }
    .eit-projects-grid > :nth-child(8) { order: 4; }
    .eit-projects-grid > :nth-child(9) { order: 5; }
    .eit-projects-grid > :nth-child(10) { order: 6; }
    .eit-projects-grid > :nth-child(11) { order: 5; }
    .eit-projects-grid > :nth-child(12) { order: 6; }
    .eit-projects-grid > :nth-child(13) { order: 7; }
    .eit-projects-grid > :nth-child(14) { order: 8; }
    .eit-projects-grid > :nth-child(15) { order: 7; }
    .eit-projects-grid > :nth-child(16) { order: 8; }
    .eit-projects-grid > :nth-child(17) { order: 9; }
    .eit-projects-grid > :nth-child(18) { order: 10; }
    .eit-projects-grid > :nth-child(19) { order: 9; }
    .eit-projects-grid > :nth-child(20) { order: 10; }
    .eit-projects-grid > :nth-child(21) { order: 11; }
    .eit-projects-grid > :nth-child(22) { order: 12; }
    .eit-projects-grid > :nth-child(23) { order: 11; }
    .eit-projects-grid > :nth-child(24) { order: 12; }
}

@media screen and (min-width: 1017px) {
    .eit-projects-grid > :nth-child(1) { order: 1; }
    .eit-projects-grid > :nth-child(2) { order: 2; }
    .eit-projects-grid > :nth-child(3) { order: 1; }
    .eit-projects-grid > :nth-child(4) { order: 2; }
    .eit-projects-grid > :nth-child(5) { order: 1; }
    .eit-projects-grid > :nth-child(6) { order: 2; }
    .eit-projects-grid > :nth-child(7) { order: 3; }
    .eit-projects-grid > :nth-child(8) { order: 4; }
    .eit-projects-grid > :nth-child(9) { order: 3; }
    .eit-projects-grid > :nth-child(10) { order: 4; }
    .eit-projects-grid > :nth-child(11) { order: 3; }
    .eit-projects-grid > :nth-child(12) { order: 4; }
    .eit-projects-grid > :nth-child(13) { order: 5; }
    .eit-projects-grid > :nth-child(14) { order: 6; }
    .eit-projects-grid > :nth-child(15) { order: 5; }
    .eit-projects-grid > :nth-child(16) { order: 6; }
    .eit-projects-grid > :nth-child(17) { order: 5; }
    .eit-projects-grid > :nth-child(18) { order: 6; }
    .eit-projects-grid > :nth-child(19) { order: 7; }
    .eit-projects-grid > :nth-child(20) { order: 8; }
    .eit-projects-grid > :nth-child(21) { order: 7; }
    .eit-projects-grid > :nth-child(22) { order: 8; }
    .eit-projects-grid > :nth-child(23) { order: 7; }
    .eit-projects-grid > :nth-child(24) { order: 8; }
}