.solax-gallery {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 20px;
    font-family: inherit
}

.solax-gallery-heading {
    text-align: center;
    margin-bottom: 30px
}

.solax-gallery-heading>span {
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 700;
    color: #16854e
}

.solax-gallery-heading h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    color: #102c26;
    margin: 12px 0
}

.solax-gallery-heading p {
    color: #64748b;
    margin: 0
}

.solax-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 185px;
    gap: 14px;
    grid-auto-flow: dense
}

.sg-tile {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #dae4df;
    display: block;
    isolation: isolate
}

.sg-tile.sg-wide {
    grid-column: span 2;
    grid-row: span 2
}

.sg-tile.sg-tall {
    grid-row: span 2
}

.sg-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .2, 1)
}

.sg-tile:hover img,
.sg-tile:focus-visible img {
    transform: scale(1.09)
}

.sg-tile:after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    pointer-events: none
}

.sg-tile span {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    z-index: 1
}

.sg-tile:focus-visible {
    outline: 3px solid #22c55e;
    outline-offset: 3px
}

.sg-lightbox:not([hidden]) {
    position: fixed;
    inset: 0;
    background: rgba(3, 12, 10, .94);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 65px 18px 30px
}

.sg-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px
}

.sg-lightbox p {
    color: white;
    text-align: center
}

.sg-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    color: #fff;
    border: 0;
    font-size: 44px;
    cursor: pointer
}

@media(max-width:850px) {
    .solax-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px
    }

    .sg-tile.sg-wide {
        grid-column: span 2
    }

    .sg-tile.sg-tall {
        grid-row: span 2
    }
}

@media(max-width:480px) {
    .solax-gallery {
        padding: 45px 14px
    }

    .solax-gallery-grid {
        gap: 9px;
        grid-auto-rows: 135px
    }

    .sg-tile {
        border-radius: 10px
    }

    .sg-tile span {
        font-size: 12px;
        bottom: 10px;
        left: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    .sg-tile img {
        transition: none
    }
}





/* ==========================================
   SOLAX EXPORTS - MASONRY GALLERY UPDATE
========================================== */

.solax-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

/* Header */
.sg-section-subtitle {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

/* Natural-height Masonry Layout */
.solax-gallery-grid {
    display: block !important;
    columns: 3;
    column-gap: 14px;
}

/* Remove fixed grid spans and heights */
.solax-gallery-grid .sg-tile,
.solax-gallery-grid .sg-tile.sg-wide,
.solax-gallery-grid .sg-tile.sg-tall {
    display: block !important;
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 0 14px !important;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 14px;
    background: #e9eef0;
}

/* Keep original image proportions */
.solax-gallery-grid .sg-tile img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    transition: transform .55s ease !important;
}

/* Smooth hover zoom */
.solax-gallery-grid .sg-tile:hover img {
    transform: scale(1.055) !important;
}

/* Image caption */
.solax-gallery-grid .sg-tile span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 14px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.75)
    );
    z-index: 2;
}

/* ==========================================
   COMPANY DESCRIPTION / BIG QUOTE
========================================== */

.sg-company-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 55px auto 0;
    padding: 25px 20px;
    max-width: 900px;
}

.sg-quote-symbol {
    font-family: Georgia, serif;
    font-size: 180px;
    font-weight: 700;
    line-height: .7;
    color: #159447;
    flex-shrink: 0;
}

.sg-description-content {
    max-width: 650px;
}

.sg-description-eyebrow {
    display: block;
    color: #159447;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.sg-description-content p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    color: #334155;
    margin: 0;
}

.sg-description-content strong {
    color: #08743c;
    font-weight: 800;
}

/* Tablet */
@media (max-width: 991px) {
    .solax-gallery-grid {
        columns: 2;
    }

    .sg-quote-symbol {
        font-size: 130px;
    }

    .sg-description-content p {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .solax-gallery {
        padding: 45px 15px;
    }

    .solax-gallery-grid {
        columns: 2;
        column-gap: 9px;
    }

    .solax-gallery-grid .sg-tile {
        margin-bottom: 9px !important;
        border-radius: 10px;
    }

    .solax-gallery-grid .sg-tile span {
        font-size: 10px;
        padding: 20px 8px 8px;
    }

    .sg-company-description {
        gap: 12px;
        margin-top: 35px;
        padding: 10px 0;
        align-items: flex-start;
    }

    .sg-quote-symbol {
        font-size: 90px;
        line-height: .8;
    }

    .sg-description-eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .sg-description-content p {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .solax-gallery-grid .sg-tile img {
        transition: none !important;
    }
}

