.worksolution-showcase-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 0.9fr);
    gap: 8px;
    background: #111;
    width: 100%;
    height: 70vh;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
}

.worksolution-showcase-gallery__primary,
.worksolution-showcase-gallery__secondary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.worksolution-showcase-gallery__primary .worksolution-showcase-gallery__item {
    flex: 1;
    min-height: 0;
}

.worksolution-showcase-gallery__secondary {
    gap: 8px;
}

.worksolution-showcase-gallery__secondary .worksolution-showcase-gallery__item {
    flex: 1;
    min-height: 0;
}

.worksolution-showcase-gallery__item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 0;
    height: 100%;
}

.worksolution-showcase-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.7);
}

.worksolution-showcase-gallery__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
    transition: opacity 0.4s ease;
}

.worksolution-showcase-gallery__item:hover::before {
    opacity: 0;
}

.worksolution-showcase-gallery__item:hover img {
    transform: scale(1.015);
    filter: brightness(1);
}

.worksolution-showcase-gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
}

.worksolution-showcase-gallery__zoom::before {
    content: '⤢';
    color: #fff;
    font-size: 16px;
}

.worksolution-showcase-gallery__item:hover .worksolution-showcase-gallery__zoom {
    display: flex;
}

.worksolution-showcase-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.worksolution-showcase-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.worksolution-showcase-modal__content {
    position: relative;
    background: #111;
    border-radius: 20px;
    padding: 20px;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.worksolution-showcase-modal__slides {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.worksolution-showcase-modal__slides img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.worksolution-showcase-modal__nav {
    display: flex;
    justify-content: space-between;
}

.worksolution-showcase-modal__nav button {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
}

.worksolution-showcase-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .worksolution-showcase-gallery {
        grid-template-columns: 1fr;
    }

    .worksolution-showcase-gallery__secondary {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}
