.instagram-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--site-header-height, 115px) + 34px) 16px 56px;
}

.instagram-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.14);
    padding-bottom: 18px;
}

.instagram-hero p {
    margin: 0 0 6px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.instagram-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.instagram-hero a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.instagram-hero a:first-child {
    background: #d9235f;
}

.instagram-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.instagram-card {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: #fff;
}

.instagram-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.instagram-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-weight: 700;
}

.instagram-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.86);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 9px;
}

.instagram-card__body {
    padding: 12px;
}

.instagram-card__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.9em;
    margin: 0 0 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #1f2937;
    font-size: 0.94rem;
    line-height: 1.3;
}

.instagram-card__body time,
.instagram-empty {
    color: #6b7280;
    font-size: 0.88rem;
}

.instagram-empty {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin: 26px auto 0;
    padding: 28px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
    text-align: center;
}

.instagram-empty h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.12;
}

.instagram-empty p {
    max-width: 620px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.55;
}

.instagram-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.instagram-empty a:last-child {
    background: #d9235f;
}

.instagram-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 640px) {
    .instagram-page {
        padding: calc(var(--site-header-height, 82px) + 20px) 14px 96px;
    }

    .instagram-hero {
        align-items: start;
        flex-direction: column;
    }

    .instagram-hero__actions,
    .instagram-empty__actions {
        width: 100%;
    }

    .instagram-hero a,
    .instagram-empty a {
        width: 100%;
    }
}
