.sunny-project-gallery {
    --sunny-gallery-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--sunny-gallery-columns), minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.sunny-project-gallery .sunny-gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sunny-project-gallery .sunny-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.sunny-project-gallery a {
    display: block;
}

.sunny-project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.sunny-gallery-caption {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    color: #4a4a4a;
    background: #ffffff;
}

@media (max-width: 1024px) {
    .sunny-project-gallery {
        --sunny-gallery-columns: 2;
    }
}

@media (max-width: 640px) {
    .sunny-project-gallery {
        --sunny-gallery-columns: 1;
    }

    .sunny-project-image {
        height: 220px;
    }
}

.sunny-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.sunny-lightbox.is-open {
    display: block;
}

.sunny-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 19, 26, 0.9);
    backdrop-filter: blur(3px);
}

.sunny-lightbox__dialog {
    position: relative;
    width: min(94vw, 1200px);
    height: min(90vh, 900px);
    margin: 5vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunny-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.sunny-lightbox__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.sunny-lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border-radius: 25px !important;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.sunny-lightbox__btn svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sunny-lightbox__btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 24px rgba(21, 101, 192, 0.45);
    filter: brightness(1.06);
}

.sunny-lightbox__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.sunny-lightbox__btn--prev {
    left: 14px;
}

.sunny-lightbox__btn--next {
    right: 14px;
}

.sunny-lightbox__btn--close {
    top: 20px;
    right: 20px;
    transform: none;
    min-width: 52px;
    font-size: 1.4rem;
}

.sunny-lightbox__btn--close:hover {
    transform: scale(1.05);
}
