.mysign-ig,
.mysign-ig * { box-sizing: border-box; }

.mysign-ig { width: 100%; }

.mysign-ig-empty {
    margin: 0 0 16px;
}

.mysign-ig-grid {
    display: grid;
    width: 100%;
}

.mysign-ig-sentinel {
    width: 100%;
    height: 1px;
}

.mysign-ig-card {
    position: relative;
    display: block;
    aspect-ratio: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f3f4f6;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    box-shadow: none;
}

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

.mysign-ig-card:hover img,
.mysign-ig-card:focus-visible img { transform: scale(1.03); }

.mysign-ig-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.mysign-ig-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.mysign-ig-more,
.mysign-ig-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    padding: 12px 18px;
    color: #fff !important;
    background: #222;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
}

.mysign-ig-follow { background: #408bd1; }
.mysign-ig-more:hover,
.mysign-ig-follow:hover { filter: brightness(1.08); }
.mysign-ig-follow svg { display: block; }

.mysign-ig-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 17, 17, 0.82);
}

.mysign-ig-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    width: min(1040px, 100%);
    max-height: min(860px, 100%);
    background: #fff;
    overflow: auto;
}

.mysign-ig-media { background: #111; min-height: 240px; }
.mysign-ig-media img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    background: #111;
}

.mysign-ig-copy { padding: 36px 22px 22px; }
.mysign-ig-copy a { color: #408bd1; font-weight: 800; text-decoration: none; }

.mysign-ig-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1a171b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mysign-ig-lightbox[hidden],
.mysign-ig-card[hidden],
.mysign-ig-more[hidden] { display: none !important; }

@media (max-width: 800px) {
    .mysign-ig-panel { grid-template-columns: 1fr; }
}
