/* 1. Masonry Layout: Ye automatic gaps ko khatam karega */
.cards-container { 
    column-count: 3;      /* Laptop/Desktop par 3 columns */
    column-gap: 10px;     /* Gap ko minimum (10px) kiya */
    padding: 15px; 
    width: 100%;
    box-sizing: border-box;
}

/* 2. Card Style */
.card { 
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px; /* Vertical gap control */
    break-inside: avoid; /* Card ko beech mein se cut hone se rokega */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

/* Images ko pura fill karne ke liye */
.card img { 
    width: 100%; 
    height: auto; /* Height auto rakhne se image apna ratio maintain karegi aur gap nahi aayega */
    display: block;
    transition: transform 0.6s ease;
}

.card:hover img { transform: scale(1.05); }

/* 3. Modern Text Overlay */
.card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.card h3, .card h5 {
    position: absolute;
    z-index: 2;
    margin: 0;
    color: white;
    padding: 0 15px;
    left: 0;
}

.card h3 { bottom: 35px; font-size: 1.1rem; }
.card h5 { bottom: 15px; font-size: 0.75rem; text-transform: uppercase; color: #ff3333; }

/* 4. Responsive Settings */
@media (max-width: 1024px) { .cards-container { column-count: 2; } } /* Tablet: 2 columns */
@media (max-width: 600px) { 
    .cards-container { column-count: 1; } /* Phone: 1 column */
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1000px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid white;
}

.close {
    color: white;
    position: absolute;
    top: 20px; right: 30px;
    font-size: 50px;
    cursor: pointer;
    z-index: 10002;
}

.arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 20px;
    z-index: 10002;
}

.left { left: 10px; }
.right { right: 10px; }




/* Lightbox container */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Isse sabse upar rakhein */
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

/* Lightbox wrapper */
.lightbox-wrapper {
    position: relative;
    width: 90%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Wrapper ko arrows ke niche rakhein */
}

/* Modal Content (Image) */
.modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10001; /* Image ko bhi wrapper ke level par rakhein */
}

/* Arrows position & Z-index */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    z-index: 10002; /* Arrows ka index sabse zyada hona chahiye */
    font-size: 24px;
}

.nav-btn.left { left: 20px; }
.nav-btn.right { right: 20px; }

/* Video */


/* .video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
} */
.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px; color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px; border-radius: 50%;
}
.gallery-modal {
    display: none; position: fixed; z-index: 9999; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}
.modal-content video {
    width: 80vw; max-height: 80vh;
}

/* Portfolio */
/* General Layout */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Video Section */
.video-container {
    width: 100%;
    margin-bottom: 60px;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}


/* Header Section */
.project-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0 80px 0;
    border-bottom: 1px solid #eee;
}

.meta-info {
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    color: #1a1a1a;
}

.tag {
    display: inline-block;
    border: 1px solid #333;
    padding: 6px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-top: 15px;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Gallery Section */
.gallery-section { padding: 80px 0; }
.gallery-heading { text-align: center; margin-bottom: 40px; }
.gallery-heading span { color: #888; font-size: 0.8rem; letter-spacing: 4px; }
.gallery-heading h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-top: 10px; }

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.masonry-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.masonry-grid img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .project-header { grid-template-columns: 1fr; gap: 30px; }
    .title-section h1 { font-size: 2.5rem; }
    .masonry-grid { grid-template-columns: 1fr; }
}
.project-header {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Do barabar columns */
    gap: 80px; /* Text aur Title ke beech ka space */
    padding: 60px 20px;
    align-items: start; /* Dono ko upar se start karein */
}

/* Left side (Title Section) */
.title-section {
    text-align: left;
}

