/*
Theme Name:	CityGov - Child Theme
Theme URI: http://themnific.com
Description:	A basic child theme for CityGov Theme
Author:		Dannci
Author URI: http://themnific.com
Template:	citygov
Version:	0.1
*/

/* ADD SOME STYLE BELOW */

#main-nav > li {
    margin: 0 0;
    padding: 8px 15px 0 21px;
}
#main-nav > li:before {
    top: 20px;
}
#main-nav > li.special {
    padding: 0;
}

#navigation {
	padding-top: 14px;
	padding-bottom: 0;
    border-radius: 0;
}

#header #titles .logo, #header .header_fix {
    margin-top: 20px;
    margin-bottom: 16px;
}

.em-item-header {
    background: rgba(204, 204, 204, .3);
    padding: 25px;
    overflow: hidden;
	margin-bottom: 20px;
}

.em-item-header p {
    position: relative;
    padding: 0 20px 0 60px;
}

.em-item-header i {
    position: absolute;
    top: 5px;
    left: 0;
    font-size: 35px;
    opacity: .4;
}

.em-item-header>i {
    display: none;
}

.nav li.menu-item.current-page-ancestor>a {
    color: #c8973a !important;
}


/* Event image fix */
.em-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prevent overflow */
.em-item-image {
    max-width: 100%;
    overflow: hidden;
}
.em-item-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* dropdown container */
.em-event-add-to-calendar {
    position: relative;
}

/* dropdown panel */
.em-tooltip-ddm-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 100;
}
.em-item-image img {
    max-width: 100%;
}
.em-item-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.em-item-meta-column {
    width: 100%;
}



.cbf-inline-wrapper {
    padding: 10px 16px;
}

.blogger div.has-post-thumbnail.post.sticky:after {
    color: #c8973a;
}


.cbf-row-thumb img {
    min-height: 100%;
    min-width: 100%;
}



.ggsf-research-card {
    display: block;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.ggsf-research-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ggsf-research-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.ggsf-research-card:hover .ggsf-research-img img {
    transform: scale(1.05);
}

.ggsf-research-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,58,92,0.85) 0%, rgba(27,58,92,0.2) 100%);
}

.ggsf-research-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
 font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
    .ggsf-research-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ggsf-research-types {
        grid-template-columns: 1fr;
    }
}
add_filter( 'addtoany_display', function( $display ) {
    if ( is_singular( 'post' ) ) {
        return true;
    }
    return false;
} );

