/*
 * Instagram Reels in Textelementen (Ticket 6402)
 * Bewusst außerhalb des Webpack-Bundles (assets/front), wird in v2/head/default.php eingebunden.
 * Farben/Breakpoint wie in assets/front/front/src/scss/components/_youtube.scss
 */
.ig {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 0;
}
.ig + .ig {
    border-top: 1px solid #d9d9d9;
}
.ig .ig-frame {
    display: block;
    width: 100%;
    height: 700px; /* Fallback, wird per postMessage von Instagram an die echte Höhe angepasst */
    border: 0;
    background: #fff;
}
.ig .ig-remove {
    display: none;
}

/* ohne Zustimmung: iframe ausblenden, Hinweis anzeigen */
.ig.ig--blocked {
    max-width: 500px;
    background-color: #f2f2f2;
}
.ig.ig--blocked .ig-frame {
    display: none;
}
.ig .ig-placeholder {
    position: relative;
    min-height: 80px;
    padding: 20px 20px 20px 120px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 300;
}
.ig .ig-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 80px;
    height: 80px;
    transform: translateY(-50%);
    display: block;
    background: url('/public/front/img/icon--instagram.83080da1ef516b2134ac2ff182f79995.svg') no-repeat;
    background-size: contain;
    opacity: 0.2;
}
.ig .ig-placeholder a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    border-bottom: 1px dotted #444;
}
.ig .ig-placeholder a:hover {
    cursor: pointer;
    border-bottom: 1px solid;
    border-color: #fc0;
}

@media only screen and (min-width: 1279px) {
    .ig.ig--blocked {
        max-width: 600px;
    }
}
