a h2, a h3, a h4, a h5, a h6 {
    color: var(--lemelson-link-color-1);
}
.wp-block-post a h2, .wp-block-post a h3, .wp-block-post a h4, .wp-block-post a h5, .wp-block-post a h6 {
    color: var(--lemelson-link-color-1) !important;
}
a:hover h2, a:hover h3, a:hover h4, a:hover h5, a:hover h6 {
    color: var(--lemelson-purple);
}
.wp-block-post a:hover h2, .wp-block-post a:hover h3, .wp-block-post a:hover h4, .wp-block-post a:hover h5, .wp-block-post a:hover h6 {
    color: var(--lemelson-purple) !important;
}

.text-align-center * {
    text-align: center;
}
.hide {
    display: none;
}

/* panels =================================================================== */
.panel-container-1 {
    padding: 0 0 40px 0;
}
.panel-container-2 {
    padding: 40px 0 40px 0;
    /* border: solid 10px red; */
}
.panel-container-1 + .panel-container-2 {
   /* padding-top: 0;*/
}
.panel-container-3 {
    padding: 40px 0 0px 0;
}


/* panel media-text ===== */
/* use like: "panel panel-indent-3 panel-mt media-text-b bg-white" */
.panel-mt.media-text-b .wp-block-media-text__content {
    padding-left: 0;
}
.panel-mt .wp-block-media-text {
    padding: 0 0 30px 0;
}
.panel-mt .wp-block-media-text:last-child {
    padding: 0 0 0 0;
}
.panel-mt .wp-block-media-text .wp-block-media-text__content,
.panel-mt .wp-block-media-text .wp-block-media-text__media {
    align-self: flex-start !important;
}
.panel-mt .wp-block-media-text__media {
    padding-top: 10px;
}
/* /panel media-text ===== */

/* panels =================================================================== */

/* carousel ================================================================ */
.carousel-nav-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    align-items: baseline;
}
.carousel-nav-container p {
    font-family: "Gotham", sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
}
.carousel-nav-container a {
    color: var(--lemelson-gray);
}
.carousel-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.carousel-nav-buttons {
    display: flex;
    justify-content: flex-start;
    /*padding-left: 15px;*/
    line-height: 1;
    /* border: solid 1px red; */
}
.carousel-nav-buttons * {
    margin: -2px 0 0 0 !important;
    line-height: 1;
    cursor: pointer;
}
.carousel-nav-buttons .carousel-nav-back:before {
    content: "\f0d9";
    font-family: "FontAwesome";
    padding: 0 10px 0 10px;
    color: var(--lemelson-blue);
}
.carousel-nav-separator:before {
    content: 'I';
    font-size: 0.80em;
}
.carousel-nav-buttons .carousel-nav-next:before {
    content: "\f0da";
    font-family: "FontAwesome";
    padding: 0 10px 0 10px;
    color: var(--lemelson-blue);
}
.carousel-nav-buttons-disabled *,
.carousel-nav-buttons-disabled .carousel-nav-back:before,
.carousel-nav-buttons-disabled .carousel-nav-next:before,
.carousel-nav-back-button-disabled .carousel-nav-back:before,
.carousel-nav-next-button-disabled .carousel-nav-next:before {
    color: var(--lemelson-casper);
    cursor: initial;
}

.carousel-nav-all a::after {
    content: "\f0da";
    font-family: "FontAwesome";
    padding-left: 15px;
    color: var(--lemelson-blue);
}
/* /carousel ================================================================ */



.tout-1 img {
    margin: 0 0 10px 0;
    border: solid 1px var(--lemelson-casper);
}
.tout-1  * {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    padding-bottom: 0;
    letter-spacing: -1px;
    color: var(--lemelson-link-color-1);
}

/* invention notebook query =============================================================== */
.invention-notebook-container {
    padding: 30px 40px;
}
.invention-notebook-header * {
	margin: 0 0 0 0 !important;
}
.invention-notebook-header-container figure.invention-notebook-globe {
	max-width: 500px;
	margin-left: -16px !important;
    padding-right: 1rem;
	/* border: solid 10px blue; */
}
.invention-notebook-header p {
    font-family: "Gotham", sans-serif;
    font-size: 18px;
    white-space: nowrap;
	/* border: solid 10px green; */
}
p.invention-notebook-header:after {
    content: "\f0da";
    font-family: "FontAwesome";
    padding-left: 15px;
    color: var(--lemelson-blue);
}
.invention-notebook-header p strong {
    font-weight: 700;
    text-transform: uppercase;
}

.invention-notebook-query {
    padding-top: 20px;
    /* border: solid 10px red; */
}

