/* ========== START STYLES TO MAKE PB EDITING EASIER ==========  */

/* Fixes problem where editing widgets near the header is impossible without hiding elements via the web inspector */
#pb-editor .main-header {
	position: static;
	height: auto !important;
	z-index: auto;
	visibility: visible !important;
}
#pb-editor #mainNavbar {
	height: auto;
}
/* Fix problem where wallpaper dropzone is not accessible in the alt-articles-section multi search widget template */
#pb-editor .section-wallpaper:after {
	content: none;
}
#pb-editor .section-wallpaper {
	position: static;
}

/* Journal Highlight Slideshow on Site Home and Cust. Pub. Home: Make dropzones accessible */
#pb-editor .journals-showcase .col-xl-10 {
	max-width: none !important;
}
#pb-editor .journals-showcase__slideshow .swiper-slide {
	width: 150px;
}
#pb-editor .journals-showcase__slideshow .journal-slide-item .container-fluid {
	padding: 0;
	margin: 0;
}
#pb-editor .journal-slide-item__title {
	height: 0;
}
#pb-editor .journals-showcase__slideshow .journal-slide-item__cover .cover-image__image, #pb-editor .cover-image__popup-view__wrapper .col-lg-8 {
	display: none;
}
#pb-editor .journal-slide-item .container-fluid {
	top: 0;
}
#pb-editor .journal-slide-item__body {
	display: block !important;
	padding: 0 !important;
}
#pb-editor .journals-showcase__showcase-item--to-clone {
	position: static;
}
/* ========== END STYLES TO MAKE PB EDITING EASIER ==========  */


.main-header__secondary__logo img {
    /* height: 90%; */
    max-width: 100%;
}

.journal-menu__img {
    width: unset;
}

/* LIT-412173 */
.entity-paragraphs-item figure, figure.entity-paragraphs-item {
    border-bottom: 1px solid #dbdbdb;
    border-top: 1px solid #dbdbdb;
    padding: 16px 0;
    padding: 1rem 0;
}

.entity-paragraphs-item figure img {
    margin-bottom: 0.5rem;
}

.entity-paragraphs-item figure .credit {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    color: #7f7f7f;
}

.entity-paragraphs-item.align-right {
    width: calc(50% - 1rem);
    float: right;
    margin: 0.5rem 0 0.5rem 2rem;
} 

/* AAAS-465 */
.core-container > blockquote:first-child {
    padding: 1rem;
    background: #f5f5f5;
    text-align: left;
    letter-spacing: normal;
}

.core-container > blockquote:first-child:before {
    content: none;
}

.core-container > blockquote:first-child [role=paragraph] {
    margin: 0;
    font-size: 14px;
    font-size: .875rem;
    line-height: 22px;
    line-height: 1.375rem;
}

.core-container > blockquote:first-child [role=paragraph] b {
    font-weight: 400;
}


/* Styles for Inline PDF Viewer used in Resource DOs */
.pdf-view-wrap {
	position: relative;
	width: 100%;
	padding-top: 100%;
}
#iframe-fullscreen {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
}


/* Media embed CSS copied from old site */
.aspect-ratio--1x1, .aspect-ratio--3x4, .aspect-ratio--4x3, .aspect-ratio--16x9, .media-wrap--1x1, .media-wrap--3x4, .media-wrap--4x3, .media-wrap--16x9 {
    position: relative;
    width:100%
}
.aspect-ratio--1x1 iframe, .aspect-ratio--1x1 picture, .aspect-ratio--1x1 > :only-child, .aspect-ratio--3x4 iframe, .aspect-ratio--3x4 picture, .aspect-ratio--3x4 > :only-child, .aspect-ratio--4x3 iframe, .aspect-ratio--4x3 picture, .aspect-ratio--4x3 > :only-child, .aspect-ratio--16x9 iframe, .aspect-ratio--16x9 picture, .aspect-ratio--16x9 > :only-child, .media-wrap--1x1 iframe, .media-wrap--1x1 picture, .media-wrap--1x1 > :only-child, .media-wrap--3x4 iframe, .media-wrap--3x4 picture, .media-wrap--3x4 > :only-child, .media-wrap--4x3 iframe, .media-wrap--4x3 picture, .media-wrap--4x3 > :only-child, .media-wrap--16x9 iframe, .media-wrap--16x9 picture, .media-wrap--16x9 > :only-child {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 100%;
    top: 0;
    left:0
}
.aspect-ratio--1x1 > iframe, .aspect-ratio--3x4 > iframe, .aspect-ratio--4x3 > iframe, .aspect-ratio--16x9 > iframe, .media-wrap--1x1 > iframe, .media-wrap--3x4 > iframe, .media-wrap--4x3 > iframe, .media-wrap--16x9 > iframe {
    border:0
}
.aspect-ratio--16x9, .media-wrap--16x9 {
    padding-top:56.25%
}
.aspect-ratio--4x3, .media-wrap--4x3 {
    padding-top:75%
}
.aspect-ratio--3x4, .media-wrap--3x4 {
    padding-top:150%
}
.aspect-ratio--1x1, .media-wrap--1x1 {
    padding-top:100%
}

/* Migrated DO figure captions */
.news-article__figure .news-article__figure__caption p {
    font-size: .875rem;
    line-height: 1.125rem;
    display: inline;
}

/* Hide guest purchase option */
input[data-bind="guest"] {
    display: none;
}

/* Hiding key images from Editorial section on Commentary landing page */
.no-key-image .card-image {
    display: none !important;
}

/* AAAS-807 */
.news-article-content--featured h3.text-lg, .news-article-content h3.text-lg {
	font-size: 1.25rem;
}
.news-article-content--featured figcaption h3, .news-article-content figcaption h3 {
	margin-bottom: .5rem;
}
.news-article-content--featured h2.figure__hed, .news-article-content h2.figure__hed {
	font-size: 1.25rem;
	margin-bottom: .5rem;

}
.news-article__figure figcaption.figure__dek {
	font-size: 1rem;
	line-height: 1.375rem;
	margin-bottom: 1rem;
}
.news-article-content--featured .news-article__figure figcaption p, .news-article-content .news-article__figure figcaption p {
	font-size: 1rem;
	line-height: 1.375rem;
	margin-bottom: 1rem;
}

/* AAAS-1369 */
/* This allows prevents the multi-search widget HTML from breaking the hero display */
.grid-hero__featured > div, .grid-hero__featured > div > div {
	height: 100%;
}

/* Fix old migrated blogs that don't have paragraph tags */
.do-blog .news-article-content br {
	content: "";
	margin-bottom: 1rem;
	display: block;
}