﻿/* ============================================================
   MALWA AGRITECH
   FULL GALLERY PAGE
   ============================================================ */

.malwa-gallery-page,
.malwa-gallery-page *,
.malwa-gallery-lightbox,
.malwa-gallery-lightbox * {
    box-sizing: border-box;
}


/* ============================================================
   PAGE HERO
   ============================================================ */

.malwa-gallery-page-hero {
    padding: 85px 20px 75px;
    background: linear-gradient( 135deg, #073b22, #116b3a );
    text-align: center;
    color: #ffffff;
}

.malwa-gallery-page-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}

.malwa-gallery-page-hero .malwa-gallery-page-container {
    max-width: 850px;
}

.malwa-gallery-page-eyebrow {
    display: inline-block;
    color: #f4d77b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.malwa-gallery-page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 800;
}

.malwa-gallery-page-hero p {
    max-width: 700px;
    margin: 15px auto 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.8;
}


/* ============================================================
   FILTER SECTION
   ============================================================ */

.malwa-gallery-filter-section {
    padding: 65px 0 90px;
    background: #f7faf8;
}


/* ============================================================
   FILTERS
   ============================================================ */

.malwa-gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 38px;
}

.malwa-gallery-filter {
    border: 1px solid #dce9e0;
    background: #ffffff;
    color: #31543f;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

    .malwa-gallery-filter:hover,
    .malwa-gallery-filter.active {
        background: #116b3a;
        border-color: #116b3a;
        color: #ffffff;
        transform: translateY(-1px);
    }


/* ============================================================
   GALLERY GRID
   ============================================================ */

.malwa-full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* ============================================================
   CARD
   ============================================================ */

.malwa-full-gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2ebe5;
    box-shadow: 0 10px 30px rgba(0,0,0,.055);
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 1;
    transform: scale(1);
}

    .malwa-full-gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 42px rgba(0,0,0,.10);
    }

    .malwa-full-gallery-card.gallery-hidden {
        display: none;
    }


/* ============================================================
   IMAGE
   ============================================================ */

.malwa-full-gallery-image {
    position: relative;
    height: 285px;
    overflow: hidden;
    background: #edf3ef;
}

    .malwa-full-gallery-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s ease;
    }

.malwa-full-gallery-card:hover
.malwa-full-gallery-image img {
    transform: scale(1.05);
}


/* ============================================================
   ZOOM BUTTON
   ============================================================ */

.malwa-gallery-zoom {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #116b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(0,0,0,.20);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

    .malwa-gallery-zoom:hover {
        background: #d6a72c;
        color: #073b22;
        transform: scale(1.08);
    }


/* ============================================================
   CARD CONTENT
   ============================================================ */

.malwa-full-gallery-content {
    padding: 22px;
}

    .malwa-full-gallery-content > span {
        display: block;
        color: #b08216;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 7px;
    }

    .malwa-full-gallery-content h3 {
        margin: 0;
        color: #073b22;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.35;
    }

    .malwa-full-gallery-content p {
        margin: 9px 0 0;
        color: #68766e;
        font-size: 12px;
        line-height: 1.75;
    }


/* ============================================================
   LIGHTBOX
   ============================================================ */

.malwa-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

    .malwa-gallery-lightbox.active {
        opacity: 1;
        visibility: visible;
    }

    .malwa-gallery-lightbox img {
        max-width: 94vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,.4);
    }

.malwa-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #073b22;
    font-size: 16px;
    cursor: pointer;
}

    .malwa-lightbox-close:hover {
        background: #d6a72c;
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .malwa-full-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .malwa-full-gallery-image {
        height: 260px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .malwa-gallery-page-hero {
        padding: 65px 15px 55px;
    }

    .malwa-gallery-page-container {
        width: calc(100% - 28px);
    }

    .malwa-gallery-page-hero h1 {
        font-size: 32px;
    }

    .malwa-gallery-page-hero p {
        font-size: 12px;
    }

    .malwa-gallery-filter-section {
        padding: 50px 0 65px;
    }

    .malwa-gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .malwa-gallery-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .malwa-full-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .malwa-full-gallery-image {
        height: 235px;
    }

    .malwa-full-gallery-content {
        padding: 19px;
    }
}


/* ============================================================
   SMALL DEVICES
   ============================================================ */

@media (max-width: 420px) {

    .malwa-gallery-page-container {
        width: calc(100% - 22px);
    }

    .malwa-gallery-page-hero h1 {
        font-size: 28px;
    }

    .malwa-gallery-page-hero p {
        font-size: 11px;
    }

    .malwa-full-gallery-image {
        height: 210px;
    }

    .malwa-gallery-lightbox {
        padding: 15px;
    }

    .malwa-lightbox-close {
        right: 14px;
        top: 14px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .malwa-gallery-page *,
    .malwa-gallery-page *::before,
    .malwa-gallery-page *::after,
    .malwa-gallery-lightbox,
    .malwa-gallery-lightbox * {
        transition: none !important;
    }
}
