/* ==========================================================================
   CSS FILE: gallery.css
   HTML FILE: gallery.html (Photo Gallery & Product Showcase Page)
   DESCRIPTION: Gallery Page sathi aslele sarv masonry & lightbox styles ya file madhe ahet.
   THEME: Industrial Red (#ED1C24) & Industrial Blue (#00AEEF)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL CSS VARIABLES (Gallery Page Colors & Settings)
   -------------------------------------------------------------------------- */
:root {
    --gal-red: #ED1C24;
    --gal-red-dk: #C90E15;
    --gal-blue: #00AEEF;
    --gal-blue-dk: #007BBF;
    --gal-navy: #07192B;
    --gal-bg: #F0F4F9;
    --gal-card-bg: #FFFFFF;
    --gal-text: #0F1A27;
    --gal-muted: #64748B;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   HTML FILE: gallery.html
   SECTION 1: GALLERY HERO BANNER (Section Class: .gal-hero)
   👉 Kashi olakhaychi: Top dark navy hero banner, "Industrial Visual Showcase", Stats counter
   ========================================================================== */
.gal-hero {
    position: relative;
    min-height: 190px;
    background: var(--gal-navy);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 0 36px;
}

.gal-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.gal-hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.gal-hero-glow-red {
    background: rgba(237, 28, 36, 0.28);
    top: -100px;
    left: -80px;
}

.gal-hero-glow-blue {
    background: rgba(0, 174, 239, 0.22);
    bottom: -100px;
    right: -80px;
}

.gal-hero-inner {
    position: relative;
    z-index: 4;
    max-width: 780px;
}

.gal-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(237, 28, 36, 0.15);
    border: 1px solid rgba(237, 28, 36, 0.4);
    color: #FF7A7A;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.gal-hero-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gal-hero .hero-breadcrumb-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    margin-bottom: 0 !important;
    width: auto !important;
}

.gal-hero .hero-breadcrumb-center .side-hero-breadcrumb {
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.gal-hero .hero-breadcrumb-center .crumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0 2px;
}

.gal-title-red {
    color: var(--gal-red);
}

.gal-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.gal-stats-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.gal-stat-item {
    display: flex;
    flex-direction: column;
}

.gal-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    font-family: var(--font-heading, 'Inter', sans-serif);
}

.gal-stat-plus {
    color: var(--gal-red);
}

.gal-stat-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* ==========================================================================
   HTML FILE: gallery.html
   SECTION 2: CATEGORY FILTER TABS (Section Class: .gal-filter-section)
   👉 Kashi olakhaychi: "All Photos", "UPS Systems", "Stabilizers", "Plant Tour"
   ========================================================================== */
.gal-filter-section {
    padding: clamp(10px, 1.5vh, 16px) 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gal-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gal-tab {
    padding: 9px 20px;
    border-radius: 30px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    color: var(--gal-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gal-tab:hover {
    border-color: var(--gal-blue);
    color: var(--gal-navy);
    background: #FFFFFF;
}

.gal-tab.active {
    background: var(--gal-red);
    color: #FFFFFF;
    border-color: var(--gal-red);
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.3);
}

/* ==========================================================================
   HTML FILE: gallery.html
   SECTION 3: PINTEREST-STYLE MASONRY GRID (Section Class: .gal-section)
   👉 Kashi olakhaychi: 3-column waterfall photo grid & hover zoom cards
   ========================================================================== */
.gal-section {
    padding: clamp(25px, 3.5vh, 48px) 0;
    background: var(--gal-bg);
}

.pinterest-grid {
    column-count: 3;
    column-gap: 24px;
}

.pin-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: var(--gal-card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.pin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(237, 28, 36, 0.15);
    border-color: rgba(237, 28, 36, 0.3);
}

.pin-img-wrapper {
    position: relative;
    overflow: hidden;
}

.pin-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-card:hover .pin-img {
    transform: scale(1.06);
}

.pin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 25, 43, 0.25) 0%, transparent 35%, rgba(7, 25, 43, 0.85) 70%, rgba(7, 25, 43, 0.96) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: none;
}

.pin-card:hover .pin-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Top Row: Category Tag & Zoom Icon - Crisp & Non-Obscuring */
.pin-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    pointer-events: auto;
}

.pin-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 25, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pin-zoom-btn:hover {
    background: #ED1C24;
    border-color: #ED1C24;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Bottom Row: Product Title, Description & Action Button */
.pin-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.pin-card:hover .pin-bottom-info {
    transform: translateY(0);
}

.pin-bottom-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pin-bottom-info p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.pin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    background: #ED1C24;
    border: 1px solid #ED1C24;
    color: #FFFFFF !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.5);
}

.pin-action-btn:hover {
    background: #c5141b;
    border-color: #c5141b;
    color: #FFFFFF !important;
    transform: translateX(3px);
}

.pin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: #ED1C24;
    border: 1px solid #ED1C24;
    color: #FFFFFF !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
}

.pin-action-btn:hover {
    background: #c5141b;
    border-color: #c5141b;
    color: #FFFFFF !important;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.6);
}

/* ==========================================================================
   HTML FILE: gallery.html
   SECTION 4: PURE IMAGE LIGHTBOX MODAL (Class: .gal-lightbox-overlay)
   👉 Kashi olakhaychi: Fullscreen photo zoom viewer, Next/Prev arrows, Close button
   ========================================================================== */
.gal-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(7, 25, 43, 0.94);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: zoom-out;
}

.gal-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gal-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.gal-lightbox-overlay.active .gal-lightbox-container {
    transform: scale(1);
}

.gal-lightbox-img {
    max-width: 86vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #07192B;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
}

.gal-lightbox-img.fade {
    opacity: 0;
    transform: scale(0.96);
}

.gal-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gal-lightbox-close:hover {
    background: var(--gal-red);
    border-color: var(--gal-red);
    transform: scale(1.12);
}

.gal-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 100000;
    transition: var(--transition);
}

.gal-lightbox-nav:hover {
    background: var(--gal-red);
    border-color: var(--gal-red);
    transform: translateY(-50%) scale(1.12);
}

.gal-lightbox-prev {
    left: 24px;
}

.gal-lightbox-next {
    right: 24px;
}

/* ==========================================================================
   HTML FILE: gallery.html
   SECTION 5: RESPONSIVE MEDIA QUERIES (Mobile & Tablet Styles)
   👉 Kashi olakhaychi: Mobile, iPad & Laptop screen adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .pinterest-grid {
        column-count: 2;
        column-gap: 16px;
    }
}

@media (max-width: 768px) {
    .gal-hero {
        padding: 34px 0 28px;
        min-height: 140px;
    }

    .pinterest-grid {
        column-count: 1;
    }

    .gal-stats-row {
        gap: 18px;
    }

    .gal-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gal-lightbox-prev {
        left: 10px;
    }

    .gal-lightbox-next {
        right: 10px;
    }

    .gal-lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}