.ig-section {
    padding: 90px 0;
    background: #fff;
}

.ig-section--empty {
    text-align: center;
}

.ig-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.ig-header__copy {
    max-width: 640px;
}

.ig-header__copy.section_header .text {
    margin-bottom: 0;
}

.ig-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Archivo, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #253C74;
    border: 1px solid #253C74;
    border-radius: 6px;
    padding: 12px 20px;
    text-decoration: none;
    background: transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ig-follow:hover,
.ig-follow:focus-visible {
    background: #FFdf08;
    border-color: #FFdf08;
    color: #000810;
}

.ig-stories {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 28px;
    margin-bottom: 8px;
    scroll-snap-type: x proximity;
}

.ig-stories::-webkit-scrollbar {
    display: none;
}

.ig-story {
    flex: 0 0 auto;
    width: 84px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.ig-story:focus-visible {
    outline: 2px solid #253C74;
    outline-offset: 4px;
    border-radius: 8px;
}

.ig-story__ring {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    padding: 2px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #f58529, #dd2a7b, #8134af, #515bd4, #f58529);
}

.ig-story__avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 2px;
    background: #fff;
    overflow: hidden;
}

.ig-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.ig-story__dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFdf08;
    border: 2px solid #fff;
}

.ig-story__label {
    display: block;
    font-size: 0.75rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ig-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ig-post {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f3f3;
    cursor: pointer;
}

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

.ig-post__type {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
    z-index: 2;
}

.ig-post__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.ig-post:hover .ig-post__overlay,
.ig-post:focus-visible .ig-post__overlay {
    opacity: 1;
    transform: none;
}

.ig-post:focus-visible {
    outline: 2px solid #253C74;
    outline-offset: 2px;
}

.ig-post__stats {
    display: flex;
    gap: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ig-post__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ig-post__caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.ig-more {
    text-align: center;
    margin-top: 28px;
}

.ig-more a {
    font-family: Archivo, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #253C74;
    text-decoration: none;
}

.ig-more a:hover,
.ig-more a:focus-visible {
    text-decoration: underline;
}

.ig-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.ig-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 8, 16, .82);
}

.ig-viewer__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 24px));
    height: min(740px, calc(100vh - 24px));
    margin: 12px auto;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ig-viewer__progress {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
}

.ig-viewer__progress span {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .28);
    overflow: hidden;
}

.ig-viewer__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.ig-viewer__close {
    position: absolute;
    top: 18px;
    right: 10px;
    z-index: 2;
    border: 0;
    background: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ig-viewer__nav {
    position: absolute;
    top: 0;
    bottom: 72px;
    width: 42%;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 1;
}

.ig-viewer__nav--prev { left: 0; }
.ig-viewer__nav--next { right: 0; }

.ig-viewer__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.ig-viewer__media img,
.ig-viewer__media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ig-viewer__bar {
    padding: 12px 16px 18px;
    color: #fff;
}

.ig-viewer__caption {
    font-size: 0.875rem;
    margin: 0 0 10px;
    min-height: 1.2em;
}

.ig-viewer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ig-viewer__cta,
.ig-viewer__mute {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ig-viewer__mute {
    border: 1px solid rgba(255,255,255,.4);
    background: none;
    border-radius: 99px;
    padding: 4px 10px;
    cursor: pointer;
}

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

@media (max-width: 991.98px) {
    .ig-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .ig-post__overlay {
        opacity: 1;
        transform: none;
        padding-top: 36px;
    }

    .ig-post__stats {
        display: none;
    }
}

@media (max-width: 419.98px) {
    .ig-feed {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ig-post__overlay,
    .ig-follow {
        transition: none;
    }
}
