﻿@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair:ital,opsz,wdth,wght@0,5..1200,87.5..112.5,300..900;1,5..1200,87.5..112.5,300..900&display=swap');

body {
    font-size: clamp(15px, 2vw, 18px);
    font-family: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: clamp(25px, 4vw, 60px);
    font-weight: 400;
    line-height: 1.2em;
    font-family: "Playfair", serif;
}


h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.1em;
    font-family: "Playfair", serif;
}


h3 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2em;
    font-weight: 600;
    font-family: "Playfair", serif;
}

h4 {
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.2em;
    font-family: "Playfair", serif;
}

h5 {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.2em;
    font-family: "Playfair", serif;
}

h6 {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4em;
    font-family: "Inter", sans-serif;
}

p, a {
    font-style: normal;
    font-weight: 400;
    font-size: clamp(15px, 2vw, 17px) !important;
    color: #3A3A3A;
    font-family: "Inter", sans-serif;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a, a:hover, a:focus {
    text-decoration: none !important;
}

img {
    border-style: none;
}

.text-red {
    color: #AB0036;
}

#timeline-madhubani ul {
    list-style-type: disc
}

    #timeline-madhubani ul li::marker {
        color: #AB0036;
    }

section.madhubani {
    text-align: center;
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
    transition: all 0.8s ease;
}

    section.madhubani h2 {
        font-family: "Playfair Display", serif;
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 600;
        position: relative;
        margin-bottom: 12px;
        transition: all 1s ease-in-out;
    }

    section.madhubani p {
        font-size: clamp(14px, 2vw, 16px);
        color: #555;
        max-width: 720px;
        margin: 0 auto 60px;
        line-height: 1.7;
        transition: all 1s ease-in-out;
        position: relative;
    }

.image-wrap.full ~ h2,
.image-wrap.full h2,
.full-heading {
    transform: translateY(25px) scale(0.95);
}


/* image wrapper */
.image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
    transition: all 1s ease;
    z-index: 2;
}

    /* FULL WIDTH on scroll */
    .image-wrap.full {
        width: 100%;
        max-width: 100%;
        transition: all 1s ease;
    }

.side-left-top {
    top: -40px;
    left: 60px;
}

.side-left-bottom {
    bottom: -60px;
    left: 100px;
}

.side-right {
    top: -40px;
    right: 80px;
}

/* main image */
.main-img {
    width: 600px;
    border-radius: 14px;
    transition: all 1s ease-in-out;
    z-index: 3;
}

    .main-img img {
        width: 100%;
        height: auto;
        box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
        overflow: hidden;
        display: block;
        transition: transform 1s ease;
    }

/* when scrolled -> expand + zoom */
.image-wrap.full .main-img {
    width: 75%;
    border-radius: 0;
}

    .image-wrap.full .main-img img {
        transform: scale(1);
    }

/* keep side imgs visible but slightly pulled */
.image-wrap.full .side-img {
    transform: scale(0.95);
    opacity: 0.9;
}

/* side image wrapper */
.side-img {
    width: 175px;
    height: 180px;
    overflow: hidden;
    position: absolute;
    transition: all 1s ease-in-out;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    border-radius: 0;
    /* wrapper has no rounding */
}

    /* fix radius directly on img so it never scales unevenly */
    .side-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        /* consistent radius for all sides */
        transition: all 1s ease-in-out;
    }

/* when scrolled -> enlarge slightly */
.image-wrap.full .side-img {
    transform: scale(1.1);
}

    /* keep radius same even after zoom */
    .image-wrap.full .side-img img {
        border-radius: 10px;
        /* ensures no distortion */
    }

