/*
Theme Name: Zaveri Child
Theme URI: https://hetinfo.in
Author: Hetinfo
Author URI: https://hetinfo.in
Template: twentytwentyone
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone-child

Zaveri WordPress Theme, (C) 2022-2023 WP Engine.
Zaveri is distributed under the terms of the GNU GPL.
*/
/* Defaults
---------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ========================
   CERA PRO FONT (OTF)
   ======================== */

/* Regular */
@font-face {
    font-family: 'Cera Pro';
    src: url('../fonts/cera-pro/Fontspring-DEMO-cerapro-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Cera Pro';
    src: url('../fonts/cera-pro/Fontspring-DEMO-cerapro-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Cera Pro';
    src: url('../fonts/cera-pro/Fontspring-DEMO-cerapro-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary: #d6b07e;
    --secondary: #454545;
    --secondary-light: #a1a1a1;
    --secondary-lighter: #b1b1b1;
}

body {
    font-family: "Montserrat", sans-serif;
}

.text-secondary {
    color: var(--secondary);
}

.text-secondary-light {
    color: var(--secondary-light);
}

.font-manrope {
    font-family: "Manrope", sans-serif;
}

.font-cera-pro {
    font-family: 'Cera Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* header css */
/* When menu is open */
.menu-open .top {
    transform: rotate(45deg);
    top: 10px;
}

.menu-open .middle {
    opacity: 0;
}

.menu-open .bottom {
    transform: rotate(-45deg);
    top: -10px;
}

header nav a {
    color: #fff;
    font-size: 12px;
    transition: 0.5s;
}

header nav a:hover {
    color: #000;
}

footer a {
    transition: 0.4s;
}

footer a:hover {
    color: #333;
    padding-left: 4px;
}


.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
    content: none !important;
}

/* Header base */
#siteHeader {
    will-change: transform, background;
}

/* When scrolled */
#siteHeader.scrolled {
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hide header on scroll down */
#siteHeader.hide {
    transform: translateY(-100%);
}

/* Show header */
#siteHeader.show {
    transform: translateY(0);
}



/* Remove arrows in Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


/* Autofill background fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}


/* Marque animation for project details page */
.marquee-up {
    --speed: 20s;
}

.marquee-down {
    --speed: 25s;
}

.marquee-track {
    animation: marquee var(--speed) linear infinite;
    will-change: transform;
}

.marquee-down .marquee-track {
    animation-direction: reverse;
}

.marquee-track:hover {
    animation-play-state: paused;
}


/* KEY FIX */
@keyframes marquee {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}


/* Timeline css */
/* MAIN SCROLL */
#main-box {
    overflow: hidden;
    /* height: 420px; */
    position: relative;
    width: 100%;

    user-select: none; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    cursor: grab;
}

#main-box:active {
    cursor: grabbing;
}

#main-box img {
    pointer-events: none;
}

#list-wrapper {
    width: max-content;
    position: relative;
}

/* TIMELINE */
#time-list {
    display: flex;
    padding: 0;
    margin: 0;
    position: relative;
}

/* BASE LINE */
#time-list::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: calc(100% - 200px);
    background: rgba(156, 156, 156, 1);
    z-index: 1;
}

/* TIMELINE ITEM */
#time-list li {
    position: relative;
    display: inline-block;
    width: 200px;
    list-style: none;
    height: 0;
}

/* BULLETS */
#time-list li::after {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    top: -7px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(156, 156, 156, 1);
    transition: 0.3s;
    z-index: 3;
}

/* ACTIVE BULLET */
#time-list li.active::after {
    background: #000;
}

/* CONTENT BOX */
.time-item {
    position: absolute;
    width: 200px;
}

#time-list li:nth-child(odd) .time-item {
    bottom: 35px;
}

#time-list li:nth-child(even) .time-item {
    top: 35px;
}

/* PROGRESS BAR */
#time-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    background: #000;
    width: 0;
    transition: width 0.4s ease;
    z-index: 2;
}

/* NAV BUTTONS */
.timeline-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.timeline-nav button {
    font-size: 22px;
}


@media (max-width: 767px) {
    #time-list li:nth-child(odd) .time-item {
        bottom: unset;
        top: 35px;
    }
    .time-item {
        width: 180px;
    }
    #time-bar{
        top: 0;
    }
}


/* project details gallery */
#pg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#pg-lightbox.pg-hidden {
    display: none;
}
#pg-lightbox img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    margin: auto;
}
.pg-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
}
.pg-prev,
.pg-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: none;
    border: none;
}
.pg-prev { left: 16px; }
.pg-next { right: 16px; }

.pg-image-wrap {
    overflow: hidden;
}

/* Zoom */
.pg-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* Thumbnail strip */
.pg-thumbs {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
}

.pg-thumbs img {
    height: 56px;
    cursor: pointer;
    opacity: .5;
    border: 2px solid transparent;
}

.pg-thumbs img.active {
    opacity: 1;
    border-color: white;
}

/* Hide scrollbar (optional) */
.pg-thumbs::-webkit-scrollbar {
    display: none;
}