﻿/* =========================================================
   RADHIKA SEEDS
   GALLERY PARTIAL
   Completely isolated CSS
   Prefix: rsg-
   ========================================================= */

.rsg-gallery-section {
    --rsg-green: #176b3a;
    --rsg-dark: #082f1a;
    --rsg-lime: #a8cf55;
    --rsg-orange: #dc8124;
    --rsg-text: #59665e;
    --rsg-bg: #f5f9f5;
    width: 100%;
    padding: 85px 0;
    overflow: hidden;
    background: radial-gradient( circle at 5% 10%, rgba(168,207,85,.12), transparent 25% ), var(--rsg-bg);
}


    .rsg-gallery-section *,
    .rsg-gallery-section *::before,
    .rsg-gallery-section *::after {
        box-sizing: border-box;
    }


.rsg-gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.rsg-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}


.rsg-gallery-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--rsg-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.4px;
}


.rsg-gallery-heading h2 {
    margin: 0;
    color: var(--rsg-dark);
    font-size: clamp(30px,4vw,46px);
    line-height: 1.1;
    font-weight: 800;
}


    .rsg-gallery-heading h2 span {
        display: block;
        color: var(--rsg-green);
    }


.rsg-gallery-heading p {
    max-width: 720px;
    margin: 15px 0 0;
    color: var(--rsg-text);
    font-size: 13px;
    line-height: 1.8;
}


.rsg-gallery-heading-icon {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient( 135deg, var(--rsg-green), #0b4d29 );
    border-radius: 22px;
    box-shadow: 0 16px 35px rgba(23,107,58,.20);
    font-size: 28px;
}


/* =========================================================
   GRID
   ========================================================= */

.rsg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 17px;
}


/* =========================================================
   CARD
   ========================================================= */

.rsg-gallery-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23,107,58,.09);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(20,60,35,.07);
    transition: transform .35s ease, box-shadow .35s ease;
}


    .rsg-gallery-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 22px 45px rgba(20,60,35,.14);
    }


.rsg-gallery-wide-card {
    grid-column: span 2;
}


/* =========================================================
   IMAGE
   ========================================================= */

.rsg-gallery-image {
    position: relative;
    height: 185px;
    overflow: hidden;
}


.rsg-gallery-wide-card .rsg-gallery-image {
    height: 220px;
}


.rsg-gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .65s ease;
}


.rsg-gallery-card:hover
.rsg-gallery-image img {
    transform: scale(1.08);
}


.rsg-gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0,0,0,.02), rgba(0,40,20,.66) );
}


.rsg-gallery-category {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(23,107,58,.90);
    border-radius: 7px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.1px;
    backdrop-filter: blur(7px);
}


.rsg-gallery-image-icon {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    font-size: 10px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}


.rsg-gallery-card:hover
.rsg-gallery-image-icon {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.rsg-gallery-card-content {
    padding: 18px 19px 20px;
}


    .rsg-gallery-card-content h3 {
        margin: 0 0 7px;
        color: var(--rsg-dark);
        font-size: 17px;
        font-weight: 800;
    }


    .rsg-gallery-card-content p {
        margin: 0;
        color: var(--rsg-text);
        font-size: 10px;
        line-height: 1.7;
    }


/* =========================================================
   VIEW MORE
   ========================================================= */

.rsg-gallery-view-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}


.rsg-gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px 14px 22px;
    color: #fff !important;
    background: linear-gradient( 135deg, var(--rsg-green), #0a512b );
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(23,107,58,.20);
    transition: transform .3s ease, box-shadow .3s ease;
}


    .rsg-gallery-view-btn i {
        width: 31px;
        height: 31px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.15);
        border-radius: 50%;
        transition: transform .3s ease;
    }


    .rsg-gallery-view-btn:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 17px 35px rgba(23,107,58,.28);
    }


        .rsg-gallery-view-btn:hover i {
            transform: translateX(4px);
        }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .rsg-gallery-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .rsg-gallery-section {
        padding: 60px 0;
    }


    .rsg-gallery-container {
        width: calc(100% - 24px);
    }


    .rsg-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }


        .rsg-gallery-heading h2 {
            font-size: 31px;
        }


        .rsg-gallery-heading p {
            font-size: 11px;
            line-height: 1.75;
        }


    .rsg-gallery-heading-icon {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
        border-radius: 15px;
        font-size: 19px;
    }


    .rsg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .rsg-gallery-wide-card {
        grid-column: span 1;
    }


    .rsg-gallery-card {
        display: grid;
        grid-template-columns: 115px minmax(0,1fr);
        min-height: 145px;
    }


    .rsg-gallery-image,
    .rsg-gallery-wide-card .rsg-gallery-image {
        height: 100%;
        min-height: 145px;
    }


    .rsg-gallery-card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 15px;
    }


        .rsg-gallery-card-content h3 {
            padding-right: 5px;
            font-size: 16px;
        }


        .rsg-gallery-card-content p {
            font-size: 9px;
            line-height: 1.65;
        }


    .rsg-gallery-image-icon {
        display: none;
    }


    .rsg-gallery-category {
        left: 8px;
        bottom: 8px;
        padding: 5px 7px;
        font-size: 6px;
    }


    .rsg-gallery-view-btn {
        width: 100%;
        justify-content: space-between;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .rsg-gallery-card {
        grid-template-columns: 95px minmax(0,1fr);
    }


    .rsg-gallery-image,
    .rsg-gallery-wide-card .rsg-gallery-image {
        min-height: 135px;
    }


    .rsg-gallery-card-content {
        padding: 12px;
    }


        .rsg-gallery-card-content h3 {
            font-size: 14px;
        }


        .rsg-gallery-card-content p {
            font-size: 8px;
        }
}
