
.elementor-jlc-gallery,
.elementor-jlc-gallery *,
.elementor-jlc-gallery *::before,
.elementor-jlc-gallery *::after {
    box-sizing: border-box;
}

.elementor-jlc-gallery {
    --gallery-green: #005147;
    --gallery-mint: #50d9b7;
    --gallery-text: #153f38;
    --gallery-muted: #71847f;
    --gallery-border: #e3ece9;

    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 105px 0 110px;
    background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
    font-family: "Poppins", Arial, sans-serif;
}

.elementor-jlc-gallery-container {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
}

.elementor-jlc-gallery-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(330px,.62fr);
    align-items: end;
    gap: 70px;
    margin: 0 0 38px;
}

.elementor-jlc-gallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #5f827b;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: 1.9px;
}

.elementor-jlc-gallery-eyebrow > span {
    width: 30px;
    height: 2px;
    flex: 0 0 30px;
    background: var(--gallery-mint);
}

.elementor-jlc-gallery-heading h2 {
    max-width: 790px;
    margin: 0;
    padding: 0;
    color: var(--gallery-text);
    background: transparent;
    font-family: inherit;
    font-size: clamp(43px, 4.3vw, 64px);
    line-height: 1.07;
    font-weight: 650;
    letter-spacing: -3px;
}

.elementor-jlc-gallery-intro {
    width: 100%;
    max-width: 510px;
}

.elementor-jlc-gallery-intro > p {
    margin: 0;
    padding: 0;
    color: var(--gallery-muted);
    background: transparent;
    font-size: 13px;
    line-height: 1.8;
}

.elementor-jlc-gallery-count {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
}

.elementor-jlc-gallery-count > strong {
    color: var(--gallery-green);
    font-size: 29px;
    line-height: 1;
    font-weight: 650;
}

.elementor-jlc-gallery-count span {
    display: block;
    margin: 0 0 2px;
    color: #365d55;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 600;
}

.elementor-jlc-gallery-count small {
    display: block;
    color: #94a49f;
    font-size: 7.5px;
    line-height: 1.4;
}

.elementor-jlc-gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    grid-auto-rows: 220px;
    gap: 10px;
}

.elementor-jlc-gallery-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 0;
    border-radius: 17px;
    background: #dfe8e5;
}

.elementor-jlc-gallery-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.elementor-jlc-gallery-item-4,
.elementor-jlc-gallery-item-7 {
    grid-column: span 2;
}

.elementor-jlc-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.elementor-jlc-gallery-item:hover img {
    transform: scale(1.045);
}

.elementor-jlc-gallery-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0,32,28,0) 38%,
            rgba(0,32,28,.12) 58%,
            rgba(0,32,28,.76) 100%
        );
}

.elementor-jlc-gallery-item figcaption {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 17px;
    color: #ffffff;
}

.elementor-jlc-gallery-item figcaption small {
    display: block;
    margin: 0 0 5px;
    color: var(--gallery-mint);
    font-size: 7px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.elementor-jlc-gallery-item figcaption strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.elementor-jlc-gallery-item figcaption span {
    display: block;
    margin: 4px 0 0;
    color: rgba(255,255,255,.60);
    font-size: 8px;
    line-height: 1.45;
}

.elementor-jlc-gallery-empty {
    width: min(900px, calc(100% - 40px));
    margin: 30px auto;
    padding: 20px;
    border: 1px dashed #ccdcd7;
    border-radius: 13px;
    color: #637b74;
    background: #f8fbfa;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1100px) {
    .elementor-jlc-gallery {
        padding: 88px 0 92px;
    }

    .elementor-jlc-gallery-container {
        width: min(900px, calc(100% - 50px));
    }

    .elementor-jlc-gallery-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .elementor-jlc-gallery-intro {
        max-width: 700px;
    }

    .elementor-jlc-gallery-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        grid-auto-rows: 200px;
    }

    .elementor-jlc-gallery-item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .elementor-jlc-gallery-item-4,
    .elementor-jlc-gallery-item-7 {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .elementor-jlc-gallery {
        padding: 67px 0 72px;
    }

    .elementor-jlc-gallery-container {
        width: calc(100% - 28px);
    }

    .elementor-jlc-gallery-header {
        margin-bottom: 28px;
    }

    .elementor-jlc-gallery-eyebrow {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .elementor-jlc-gallery-heading h2 {
        font-size: clamp(35px, 10.5vw, 46px);
        line-height: 1.08;
        letter-spacing: -2px;
    }

    .elementor-jlc-gallery-intro > p {
        font-size: 11px;
        line-height: 1.75;
    }

    .elementor-jlc-gallery-count {
        margin-top: 16px;
    }

    .elementor-jlc-gallery-count > strong {
        font-size: 25px;
    }

    .elementor-jlc-gallery-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-auto-rows: 165px;
        gap: 7px;
    }

    .elementor-jlc-gallery-item {
        border-radius: 13px;
    }

    .elementor-jlc-gallery-item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .elementor-jlc-gallery-item-4,
    .elementor-jlc-gallery-item-7 {
        grid-column: span 2;
    }

    .elementor-jlc-gallery-item figcaption {
        left: 12px;
        right: 12px;
        bottom: 11px;
    }

    .elementor-jlc-gallery-item figcaption strong {
        font-size: 10px;
    }

    .elementor-jlc-gallery-item figcaption span {
        font-size: 7px;
    }
}

@media (max-width: 420px) {
    .elementor-jlc-gallery-container {
        width: calc(100% - 22px);
    }

    .elementor-jlc-gallery-grid {
        grid-auto-rows: 145px;
    }

    .elementor-jlc-gallery-item-1 {
        min-height: 297px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elementor-jlc-gallery-item img {
        transition: none !important;
    }
}
