/*
Theme Name: Just Inches Ltd
Theme URI: https:/github.com/#
Author: Dapo Obembe
Author URI: https://www.dapoobembe.com
Description: Just Inches Ltd Theme built by Just Inches Ltd tech team.
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.0
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: justinchesltd
*/

:root{
    --ji-border: 10px;
    --ji-mobile-border: 5px;
    /* Swiper js */
    --swiper-navigation-size: 1.5rem!important;
}

p{
    font-family: Muli!important;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 170%;
    margin-bottom: 0;
}

@media (max-width: 480px){
    p{
        font-size: 15px;
        line-height: 27px;
    }
}

a, p a{
    text-decoration: none!important;
    transition: color 0.35s ease-in-out;
}

h1, h2, h3, h4, h5{
    margin-top: 1rem!important;
    font-weight: 700!important;
    line-height: 1.1!important;
    margin-bottom: 0.5rem!important;
    font-family: 'Poppins', sans-serif!important;
}

/* STYLE THE MAIN BODY WRAPPER FOR THE FIXED SIDEBAR */
.page-body{
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0!important;
    padding: 0!important;
}

.page-body .fixedbar{
    float: left;
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    background-color: #070a11;
    z-index: 99;
    height: 100%;
    text-align: center;
}

.page-body .main-content{
    width: calc(100% - 150px)!important;
    max-width: 100%!important;
    margin-left: 150px!important;
}

@media screen and (max-width: 1300px){
    .page-body .fixedbar{
        display: none!important;
    }
    .page-body .main-content{
        width: 100%!important;
        margin-left: auto!important;
    }
}

/* Fixed sidebar links */
.page-body .fixedbar{
    display: flex;
    align-items: center!important;
    padding: 100px 0 0 0!important;
}

.page-body .fixedbar .social-links{
    height: 600px!important;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.page-body .fixedbar .social-links::after{
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background-color: #A9AFC3;
    top: 100%;
    rotate: 90deg;
    z-index: 10;
}

.page-body .fixedbar .social-links p{
   color: #A9AFC3!important;
   rotate: -90deg;
   margin-bottom: 40px!important;
   text-transform: uppercase;
}

.page-body .fixedbar .social-links p a{
    transition: color 0.3s ease-in-out;
}

.page-body .fixedbar .social-links p a:hover{
    color: var(--wp--preset--color--ji-red);
}

/* CONTAINER DEFAULT */
.container{
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

@media (min-width: 1025px){
    .container{
        padding-left: 2rem!important;
        padding-right: 2rem!important;
    }
}
@media (max-width: 1024px){
    .container{
        padding-left: 1.5rem!important;
        padding-right: 1.5rem!important;
    }
}
@media (max-width: 624px){
    .container{
        padding-left: 0rem!important;
        padding-right: 0rem!important;
    }
}


/* WP BLOCK COLUMNS */
.wp-block-columns {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto;
}

/* WP COVER BLOCK override */
.wp-block-cover__inner-container{
    padding-left: 0!important;
    padding-right: 0!important;
}

/*--------------Hover Effect on Post Card-------------------*/
.wp-block-query ul li figure{
    overflow: hidden;
}

.wp-block-query ul li figure img{
    width: 100%;
    height: 100%;
    transition: scale 0.5s ease-in-out;
}

.wp-block-query ul li:hover figure img,
.wp-block-query ul li:focus figure img{
    scale: 1.095;
}

.wp-block-query ul li:hover a{
    text-decoration: none;
    color: var(--wp--preset--color--ji-light-red);
}

/* Post Grid Style*/
.wp-block-post-template-is-layout-grid{
    gap: 0!important;
}
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .wp-block-post-template-is-layout-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr))!important;
    }
}

@media screen and (max-width: 767px) {
    .wp-block-post-template-is-layout-grid{
        grid-template-columns: 1fr!important;
    }
}

/*-------------------SECTIONS & SOME GENERAL STYLES----------*/

/* Block cover inside post loop */
.wp-block-query ul li .wp-block-cover {
    align-items: flex-end !important;
}

.wp-block-query ul li .wp-block-cover img {
    transition: scale 0.5s ease-in-out;
}

.wp-block-query ul li:hover .wp-block-cover img {
    scale: 1.095;
}

.wp-block-query ul li:hover .wp-block-cover .wp-block-cover__inner-container h3 a {
    color: var(--wp--preset--color--ji-light-red) !important;
}

.wp-block-query ul li:hover .wp-block-cover .wp-block-cover__inner-container h3 a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
}

/*---Swiper Btn---*/
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    display: none !important;
}

/* H2 Animations */
h2 {
    
    transform: translateY(50%);
    opacity: 0;
    transition: all 0.35s ease-in-out;
}

h2.in-view {
    transform: translateY(0%);
    opacity: 1;
}
