﻿/* ============================================================
   SAMRUDDHI AGRI TECH
   FULL GALLERY PAGE
   ============================================================ */

.rds-gf-page {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient( circle at 5% 5%, rgba(37,99,235,.06), transparent 25% ), radial-gradient( circle at 95% 35%, rgba(249,115,22,.06), transparent 25% ), #f8fafc;
    color: #263244;
    font-family: Arial, Helvetica, sans-serif;
}

    .rds-gf-page *,
    .rds-gf-page *::before,
    .rds-gf-page *::after {
        box-sizing: border-box;
    }


/* LANGUAGE */

.rds-gf-mr {
    display: none;
}

.rds-gf-page.rds-gf-marathi .rds-gf-en {
    display: none;
}

.rds-gf-page.rds-gf-marathi .rds-gf-mr {
    display: inline;
}


/* CONTAINER */

.rds-gf-container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    padding: 55px 0 70px;
}


/* HEADER */

.rds-gf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 20px;
}

.rds-gf-heading {
    max-width: 800px;
}

.rds-gf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rds-gf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
}

.rds-gf-heading h1 {
    margin: 10px 0;
    color: #14213d;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.7px;
}

.rds-gf-heading p {
    max-width: 740px;
    margin: 0;
    color: #6c788a;
    font-size: 14px;
    line-height: 1.75;
}


/* LANGUAGE */

.rds-gf-language {
    display: flex;
    gap: 4px;
    padding: 5px;
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(20,33,61,.08);
}

.rds-gf-lang {
    min-width: 85px;
    height: 37px;
    border: 0;
    border-radius: 8px;
    background: #f1f4f7;
    color: #687487;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: .25s ease;
}

    .rds-gf-lang.active {
        color: #ffffff;
        background: #14213d;
        box-shadow: 0 5px 14px rgba(20,33,61,.17);
    }


/* BACK */

.rds-gf-back {
    margin-bottom: 23px;
}

    .rds-gf-back a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #2563eb;
        text-decoration: none;
        font-size: 12px;
        font-weight: 800;
        transition: .2s ease;
    }

        .rds-gf-back a:hover {
            color: #f97316;
            transform: translateX(-3px);
        }


/* GRID */

.rds-gf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* CARD */

.rds-gf-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    box-shadow: 0 10px 28px rgba(20,33,61,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .rds-gf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 42px rgba(20,33,61,.13);
    }


/* IMAGE */

.rds-gf-image-box {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #edf2f7;
}

.rds-gf-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.rds-gf-card:hover .rds-gf-image {
    transform: scale(1.06);
}


/* IMAGE NUMBER */

.rds-gf-tag {
    position: absolute;
    top: 11px;
    left: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(20,33,61,.87);
    color: #ffffff;
    font-size: 10px;
    font-weight: 850;
}


/* OPEN BUTTON */

.rds-gf-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #14213d;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s ease, transform .25s ease;
}

.rds-gf-card:hover .rds-gf-open {
    opacity: 1;
    transform: scale(1);
}

.rds-gf-open:hover {
    transform: scale(1.1) !important;
    background: #2563eb;
    color: #ffffff;
}


/* CONTENT */

.rds-gf-card-content {
    padding: 16px 17px 18px;
}

    .rds-gf-card-content h2 {
        margin: 0 0 7px;
        color: #14213d;
        font-size: 17px;
        line-height: 1.3;
        font-weight: 850;
    }

    .rds-gf-card-content p {
        margin: 0;
        color: #707d90;
        font-size: 11px;
        line-height: 1.6;
    }


/* LIGHTBOX */

.rds-gf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5,12,25,.91);
    opacity: 0;
    transition: opacity .25s ease;
}

    .rds-gf-lightbox.active {
        display: flex;
        opacity: 1;
    }

.rds-gf-lightbox-box {
    position: relative;
    width: min(1100px, 96vw);
    max-height: 94vh;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0,0,0,.5);
}

.rds-gf-large-image {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
}

.rds-gf-caption {
    padding: 11px 5px 3px;
    text-align: center;
    color: #14213d;
    font-size: 13px;
    font-weight: 800;
}

.rds-gf-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #14213d;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 7px 20px rgba(0,0,0,.28);
    z-index: 3;
    transition: .2s ease;
}

    .rds-gf-close:hover {
        transform: rotate(90deg);
    }


/* LANGUAGE TRANSITION */

.rds-gf-page.rds-gf-switching
.rds-gf-heading,
.rds-gf-page.rds-gf-switching
.rds-gf-card-content {
    animation: rdsGfLanguage .3s ease;
}

@keyframes rdsGfLanguage {

    from {
        opacity: .25;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* TABLET */

@media (max-width: 1000px) {

    .rds-gf-container {
        width: calc(100% - 30px);
        padding: 45px 0 55px;
    }

    .rds-gf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MOBILE */

@media (max-width: 680px) {

    .rds-gf-container {
        width: calc(100% - 20px);
        padding: 34px 0 45px;
    }

    .rds-gf-header {
        display: block;
    }

    .rds-gf-heading h1 {
        font-size: 31px;
    }

    .rds-gf-heading p {
        font-size: 13px;
    }

    .rds-gf-language {
        width: fit-content;
        margin-top: 18px;
    }

    .rds-gf-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rds-gf-image-box {
        height: 235px;
    }

    .rds-gf-open {
        opacity: 1;
        transform: scale(1);
    }

    .rds-gf-lightbox {
        padding: 10px;
    }

    .rds-gf-lightbox-box {
        width: 96vw;
        padding: 8px;
    }

    .rds-gf-large-image {
        max-height: 76vh;
    }
}


/* SMALL MOBILE */

@media (max-width: 380px) {

    .rds-gf-container {
        width: calc(100% - 14px);
        padding-top: 28px;
    }

    .rds-gf-heading h1 {
        font-size: 27px;
    }

    .rds-gf-heading p {
        font-size: 12px;
    }

    .rds-gf-language {
        width: 100%;
    }

    .rds-gf-lang {
        flex: 1;
        min-width: 0;
        height: 34px;
        font-size: 11px;
    }

    .rds-gf-image-box {
        height: 210px;
    }

    .rds-gf-card-content {
        padding: 13px;
    }

        .rds-gf-card-content h2 {
            font-size: 15px;
        }
}
