/* CHOP LOGO IN HEADER */
header .topBar .grid {
    padding: 0;
}

header .grid {
    align-items: center !important;
}

.site-affiliate-dept-name .chop-logo {
    float: left;
}

.chop-logo a:hover img {
    opacity: .6;
    transition: .3s;
}

.site-title {
    display: none;
}

@media screen and (max-width: 720px) {
    .grid.header-main {
        display: block;
    }
    
    .psom-logo.unit.one-third, .site-affiliate-dept-name .chop-logo {
        width: 100%;
    }
    
    .site-affiliate-dept-name .chop-logo a {
        display: block;
        margin: auto;
        width: 289px;
    }
    
    .psom-logo.unit.one-third a {
        display: block;
        margin: auto;
        width: 213px;
    }
    
    .site-name.site-name-with-logo .custom-logo {
        float: none;
    }
    
    .theme_penn_default .psom-logo-white, .theme_penn_default .psom-logo-blue {
        margin: auto;
    }

}

@media screen and (max-width: 568px) {
    
    .site-affiliate-dept-name .chop-logo {
        float: none;
    }
    .chop-logo img {
        margin: auto;
    }
}

/* CUSTOM LOGO IN HEADER */
header .topBar .grid {
    padding: 0;
}

header .grid {
    align-items: center !important;
}

.site-name-with-logo .custom-logo {
    float: right;
}

.custom-logo a:hover img {
    opacity: .6;
    transition: .3s;
}

.site-title {
    display: none;
}

@media screen and (max-width: 568px) {
    
    .site-name-with-logo .custom-logo {
        float: none;
    }
    .custom-logo img {
        margin: auto;
    }
    
}
/* CUSTOM HOMEPAGE NEWS GRID */

.news-grid__title.news-grid__title {
    color: #fff;
}

.news-grid__grid {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.news-grid__item {
	width: 30%;
	padding: 30px;
	margin: 1.5% 3% 1.5% 0;
}

/* pointer on whole card, since the whole thing is clickable via JS */
.news-grid__item--clickable:hover {
    cursor: pointer;
}

/* define focus within separately from hover, so that hover works when focus-within is not supported */
.news-grid__item--clickable:focus-within {
    box-shadow: 0px 0px 0 1px rgba(255, 255, 255, .5);
}

.news-grid__item a:focus {
    outline: none;
    /* text decoration for when focus within is not supported */
    text-decoration: underline;
}

.news-grid__item----clickable:focus-within a:focus {
    text-decoration: none;
}

.news-grid__item-type {
    margin: 5px 0;
	padding: 2px;
	line-height: 1;
	font-weight: 700;
	float: left;
}

.news-grid__item .news-grid__item-type {
	font-size: .9em;
}

.news-grid__arrow {
	text-align: right;
}

.news-grid__item i {
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -o-transition: .3s;
	transition: .3s;  
}

.news-grid__more {
	text-align: right;
}

.read-more--dark {
    background: rgba(0,0,0,.3);
}

@supports (display: grid) {

    .news-grid__grid {
        display: -ms-grid;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }
    
    .news-grid__item {
    	width: 100%;
    }
        
    .news-grid__item--1-3 {
    	grid-column-end: span 2;
    }
}

@media only screen and (max-width: 978px) {
    
	/* undo grid layout on smaller screens */
	.news-grid__grid {
		display: block;
	}
	
	.news-grid__item {
	    width: 100%;
		display: block;
		border: none;
		padding: 20px;
		margin: 0 0 20px 0;
	}

	.news-grid__photo {
		display: block;
		margin-bottom: 10px;
	}
	
    .news-grid__item-type {
        width: 100%;
        margin-bottom: 10px;
    }
	
}

/* dark color scheme used on homepage */
.news-grid--dark .news-grid__item {
    background: rgba(0,0,0,.3);
}

.news-grid--dark .news-grid__item-type {
    color: #fff;
    opacity: .5;
}

.news-grid--dark .news-grid__item-description {
	color: #fff;
	opacity: .8;
}

.news-grid--dark .news-grid__arrow {
	text-align: right;
	color: #fff;
}

.news-grid--dark .news-grid .news-grid__title {
	color: #82afd3;
}

.news-grid--dark .news-grid__item .fa-circle.fas {
	opacity: 0;
}

.news-grid--dark .news-grid__item--clickable:hover .news-grid__item-title a {
    color: #fff;
}

.news-grid--dark .news-grid__item--clickable:hover .fa-circle.fas {
    opacity: 1;
}

.news-grid--dark .news-grid__item--clickable:hover .fa-chevron-right {
	color: #95001a;
}

/* dark color scheme used on blog overview */

.news-grid--light .news-grid__item {
    background: rgba(0,0,0,.1);
}

.news-grid--light .news-grid__item--clickable:hover {
    cursor: pointer;
} 

.news-grid--light .news-grid__item--clickable:hover .news-grid__item-title a {
    color: inherit;
}

.news-grid--light .news-grid__item:focus-within {
    box-shadow: 0px 0px 0 1px rgba(0, 0, 0, .5);
}

.news-grid--light .news-grid__item-type {
    color: #00144d;
    opacity: .7;
}

.news-grid--light .news-grid__item-description {
	color: #00144d;
	opacity: .8;
}

.news-grid--light .news-grid__arrow {
	text-align: right;
	color: #95001a;
}

.news-grid--light .news-grid__item .fa-circle.fas {
    color: #fff;
}

.news-grid--light .news-grid__item--clickable:hover .fa-chevron-right {
    color: #fff;
}

.news-grid--light .news-grid__item--clickable:hover .fa-circle.fas {
    color: #95001a;
}
