.soko-ig-grid {
    display: grid;
    grid-template-columns: repeat(var(--soko-cols, 3), minmax(0, 1fr));
    gap: var(--soko-gap, 12px);
    width: 100%;
}
.soko-ig-card { min-width: 0; margin: 0; }
.soko-ig-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--soko-ratio, 4/5);
    overflow: hidden;
    background: #f3f3f3;
    text-decoration: none;
}
.soko-ig-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.soko-ig-media:hover img,
.soko-ig-media:focus img { transform: scale(1.02); }
.soko-ig-media[aria-disabled="true"] { pointer-events: none; cursor: default; }
.soko-ig-hover {
    position: absolute;
    inset: auto 0 0 0;
    padding: 10px 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    transition: opacity .2s ease;
}
.soko-ig-media:hover .soko-ig-hover,
.soko-ig-media:focus .soko-ig-hover { opacity: 1; }
.soko-ig-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}
.soko-ig-caption { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.soko-ig-empty { padding: 12px; border: 1px dashed #c3c4c7; background: #fff; }

.soko-ig-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.86);
}
.soko-ig-lightbox[hidden] { display: none; }
.soko-ig-lightbox__panel {
    position: relative;
    max-width: min(920px, 95vw);
    max-height: 92vh;
    background: #fff;
    overflow: auto;
}
.soko-ig-lightbox__image { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; margin: 0 auto; }
.soko-ig-lightbox__content { padding: 14px 16px 18px; }
.soko-ig-lightbox__caption { margin: 0 0 10px; white-space: pre-line; }
.soko-ig-lightbox__close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    border: 0;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .soko-ig-grid { grid-template-columns: repeat(var(--soko-tablet-cols, 3), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .soko-ig-grid { grid-template-columns: repeat(var(--soko-mobile-cols, 2), minmax(0, 1fr)); }
    .soko-ig-hover { opacity: 1; }
}