.invention-notebook-query .wp-block-query > ul {
    /* display: flex; */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 20vw 20vw;
    grid-gap: 30px;
    list-style: none;
}
.invention-notebook-query  .wp-block-query > ul > li:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    /* border: solid 10px orange; */
}
.invention-notebook-query  .wp-block-query > ul > li:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
    /* border: solid 10px pink; */
}

.invention-notebook-query .inq-post {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    color: white !important;
    /* border: solid 1px black; */
}

.invention-notebook-query .inq-post figure,
.invention-notebook-query .inq-post figure a,
.invention-notebook-query .inq-post figure img {
    width: 100%;
    height: 100%;
}
.invention-notebook-query .inq-post figure {
    position: absolute;
}
.invention-notebook-query .inq-post figure::after {
    position: absolute;
	z-index: 0;
    content: "";
    height: 65%;
    width: 100%;
    left: 0;
    bottom: 0;
    background: linear-gradient(to top, #00000088,#00000000);
	pointer-events: none;
}
.invention-notebook-query .inq-post figure img {
    object-fit: cover;
}

.invention-notebook-query a.lemelson-anchor-wrapper {
	height: 100%;
    margin: 0 !important;
	/* border: solid 10px red; */
}
.invention-notebook-query a.lemelson-anchor-wrapper .acf-innerblocks-container {
    height: 100%;
    width: 100%;
}
.invention-notebook-query .inq-post .inq-content-container {
    position: relative;
    margin-bottom: 10px;
    padding: 30% 30px 30px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
}
.invention-notebook-query .inq-post * {
    color: #fff !important;
}
.invention-notebook-query .inq-post h2 {
	padding-bottom: 5px;
    font-size: 38px;
    width: 100%;
}
.invention-notebook-query .inq-post .wp-block-post-excerpt {
    width: 100%;
}
.invention-notebook-query .wp-block-query > ul > li:nth-child(3) h2,
.invention-notebook-query .wp-block-query > ul > li:nth-child(4) h2 {
	font-size: 26px;
}
.invention-notebook-query .inq-post .wp-block-post-excerpt p {
	line-height: 1.3 !important;
}
.invention-notebook-query .wp-block-query > ul > li:nth-child(3) .wp-block-post-excerpt,
.invention-notebook-query .wp-block-query > ul > li:nth-child(4) .wp-block-post-excerpt {
	display: none;
}

@media screen and (max-width: 950px) {
	.invention-notebook-header p {
		font-size: 14px;
	}
	.invention-notebook-header p:after {
		padding-left: 8px;
	}
	.invention-notebook-query .inq-post h2 {
		font-size-adjust: 0.49;
	}
	.invention-notebook-query .inq-post .wp-block-post-excerpt {
		/* border: solid 10px red; */
		font-size-adjust: 0.49;
	}
}/* /@media screen and (max-width: 950px) { */
@media screen and (max-width: 832px) {
	.invention-notebook-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.invention-notebook-globe img {
		padding-right: 0;
		padding-bottom: 7px;
	}
	.invention-notebook-header p {
		font-size: 18px;
	}
	.invention-notebook-query .wp-block-query > ul {
		grid-template-columns: auto;
		grid-template-rows: auto;
		grid-gap: 25px;
	}
	.invention-notebook-query  .wp-block-query > ul > li {
		grid-column: auto !important;
		grid-row: auto !important;
		min-height: 200px;
	}
	.invention-notebook-query .wp-block-query > ul > li .wp-block-post-excerpt {
		display: block !important;
	}
    .invention-notebook-query .inq-post h2 {
        font-size: 18px !important;
    }
    .invention-notebook-query .wp-block-query > ul > li .wp-block-post-excerpt {
        display: none !important;
    }
	.invention-notebook-query .inq-post figure::after {
		height: 85%;
	}
	.invention-notebook-query .inq-post figure img {
		/* object-position: 0% 0%; */
	}

	.invention-notebook-query .inq-post .inq-content-container {
		position: relative;
		margin-bottom: 0px;
		padding: 20px 30px 20px 30px;
	}
	.invention-notebook-query .inq-post h2 {
		font-size-adjust: 0.5;
	}
	.invention-notebook-query .inq-post .wp-block-post-excerpt {
		/* border: solid 10px red; */
		font-size-adjust: 0.5;
	}
}/* /@media screen and (max-width: 832px) { */
@media screen and (max-width: 533px) {
	.invention-notebook-header p {
		font-size: 14px;
		white-space: wrap;
	}
}
/* /invention notebook query =============================================================== */

/* Resources ===================================================================== */
/* see also blocks/lemelson-tout-2/styles.css */
.resources-container {
    /* border: solid 1px blue; */
}
.resources-container .resources-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px 20px;
}
.resources-container .resource-group-header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    background-color: var(--lemelson-casper);
}
.resources-container .resource-group-header h2 {
    position: relative;
    padding: 0 15px;
    width: fit-content;
    background-color: var(--lemelson-gallery);
}

