/*
Theme Name: AgriTech
Theme URI: http://wesoftpress.com
Author: Rony T.
Author URI: https://web.facebook.com/ronytarafder99
Description: This WordPress magazine theme that combines a clean, minimalist feel with a full featured theme.
Version: 1.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
*/

.home-page-blog h1 {
    color: #fff;
    font-size: 1.5rem;
}

.home-page-blog {
    box-shadow: 0 1px 4px 0 #b7b7b7;
    border-radius: 5px;
    padding: 18px;
    margin: 25px 0;
}

.home-page-blog .blog-post-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px
}

.home-page-blog .blog-post-inner img {
    width: 100%;
    height: auto;
}

.home-page-blog .blog-post-inner .blog-posts {
    background-color: #1b1b1b;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    box-shadow: 0 1px 4px 0 #b7b7b7;
}

.home-page-blog .blog-post-inner .blog-posts h5 {
    font-size: 1.3rem;
    line-height: 1.7rem;
    margin: 5px 0 40px 0;
}

.home-page-blog .blog-post-inner .blog-posts h5 a {
    color: #fff;
}

.home-page-blog .blog-post-inner .blog-posts .read-more {
    background-color: #d0a549;
    padding: 7px;
    position: absolute;
    left: 10px;
    bottom: 10px;
    border-radius: 5px;
    display: flex;
    width: fit-content;
    font-size: .8rem;
    color: #fff;
}

.home-page-blog .blog-post-inner .blog-posts .read-more a {
    color: #fff;
}

.pagination1 {
    width: 100%;
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
}

.page-numbers {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-right: 5px;
    color: #fff;
    border-radius: 5px;
    background-color: #1b1b1b;
    text-decoration: none;
    border: 1px solid #dee2e6
}

.page-numbers:hover,
.page-numbers.current {
    color: red;
    text-decoration: none;
}

.pagi_inner {
    display: flex
}

.single-thumbnail {
    margin-bottom: 20px
}

.single-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.single-contetn figure,
.single-contetn img {
    margin: 10px auto;
    text-align: center;
    max-width: 100%;
}

/* -----------------------------------
      Gallery Section
--------------------------------------*/
.portfolio-section {}


.fancybox-container button:focus {
    outline: 0;
    box-shadow: none;
}

.portfolio-item {
    padding-top: 30px;
    padding-left: 0;
}

.pd {
    padding: 0;
    padding: 10px;
}

.pd img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.5s;
}

.portfolio-overlay {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    border-radius: 5px;
    height: 100%;
    text-align: center;
    visibility: hidden;
    transition: all 0.5s;
    transform: scale(0);
}

.portfolio-overlay p,
.portfolio-overlay a {
    position: relative;
    z-index: 4;
}

.portfolio-overlay::before {
    content: "";
    width: 0;
    height: 0;
    border-width: 0;
    position: absolute;
    left: 10%;
    top: 10%;
    transition: 50ms height ease 150ms;
    z-index: 3;
}

.portfolio-overlay::after {
    content: "";
    width: 0;
    height: 0;
    border-width: 0;
    position: absolute;
    right: 10%;
    bottom: 10%;
    transition: 100ms width ease 200ms;
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay::before {
    width: 80%;
    height: 80%;
    border-top: 1px solid #f1d374;
    border-right: 1px solid #f1d374;
    transition: width 0.1s ease 0.3s, height 0.1s ease 0.5s;
}

.portfolio-item:hover .portfolio-overlay::after {
    width: 80%;
    height: 80%;
    border-bottom: 1px solid #f1d374;
    border-left: 1px solid #f1d374;
    transition: width 0.1s ease 0.6s, height 0.1s ease 0.7s;
}

.portfolio-item li {
    list-style: none;
}

.portfolio-item li:hover .portfolio-overlay {
    visibility: visible;
    transform: scale(1);
}

.portfolio-overlay .category {
    margin-top: 70px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.portfolio-overlay .magnify-icon {
    height: 40px;
    width: 40px;
    border-radius: 20px;
    background: #f1d374;
    margin: 0 5px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.25s;
}

.portfolio-overlay .magnify-icon:hover {
    background: #000;
}

.portfolio-overlay .magnify-icon p span i {
    font-size: 15px;
    color: #fff;
    line-height: 40px;
    cursor: pointer;
}