.heevan-instagram {
    background: #f7f6f2;
    color: #171819;
    padding: 78px 0 0;
}

.heevan-instagram .container {
    width: min(100% - 72px, 1810px);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.heevan-instagram__shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(820px, 1fr);
    gap: 36px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(24, 28, 31, 0.08);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(34, 17, 16, 0.08);
}

.heevan-instagram__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.heevan-instagram__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--primary-color, #a33b27);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.heevan-instagram__eyebrow i {
    font-size: 18px;
}

.heevan-instagram h2 {
    margin: 0;
    color: #171819;
    font-family: var(--title-font, inherit);
    font-size: clamp(28px, 3.1vw, 48px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.heevan-instagram__handle {
    display: inline-flex;
    margin-top: 12px;
    color: rgba(32, 33, 34, 0.66) !important;
    font-size: 14px;
    line-height: 1.4;
}

.heevan-instagram__handle:hover {
    color: var(--primary-color, #a33b27) !important;
}

.heevan-instagram p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(45, 48, 50, 0.74);
    font-size: 15px;
    line-height: 1.72;
}

.heevan-instagram__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
    width: min(100%, 320px);
    margin-top: 26px;
}

.heevan-instagram__stats div {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(var(--primary-color-rgb, 163, 59, 39), 0.12);
    border-radius: 5px;
    background: rgba(var(--primary-color-rgb, 163, 59, 39), 0.045);
}

.heevan-instagram__stats strong,
.heevan-instagram__stats span {
    display: block;
}

.heevan-instagram__stats strong {
    color: #171819;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.heevan-instagram__stats span {
    margin-top: 7px;
    color: rgba(45, 48, 50, 0.58);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.heevan-instagram__follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    margin-top: 26px;
    padding: 0 22px;
    border: 1px solid var(--primary-color, #a33b27);
    border-radius: 5px;
    background: var(--primary-color, #a33b27);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.heevan-instagram__follow:hover {
    border-color: #7e2d1f;
    background: #7e2d1f;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.heevan-instagram__carousel {
    isolation: isolate;
    position: relative;
    min-width: 0;
    display: grid;
    align-self: start;
}

.heevan-instagram__profile-embed {
    min-width: 0;
    align-self: stretch;
    overflow: hidden;
    border: 1px solid rgba(24, 28, 31, 0.08);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(34, 17, 16, 0.07);
}

.heevan-instagram__profile-embed iframe {
    width: 100%;
    min-height: 560px;
    display: block;
    border: 0;
}

.heevan-instagram__viewport {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    margin: -12px -4px -18px;
    padding: 12px 4px 18px;
    border-radius: 5px;
}

.heevan-instagram__posts {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
    transition: transform 0.34s ease;
    will-change: transform;
}

.heevan-instagram__post {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - 28px) / 3);
    max-width: calc((100% - 28px) / 3);
    min-height: 0;
    overflow: visible;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid rgba(24, 28, 31, 0.08);
    box-shadow: 0 10px 24px rgba(34, 17, 16, 0.07);
    transform-origin: center center;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.heevan-instagram__post:hover,
.heevan-instagram__post:focus-within {
    z-index: 4;
    border-color: rgba(var(--primary-color-rgb, 163, 59, 39), 0.24);
    box-shadow: 0 20px 44px rgba(34, 17, 16, 0.16);
    transform: translateY(-8px) scale(1.025);
}

.heevan-instagram__post .instagram-media {
    width: 100%;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

.heevan-instagram__post blockquote.instagram-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 18px !important;
    color: #171819 !important;
}

.heevan-instagram__post iframe {
    width: 100% !important;
    min-width: 0 !important;
}

.heevan-instagram__carousel-controls {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
    transform: translateY(-50%);
}

.heevan-instagram__carousel-controls button {
    position: relative;
    z-index: 7;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--primary-color-rgb, 163, 59, 39), 0.18);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color, #a33b27);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(34, 17, 16, 0.18);
    transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, opacity 0.24s ease;
}

.heevan-instagram__carousel-controls button:hover,
.heevan-instagram__carousel-controls button:focus-visible {
    border-color: var(--primary-color, #a33b27);
    background: var(--primary-color, #a33b27);
    color: #ffffff;
}

.heevan-instagram__carousel-controls button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
}

@media (max-width: 1199px) {
    .heevan-instagram .container {
        width: min(100% - 56px, 1680px);
    }

    .heevan-instagram__shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }
}

@media (max-width: 991px) {
    .heevan-instagram {
        padding-top: 62px;
    }

    .heevan-instagram .container {
        width: min(100% - 48px, 100%);
    }

    .heevan-instagram__shell {
        grid-template-columns: 1fr;
    }

    .heevan-instagram__post {
        flex-basis: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }

}

@media (max-width: 767px) {
    .heevan-instagram {
        padding-top: 48px;
    }

    .heevan-instagram__shell {
        padding: 20px;
        gap: 24px;
    }

    .heevan-instagram h2 {
        font-size: 27px;
    }

    .heevan-instagram p {
        font-size: 14px;
    }

    .heevan-instagram__post {
        flex-basis: 100%;
        max-width: 100%;
    }

    .heevan-instagram__carousel-controls {
        left: 10px;
        right: 10px;
        gap: 10px;
    }

    .heevan-instagram__carousel-controls button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575px) {
    .heevan-instagram .container {
        width: min(100% - 32px, 100%);
    }

    .heevan-instagram__shell {
        padding: 16px;
    }

    .heevan-instagram__stats {
        width: 100%;
    }

    .heevan-instagram__stats strong {
        font-size: 21px;
    }

    .heevan-instagram__follow {
        width: 100%;
    }

    .heevan-instagram__posts {
        gap: 10px;
    }
}
