/* =====================================
           CONTENT
        ===================================== */

.content-box {
    /* width: 100%; */
    max-width: 1100px;
    margin: auto;
}


/* =====================================
           TAB
        ===================================== */

.instagram-tabs {
    background: #fff;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    display: flex;
    justify-content: center;
}

.instagram-tabs button {
    border: 0;
    background: transparent;

    padding: 16px 45px;

    font-size: 14px;
    font-weight: bold;

    color: #777;

    position: relative;
}

.instagram-tabs button.active {
    color: #000;
}

.instagram-tabs button.active::after {
    content: "";

    position: absolute;

    height: 2px;

    background: #000;

    left: 0;
    right: 0;

    bottom: -1px;
}


/* =====================================
           GRID
        ===================================== */

.media-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 4px;

    margin-top: 4px;
}


/* =====================================
           MEDIA
        ===================================== */

.media-item {

    position: relative;

    width: 100%;

    /*
             * Rasio portrait Instagram
             */
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #ddd;

    cursor: pointer;
}


.media-item img,
.media-item video {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .3s;
}


.media-item:hover img,
.media-item:hover video {

    transform: scale(1.03);
}


/* =====================================
           VIDEO ICON
        ===================================== */

.video-icon {

    position: absolute;

    right: 10px;
    top: 10px;

    color: white;

    font-size: 22px;

    text-shadow:
        0 1px 5px #000;

    z-index: 2;
}


/* =====================================
           HOVER
        ===================================== */

.media-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, .30);

    opacity: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    color: white;

    font-weight: bold;

    transition: .2s;
}

.media-item:hover .media-overlay {
    opacity: 1;
}


/* =====================================
           MOBILE
        ===================================== */

@media(max-width: 768px) {

    .profile-box {

        border: 0;

        margin: 0;

        border-radius: 0;

        padding: 20px;
    }

    .profile-image {

        width: 85px;
        height: 85px;
    }

    .profile-name {

        font-size: 20px;
    }

    .profile-stats {

        gap: 20px;
    }

    .media-grid {

        grid-template-columns:
            repeat(3, 1fr);

        gap: 2px;
    }

    .media-item {

        aspect-ratio: 4 / 5;
    }

    .instagram-tabs button {

        padding:
            14px 25px;
    }
}


/* =====================================
           MOBILE KECIL
        ===================================== */

@media(max-width: 480px) {

    .instagram-header {

        padding: 0 15px;
    }

    .profile-box {

        padding: 15px;
    }

    .profile-stats {

        gap: 15px;
    }

    .profile-stat strong {

        font-size: 16px;
    }

    .profile-stat span {

        font-size: 12px;
    }

    .instagram-tabs button {

        padding:
            14px 20px;

        font-size: 13px;
    }
}