.meta-info {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.title-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.tag {
    display: inline-block;
    border: 1px solid #333;
    padding: 8px 25px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 50px; /* Thoda rounded look ke liye */
    text-transform: uppercase;
}

/* Right side (Description) */
.description {
    padding-top: 10px; /* Title ke level se match karne ke liye */
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .project-header { grid-template-columns: 1fr; gap: 30px; }
    .title-section { text-align: center; }
    .description { text-align: center; }
}
.masonry-grid a {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Bloges */
/* General Styles */
.blog-section { padding: 50px 20px; }
.blog-header { text-align: center; margin-bottom: 40px; }

/* Horizontal Slider Logic (Improved) */
.blog-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto; 
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox scrollbar hide */
    -ms-overflow-style: none; /* IE/Edge scrollbar hide */
    scroll-snap-type: x mandatory; /* Smooth scrolling ke liye */
}

.blog-slider::-webkit-scrollbar { display: none; } /* Chrome/Safari hide */

/* Card Styling */
.blog-card {
    min-width: 280px; /* Mobile ke liye chhota size */
    scroll-snap-align: start;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content { padding: 15px; }

/* Responsive Breakpoints */

/* Tablet (Screens > 768px) */
@media (min-width: 768px) {
    .blog-slider {
        gap: 30px;
    }
    .blog-card {
        min-width: 350px; /* Tablet par thoda bada */
    }
}

/* Laptop/Desktop (Screens > 1024px) */
@media (min-width: 1024px) {
    .blog-slider {
        justify-content: center; /* Agar cards kam hain to center mein rahenge */
        flex-wrap: wrap; /* Agar cards zyada hain to neeche shift ho jayenge */
        overflow-x: hidden; /* Desktop par scroll ki zarurat nahi */
    }
    .blog-card {
        min-width: 320px;
        max-width: 350px;
    }
}
/* post */

.post-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0px 32px !important;
    line-height: 1.6;
}

.post-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#postTitle {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

#postBody {
    font-size: 1.1rem;
    color: #444;
}

/* post */
.image-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

/* Agar aap chahte hain ki image screen ke hisaab se adjust ho */
.image-wrapper img {
    max-width: 100%; /* Image container se bahar nahi jayegi */
    height: auto;    /* Aspect ratio maintain rahega */
    display: block;
}





/* Container */
.wedding-gallery-grid { display: flex; gap: 20px; }

.wedding-card { 
    width: 300px; 
    cursor: pointer; 
    transition: 0.3s;
}

/* Slider Section */
.wedding-slider {
    width: 100%;
    height: 350px; /* Card ki height */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.wedding-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeImages 6s infinite; /* 6 second ka loop */
}

/* Dusri image ko delay kar diya */
.wedding-slider img:nth-child(2) { animation-delay: 3s; }

/* Animation Effect */
@keyframes fadeImages {
    0% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    90% { opacity: 0; }
    100% { opacity: 1; }
}

/* Text Styling */
.card-info { padding: 15px 0; }
.card-info h3 { margin: 5px 0; font-family: 'Playfair Display', serif; }
.card-info h5 { margin: 0; color: #888; text-transform: uppercase; letter-spacing: 1px; }




/* Working page
 */
/* Container Layout */
.wedding-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* 10px se badha kar 20px kiya hai taaki spacing acchi dikhe */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styling */
.wedding-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wedding-card:hover {
    transform: translateY(-5px);
}

/* Image Wrapper: Height control yahan se hoga */
.wedding-slider {
    position: relative;
    width: 100%;
    height: 350px; /* Isse image ki height fixed ho jayegi */
    overflow: hidden;
}

/* Image Full Coverage */
.wedding-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Ye ensure karega ki image crop ho kar fit ho jaye */
    object-position:top !important; /* Image ka center part dikhega, crop nahi hoga */
    display: block;
}

/* Card Info Styling */
.card-info {
    padding: 20px 10px;
    text-align: left;
}

.card-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.card-info h5 {
    margin: 5px 0 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-red);
}

/* Responsive Grid */
@media (max-width: 992px) {
    .wedding-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wedding-gallery-grid { grid-template-columns: 1fr; }
    .wedding-slider { height: 280px; } /* Mobile par thoda chota height */
}
/* Grid Container - Fixed */
.wedding-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Gap kam kiya */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Container ke sides mein thoda space */
    width: 100%;
    box-sizing: border-box; /* Padding ko width mein include karega */
}