/* /Resources ===================================================================== */


/* 2-col page ============================================================================== */
/* see /faces-of-invention/ */
.wp-block-columns.cols-2-3-1 {
    margin-top: 70px;
}
.wp-block-columns.cols-2-3-1 .wp-block-column:first-child {
    flex-basis: 74.666% !important;
}
.wp-block-columns.cols-2-3-1 .wp-block-column:first-child ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 15px;
    grid-row-gap: 25px;
    padding-bottom: 60px;
}
.wp-block-columns.cols-2-3-1 .wp-block-column:last-child {
    flex-basis: 25.333% !important;
    margin-top: 43px;
    border-top: solid 1px var(--lemelson-gray);
}
.wp-block-columns.cols-2-3-1 .wp-block-column:last-child li {
    padding-bottom: 25px;
}

.cols-2-3-1-left-title-container {
    position: relative;
    margin-bottom: 30px;
}
.cols-2-3-1-left-title-container::before {
    position: absolute;
    content: "";
    width: 100%;
    bottom: 8px;
    border-bottom: solid 1px var(--lemelson-gray);
}
.cols-2-3-1-left-title-container h3 {
    padding-right: 15px;
    position: relative;
    width: fit-content;
    margin-left: 0 !important;
    color: var(--lemelson-gray);
    background-color: white;
}

.cols-2-3-1-right-title-container {
    position: relative;
}
.cols-2-3-1-right-title-container h3 {
    font-size: 28px;
    color: var(--lemelson-gray);
}

.wp-block-columns.cols-2-3-1 .wp-block-query-pagination {
    margin-bottom: 30px;
}

@media screen and (max-width: 1265px) {
    .wp-block-columns.cols-2-3-1 .wp-block-column:first-child ul {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 980px) {
    .wp-block-columns.cols-2-3-1 .wp-block-column:first-child ul {
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: repeat(1, 1fr);
    }
    .wp-block-columns.cols-2-3-1 .wp-block-column:first-child {
        flex-basis: 50% !important;
    }
    .wp-block-columns.cols-2-3-1 .wp-block-column:last-child {
        flex-basis: 50% !important;
    }
}
@media screen and (max-width: 700px) {
    .wp-block-columns.cols-2-3-1 .wp-block-column:first-child ul {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* /2-col page ============================================================================== */


/* responsivevoice (text2speech) =========================================================== */
/* see /templates/invention-notebook.html */
.responsivevoice p {
    margin: -2px 0 0 0;
    padding: 0 !important;
}
.responsivevoice-button {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.responsivevoice-button span {
    display: none;
}
.responsivevoice-button:after {
    content: '\f01d';
    font-family: FontAwesome;
    font-size: 29.5px;
    cursor: pointer;
    color: var(--lemelson-boulder);
    -webkit-transition: color 100ms ease-in-out;
    -moz-transition: color 100ms ease-in-out;
    -ms-transition: color 100ms ease-in-out;
    -o-transition: color 100ms ease-in-out;
    transition: color 100ms ease-in-out;
}
.responsivevoice-button:hover:after {
    color: var(--lemelson-blue);
}
/* /responsivevoice (text2speech) =========================================================== */


/* nav2select ================================================================================= */
/* see also /assets/js/tw.js nav2select() */
nav.menu-news .menu-news-select,
.page-toggles .menu-news-select {
    /* appearance: none; */
    max-width: 300px;
    color: #fff;
    background-color: var(--lemelson-blue);
    display: none;
}
.menu-news-select:has(option[value="/category/impact-spotlights/"][selected="selected"]) {
    background-color: var(--lemelson-purple);
}
.menu-news-select:has(option[value="/category/grantee-profiles/"][selected="selected"]) {
    background-color: var(--lemelson-bismark);
}
.menu-news-select:has(option[value="/category/press-releases/"][selected="selected"]) {
    background-color: var(--lemelson-hemlock);
}
.menu-news-select:has(option[value="/category/news/"][selected="selected"]) {
    background-color: var(--lemelson-copper);
}
.menu-news-select:has(option[value="/news/"][selected="selected"]) {
    background-color: var(--lemelson-bismark);
}
.menu-news-select option {
    font-size: 16px;
}
@media screen and (max-width: 700px) {
    nav.menu-news ul,
    .page-toggles .wp-block-buttons {
        display: none;
    }
    nav.menu-news .menu-news-select,
    .page-toggles .menu-news-select {
        display: block;
    }
}
/* /nav2select ================================================================================= */

/* test classes ============================================================================ */
.tw-faces .wp-block-media-text {
    margin-bottom: 30px;
}
.tw-faces .wp-block-media-text figure {
    aspect-ratio: 5 / 3;
}
.tw-faces .wp-block-media-text figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* /test classes ============================================================================ */
