/*
Theme Name:  Oliver Child
Theme URI:   http://themeforest.net/user/pixelwars/portfolio
Description: Make your modifications to [Oliver Theme] in this child theme.
Author:      Pixelwars
Author URI:  http://themeforest.net/user/pixelwars
Version:     1.0.5
Template:    oliver
Tags:        portfolio
Text Domain: oliver-child
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Grid container */
.portfolio-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
}

/* Portfolio item styles */
.portfolio-item {
    position: relative;
    color: white;
    text-align: center;
	border: 2px solid #fff;
}

/* Image background */
.portfolio-image {
    width: 100%;
    height: 0;
    padding-bottom: 300px; /* Aspect ratio for the image box */
    background-size: contain;
    background-position: center;
	background-repeat: no-repeat;
    position: relative;
}

/* Overlay title */
.portfolio-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

/* Hover effect */
.portfolio-item a:hover .portfolio-title {
    background: rgba(0, 0, 0, 0.8);
}

@media ( max-width: 768px ){
	.portfolio-grid {
    	grid-template-columns: 1fr;
	}
}



/* Blog */
.blog-posts {
    display: flex;
    column-gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}
.blog-post-item {
    flex: 1;
    overflow: hidden;
	min-width: 300px;
}
.blog-post-item img {
    height: 170px;
    object-fit: cover;
}
.blog-post-title {
    margin: 10px 0;
    color: #000;
    font-size: 17px;
    transition: .3s ease;
}
.blog-post-item:hover .blog-post-title {
    color: #fbbe5e;
}
.blog-post-excerpt {
    margin: 5px 0;
    color: #555;
    font-size: 15px;
}
.blog-post-date {
    color: #aeaeae;
    font-weight: 700;
    font-size: 13px;
}