/* Instagram Grid — static front-end styles.
   Per-site values (--igg-cols, --igg-gap, --igg-ratio, cell visibility)
   are injected as inline CSS generated from settings. */
.igg-grid {
    display: grid;
    grid-template-columns: repeat(var(--igg-cols, 3), 1fr);
    gap: var(--igg-gap, 2px);
    width: 100%;
}

.igg-cell {
    position: relative;
    display: block;
    aspect-ratio: var(--igg-ratio, 3 / 4);
    overflow: hidden;
}

.igg-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.igg-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.igg-badge svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.igg-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.igg-cell:hover .igg-hover,
.igg-cell:focus-visible .igg-hover {
    opacity: 1;
}

.igg-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.igg-stat svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
