/* =======================================================
   NYCU INSTAROID / INSTAFEED
   Dark Academia Version
   ======================================================= */

#instaroid,
#instafeed {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    background: #17110e;
    border: 1px solid var(--line);
    padding: 10px;
    overflow: hidden;
}

#instafeed {
    background: transparent;
}

/* Bilder allgemein */
#instaroid .img img,
#instafeed .img img {
    width: 100%;
    opacity: .72;
    transition: .7s ease;
    z-index: 1;
    display: block;
    border: 1px solid var(--line);
    filter: sepia(25%) brightness(.85);
}

#instaroid img:first-of-type,
#instafeed img:first-of-type {
    width: 100%;
    z-index: 1;
}

#instaroid img:hover,
#instafeed img:hover {
    opacity: 1;
    filter: sepia(5%) brightness(1);
    box-shadow: 0 0 14px var(--glow);
}

/* Feed Kacheln */
#instaroid .img {
    float: left;
    width: 12%;
    margin: 5px 11px;
    position: relative;
}

#instafeed .img {
    float: left;
    width: 20%;
    margin: 5px 11px;
    position: relative;
}

#instaroid .img:first-of-type {
    float: left;
    width: 25%;
    margin-top: 5px;
    position: relative;
}

/* Username Label */
#instaroid .img .socialname,
#instafeed .img .socialname {
    display: inline-block;
    background: rgba(23,17,14,.88);
    color: var(--text-strong);
    text-align: center;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 1.5px;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    position: absolute;
    bottom: 12px;
    left: 6%;
    z-index: 2;
    border: 1px solid var(--line-strong);
}

#instaroid .img .socialname a,
#instafeed .img .socialname a,
.insta-socialname a {
    color: var(--text-strong) !important;
    text-decoration: none;
}

/* Popup Hintergrund */
.instapop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.75);
    z-index: 50;
    opacity: 0;
    transition: .5s ease-in-out;
    pointer-events: none;
}

.instapop:target {
    opacity: 1;
    pointer-events: auto;
}

/* Popup Box */
.instapop > .pop {
    background: #17110e;
    width: 820px;
    position: relative;
    margin: 3% auto;
    padding: 25px;
    z-index: 51;
    border: 1px solid var(--line);
    box-shadow: 0 0 35px rgba(0,0,0,.85);
}

.closepop {
    position: absolute;
    right: -5px;
    top: -5px;
    width: 100%;
    height: 100%;
    z-index: 49;
}

/* Großes Bild */
.insta-picture > img {
    height: 400px !important;
    width: 400px !important;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    filter: sepia(18%) brightness(.9);
}

/* Userinfo */
.insta-userinfo {
    box-sizing: border-box;
    width: 400px;
    background: #201813;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    padding: 8px;
}

.insta-userpicture img {
    height: 40px !important;
    width: 40px !important;
    margin-top: 5px;
    margin-left: 15px;
    object-fit: cover;
    border: 1px solid var(--line-strong);
}

/* Name im Popup */
.insta-socialname {
    display: inline-block;
    background: rgba(60,42,32,.85);
    color: var(--text-strong);
    text-align: center;
    padding: 6px 9px;
    font-size: 9px;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    margin-left: 15px;
    position: relative;
    font-weight: bold;
    letter-spacing: 2px;
    bottom: 15px;
    border: 1px solid var(--line);
}

.insta-socialname a:link,
.insta-socialname a:active,
.insta-socialname a:visited,
.insta-socialname a:hover {
    color: var(--text-strong) !important;
}

.insta-userinfo i {
    position: relative;
    bottom: 15px;
    margin-left: 15px;
    color: var(--primary);
}

/* Beschreibung */
.insta-description {
    box-sizing: border-box;
    margin-top: 10px;
    background: #201813;
    border: 1px solid var(--line);
    padding: 12px;
    width: 400px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5em;
    color: var(--text-main);
    text-align: justify;
}

/* Kommentare rechts */
.insta-comments {
    float: right;
    height: 520px;
    width: 400px;
    overflow: auto;
}

/* Eingabe */
.insta_input {
    width: 80%;
    margin: auto;
    margin-right: 5px;
    border: 1px solid var(--line);
    background: #201813;
    padding: 10px;
    color: var(--text-strong);
}

.insta_input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 8px var(--glow);
    outline: none;
}

/* Submit */
.insta_submit {
    padding: 11px 12px;
    border: 1px solid var(--line);
    font-family: 'Exo 2', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    bottom: 1px;
    margin-right: 5px;
    color: var(--text-strong);
    background: var(--btn-bg);
    cursor: pointer;
    transition: .25s ease;
}

.insta_submit:hover {
    background: var(--btn-hover);
    border-color: var(--line-strong);
    box-shadow: 0 0 10px var(--glow);
}

/* Einzelner Kommentar */
.insta-comment {
    margin-top: 15px;
}

.insta_usercomment {
    box-sizing: border-box;
    background: #201813;
    border: 1px solid var(--line);
    padding: 10px 18px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5em;
    color: var(--text-main);
    text-align: justify;
    letter-spacing: .3px;
    margin: 3px auto;
}

.insta_usercomment a:link,
.insta_usercomment a:active,
.insta_usercomment a:hover,
.insta_usercomment a:visited {
    color: var(--primary);
}

/* Tagged Bereich */
.insta-tagged {
    box-sizing: border-box;
    background: #17110e;
    border: 1px solid var(--line);
    padding: 10px 18px;
    margin: 3px auto;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: 'Exo 2', sans-serif;
}

.insta-taguser {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 8px;
    padding: 5px 7px;
    background: rgba(60,42,32,.85);
    color: var(--text-strong);
    font-weight: bold;
    border: 1px solid var(--line);
}

/* Postbit Mini-Galerie */
#instaroid-postbit {
    margin: auto;
    width: 80%;
    margin-bottom: 10px;
    overflow: hidden;
}

.insta-postbit {
    float: left;
    margin: 3px;
}

.insta-postbit img {
    width: 95px;
    height: 95px;
    object-fit: cover;
    opacity: .45;
    transition: .7s ease;
    z-index: 1;
    border: 1px solid var(--line);
    filter: sepia(30%) brightness(.8);
}

.insta-postbit img:hover {
    opacity: .9;
    filter: sepia(5%) brightness(1);
    box-shadow: 0 0 10px var(--glow);
}

/* Scrollbar innerhalb Kommentare */
.insta-comments::-webkit-scrollbar {
    width: 7px;
}

.insta-comments::-webkit-scrollbar-track {
    background: #17110e;
}

.insta-comments::-webkit-scrollbar-thumb {
    background: var(--line-strong);
}

/* Mobile */
@media only screen and (max-width: 900px) {
    .instapop > .pop {
        width: 92%;
        margin: 5% auto;
    }

    .insta-picture > img,
    .insta-userinfo,
    .insta-description,
    .insta-comments {
        width: 100% !important;
    }

    .insta-picture > img {
        height: auto !important;
    }

    .insta-comments {
        float: none;
        height: auto;
        margin-top: 15px;
    }

    #instaroid .img,
    #instafeed .img,
    #instaroid .img:first-of-type {
        width: 30%;
        margin: 5px;
    }
}