.lts-project-gallery {
    --lts-gallery-ink: #0b1730;
    --lts-gallery-blue: #2563eb;
    --lts-gallery-cyan: #06b6d4;
    position: relative;
    margin: clamp(32px, 5vw, 64px) 0;
    padding: clamp(18px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: clamp(22px, 3vw, 34px);
    background:
        radial-gradient(circle at 100% 0, rgba(6, 182, 212, .14), transparent 34%),
        linear-gradient(145deg, #f8fbff, #eef5ff);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
}

.lts-project-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.lts-project-gallery__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--lts-gallery-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lts-project-gallery__header h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--lts-gallery-ink) !important;
    font-size: clamp(24px, 3.2vw, 38px) !important;
    line-height: 1.05 !important;
}

.lts-project-gallery__count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: #52617a;
    font-size: 13px;
    font-weight: 800;
}

.lts-project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(210px, 24vw, 340px);
    gap: 12px;
}

.lts-project-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #dce6f5;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.lts-project-gallery__image {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.lts-project-gallery__item:hover .lts-project-gallery__image {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.lts-project-gallery__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 13px;
    background: rgba(8, 20, 40, .74);
    color: #fff;
    font-size: 17px;
    backdrop-filter: blur(12px);
}

.lts-gallery-is-open {
    overflow: hidden;
}

.lts-gallery-viewer {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(48px, 1fr) minmax(0, 1200px) minmax(48px, 1fr);
    align-items: center;
    padding: 24px;
    background: rgba(3, 9, 20, .94);
    backdrop-filter: blur(18px);
}

.lts-gallery-viewer[hidden] {
    display: none;
}

.lts-gallery-viewer__stage {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.lts-gallery-viewer__stage img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.lts-gallery-viewer__stage figcaption {
    margin-top: 12px;
    color: #b8c7dc;
    font-size: 13px;
    font-weight: 800;
}

.lts-gallery-viewer__close,
.lts-gallery-viewer__nav {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(21, 37, 61, .82);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.lts-gallery-viewer__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 28px;
}

.lts-gallery-viewer__nav {
    width: 48px;
    height: 48px;
    justify-self: center;
    border-radius: 16px;
    font-size: 20px;
}

.lts-gallery-viewer__nav--prev {
    grid-column: 1;
}

.lts-gallery-viewer__nav--next {
    grid-column: 3;
}

@media (max-width: 760px) {
    .lts-project-gallery {
        margin: 26px 0;
        padding: 14px;
        border-radius: 22px;
    }

    .lts-project-gallery__header {
        align-items: center;
        margin-bottom: 14px;
    }

    .lts-project-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: clamp(190px, 58vw, 280px);
        gap: 8px;
    }

    .lts-project-gallery__item {
        border-radius: 14px;
    }

    .lts-project-gallery__zoom {
        right: 8px;
        bottom: 8px;
        width: 34px;
        height: 34px;
    }

    .lts-gallery-viewer {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: 12px;
    }

    .lts-gallery-viewer__stage img {
        max-height: calc(100vh - 130px);
        border-radius: 12px;
    }

    .lts-gallery-viewer__close {
        top: 12px;
        right: 12px;
    }
}
