/* Instagram feed grid component — matches Holland Central styling */
.ig-wrap {
    padding: 0;
    width: 100%;
    margin: 1.5rem auto 0;
    position: relative;
}

.ig-wrap--loading .ig-loader::after {
    animation-play-state: running;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ig-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ig-imgwrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

.ig-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.ig-imgwrap:hover img {
    transform: scale(1.03);
}

.ig-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
}

.ig-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    color: rgba(0, 0, 0, 0.6);
}

.ig-loader .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ig-loader::after {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: rgba(0, 0, 0, 0.55);
    margin-left: 0.75rem;
    animation: ig-spin 1s linear infinite;
    animation-play-state: paused;
}

.ig-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.55);
}

.ig-status--error {
    color: #d9534f;
}

.ig-sentinel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
}

@keyframes ig-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