/* Card Style */
.wedding-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    cursor: pointer;
    width: 100%; /* Ensure card width is 100% of grid cell */
}

/* Image Slider Height */
.wedding-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Better ratio for mobile */
    overflow: hidden;
    border-radius: 12px;
}

.wedding-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .wedding-gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .wedding-gallery-grid { 
        grid-template-columns: 1fr; /* Mobile par 1 card */
        padding: 0 10px; /* Sides se space */
    }
    
    /* Social icons ko image ke upar se hatane ke liye container ko relative rakhein */
    .wedding-card-link {
        display: block;
        margin-bottom: 20px;
    }
}




/* General Styling */
.title-section {
    text-align: center;
    padding: 40px 20px;
}

.meta-info {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.title-section h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f4f4f4;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    .title-section {
        padding: 30px 15px;
    }

    .meta-info {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .title-section h1 {
        font-size: 1.8rem; /* Reduced for better mobile fit */
    }

    .tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
}
/* Gallery Container */
.testimonial-grid.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row dense;
    gap: 10px; /* White space kam karne ke liye gap kam rakha hai */
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Cards */
.testimonial-grid.gallery a {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

/* Images ko full fit karne ke liye */
.testimonial-grid.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image ko box fill karne ke liye */
    display: block;
}

/* ORDERING: Horizontal upar, Vertical niche */
/* Aapko HTML mein classes deni hogi: <a class="horizontal"> ya <a class="vertical"> */
.horizontal { order: 1; height: 300px; } 
.vertical { order: 2; height: 600px; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .testimonial-grid.gallery { grid-template-columns: repeat(2, 1fr); }
    .horizontal { height: 250px; }
    .vertical { height: 400px; }
}

@media (max-width: 600px) {
    .testimonial-grid.gallery { grid-template-columns: 1fr; }
    .horizontal { height: 200px; }
    .vertical { height: 350px; }
}


/* ===============Filter============== */
.filter-btn{
    display:inline-block;
    padding:10px 20px;
    margin:5px;
    border:1px solid #333;
    text-decoration:none;
    color:#333;
    cursor:pointer;
    border-radius:5px;
}


.filter-btn.active,
.filter-btn:hover{
    background:#ff333379;
    color:white;
}
.filter-container {
    display: flex;
    justify-content: center; /* Ye buttons ko horizontally center karega */
    align-items: center;     /* Ye vertically align karega */
    gap: 15px;               /* Buttons ke beech mein gap dene ke liye */
    flex-wrap: wrap;         /* Agar screen chhoti ho toh buttons niche aa jayein */
    margin-bottom: 40px;     /* Gallery se thoda space */
}

.filter-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ff3333c4;
    background: transparent;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #ff3333;
    color: #fff;
}

/* gallary filter */
/* 1. Lightbox Modal: Poori screen ko cover karne ke liye */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    padding: 0; /* Padding hata dein */
}

/* 2. Wrapper: Image ko screen ke size ka banane ke liye */
.lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Modal Image: Pura space lene ke liye */
.modal-content {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Image crop nahi hogi, poori dikhegi */
    padding: 0;
    margin: 0;
}

/* 4. Arrows aur Close Button ki positioning */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Background hata diya taaki image saaf dikhe */
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10002;
    padding: 10px;
}

.close-lightbox {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10003;
}
/* 1. Modal ka container poori screen cover kare */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}



/* video */
#modalVideo {
    width: 90vw;
    max-height: 80vh;
    outline: none;
    border: none;
}

.video-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-card video {
    width: 100%;
    height: 300px; /* Ya apni marzi ki height */
    object-fit: cover;
}
/* 1. Video Card ka background white hatayein */
.video-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: transparent !important; /* White background hataya */
    box-shadow: none !important;              /* Agar shadow hai toh wo bhi hat jayegi */
}

/* 2. Video element ko container ke barabar karein */
.video-card video {
    width: 100%;
    height: 100%;       /* Fixed height hata kar 100% karein */
    display: block;
    object-fit: cover;
}

/* 3. Grid container ko adjust karein */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
