.blog-wp-gallery a.blog-gallery-item,
.blog-wp-gallery--enhanced img {
    cursor: pointer;
    text-decoration: none;
}

.blog-wp-gallery a.blog-gallery-item img,
.blog-wp-gallery--enhanced img {
    transition: opacity 0.2s ease;
}

.blog-wp-gallery a.blog-gallery-item img {
    pointer-events: none;
}

.blog-wp-gallery a.blog-gallery-item:hover img,
.blog-wp-gallery--enhanced img:hover {
    opacity: 0.5;
}

.blog-gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.blog-gallery-lightbox.is-open {
    display: flex;
    flex-direction: column;
}

body.blog-gallery-lightbox-open {
    overflow: hidden;
}

.blog-gallery-lightbox__stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 56px);
    padding: 56px 72px 72px;
    box-sizing: border-box;
    pointer-events: none;
}

.blog-gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    background: #fff;
    pointer-events: auto;
}

.blog-gallery-lightbox__close,
.blog-gallery-lightbox__nav {
    position: fixed;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-gallery-lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    font-size: 28px;
    opacity: 0.9;
}

.blog-gallery-lightbox__close:hover,
.blog-gallery-lightbox__nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
}

.blog-gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    opacity: 0.85;
    width: 48px;
    height: 64px;
}

.blog-gallery-lightbox__nav--prev {
    left: 12px;
}

.blog-gallery-lightbox__nav--next {
    right: 12px;
}

.blog-gallery-lightbox__footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    z-index: 100000;
}

.blog-gallery-lightbox__caption {
    flex: 1 1 auto;
    min-width: 0;
}

.blog-gallery-lightbox__counter {
    flex: 0 0 auto;
    white-space: nowrap;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .blog-gallery-lightbox__stage {
        padding: 48px 12px 64px;
    }

    .blog-gallery-lightbox__nav {
        font-size: 28px;
        width: 40px;
        height: 52px;
    }

    .blog-gallery-lightbox__close {
        top: 10px;
        right: 10px;
    }
}
.blog-wp-gallery {
    gap: 10px !important;
    margin: 0 !important;
    > div {
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
    }
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        object-position: center;
    }
}