/* responsive adjustment (no hiding) */
@media (max-width: 992px) {
    .side-img {
        width: 120px;
        height: 100px;
    }

    .side-left-top {
        top: -30px;
        left: 20px;
    }

    .side-right {
        top: -30px;
        right: 20px;
    }

    .side-left-bottom {
        bottom: -40px;
        left: 30px;
    }

    .main-img {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .side-img {
        width: 100px;
        height: 80px;
    }

    .side-left-top {
        top: -25px;
        left: 10px;
    }

    .side-right {
        top: -25px;
        right: 10px;
    }

    .side-left-bottom {
        bottom: -30px;
        left: 20px;
    }
}

.pull-down {
    transform: translateY(20px) scale(0.95);
}


/* layout */
.tl-wrap {
    position: relative;
}

.tl-box {
    background: #fff0;
    padding: 24px;
}

    .tl-box img {
        overflow: hidden;
        border-radius: 12px;
    }
    /* When sticky enters fixed mode → vertically center */
    .tl-box.fix-sticky {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: 0; /* JS left value apply karega */
        width: auto; /* JS width lock karega */
        z-index: 10;
        transition: transform 0.3s ease;
    }

    /* Normal sticky mode (CSS sticky) → default no centering */
    .tl-box.is-sticky {
        position: sticky;
        top: 96px; /* your original offset */
        transform: none;
        z-index: 2;
    }

    /* When reaching container bottom → stop centering */
    .tl-box.fix-bottom {
        position: absolute;
        transform: none;
        left: 0;
    }

/* when reached bottom */

/* keep image edges neat, but DO NOT set overflow on parents of sticky */
.img-holder picture, .img-holder img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* badge */
.year-badge {
    background: #a10033;
    color: #fff;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 15px;
}

/* list */
#timeline-madhubani ul {
    padding-left: 20px;
    margin: 0;
}

#timeline-madhubani li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* responsive: disable sticky on small screens */
@media (max-width: 991.98px) {
    .tl-box.is-sticky, .tl-box.fix-sticky, .tl-box.fix-bottom {
        position: static !important;
        top: auto;
    }
}

.zoom-section {
    /*overflow: hidden;  */ border-radius: 12px;
}

.myZoomImg {
    transform: scale(1); /* starting scale fixed */
    transition: transform 0.12s linear;
    will-change: transform;
    display: block;
}

.tl-zoom-exclusive {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

    .tl-zoom-exclusive .tl-left {
        transition: opacity .25s ease;
    }

    .tl-zoom-exclusive.tl-width-active .tl-left {
        opacity: .78;
    }

    /* image holder must be relative + visible */
    .tl-zoom-exclusive .tl-zoom-img-box {
        position: relative;
        overflow: visible;
        z-index: 5;
        /* JS height set karega so content jump na ho */
    }

    /* IMAGE: pin to right, grow left */
    .tl-zoom-exclusive .tl-zoom-img {
        position: absolute;
        right: 0; /* <— requested */
        top: 0; /* <— requested */
        width: 100%; /* JS px me overwrite karega */
        max-width: none !important; /* allow >100% */
        height: auto;
        display: block;
        transition: width .12s linear;
        will-change: width;
        z-index: 10;
        pointer-events: none; /* text selectable rahe */
        border-radius: .5rem;
        object-fit: cover;
    }
/* ✅ for tablets */
@media (min-width: 992px) {
    .tl-zoom-exclusive .tl-zoom-img-box {
        height: 570px;
    }
}

/* ✅ for mobile */
@media (min-width: 1200px) {
    .tl-zoom-exclusive .tl-zoom-img-box {
        height: 482px;
    }
}

/* SECTION: full viewport */
#scrollSlider {
    /*height: 100vh;*/
    width: 100%;
    display: block;
    position: relative;
    background: #fff;
    /* don't set overflow:hidden on body or parent pages */
}

    /* Swiper container */
    #scrollSlider .swiper {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* ensure wrapper uses horizontal flex layout (swiper sets this too,
     but explicit CSS prevents layout surprises) */
    #scrollSlider .swiper-wrapper {
        display: flex;
        height: 100%;
    }

    /* each slide full viewport width */
    #scrollSlider .swiper-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 12px;
    }

.img-frame { /*
    width: min(94vw, 1100px);*/
    width: 100%;
    height: 100%;
    display: block;
}

    .img-frame img {
        width: 100%;
        height: 477px;
        object-fit: cover;
        display: block;
        border-radius: 32px;
    }

#scrollSlider
/* For touch devices — avoid browser gestures interfering */ {
    touch-action: pan-y;
}
/* allow vertical scrolling by default */




