/**
 * EmbedPress Pro — Instagram feed: Masonry / Carousel layouts, like & comment
 * counts, media-type tabs and the hashtag feed header.
 *
 * Moved verbatim from the free plugin's embedpress.css; loaded after it.
 */

/* Styling for the container holding the tabs */
.posts-tab-options {
    text-align: center;
    margin: 0;
}

/* Styling for the tabs */
.posts-tab-options .tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    border-radius: 5px;
    gap: 25px;
    padding: 0;
}

.posts-tab-options .tabs svg {
    width: 15px;
    height: 15px;
}

li[data-media-type="ALL"] svg {
    width: 12px;
    height: 12px;
}

.posts-tab-options .tabs li {
    margin-right: 15px;
    cursor: pointer;
    padding: 10px 0;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.posts-tab-options .tabs li:last-child {
    margin-right: 0;
}

/* Styling for the active tab */
.posts-tab-options .tabs li.active {
    /* border-top: 1px solid rgb(115,115,115); */
    position: relative;
    color: rgb(115, 115, 115);

}

.posts-tab-options .tabs li svg {
    border-radius: 2px;
}

.posts-tab-options .tabs li.active svg {
    color: rgb(115, 115, 115);
}

.posts-tab-options .tabs li:hover, .posts-tab-options .tabs li:hover svg, .posts-tab-options .tabs li:hover .fill-color {
    color: rgb(115, 115, 115);
}

.posts-tab-options .tabs li:hover .fill-color, .posts-tab-options .tabs li.active .fill-color {
    fill: rgb(115, 115, 115) !important;
}

.posts-tab-options .tabs li.active::after {
    content: '';
    position: absolute;
    top: -1px;
    height: 1px;
    width: 100%;
    background-color: rgb(115, 115, 115);
    left: 0;
    right: 0;
}

.insta-carousel .embedpress-insta-container .insta-gallery {
    grid-auto-columns: calc(25% + 0px);
    gap: 0px;
    left: 0px;
}

.insta-masonry .embedpress-insta-container .insta-gallery {
    column-count: 3;
    gap: .5em;
    margin: auto;
    width: 100%;
    display: inherit;
}

.insta-masonry .embedpress-insta-container .insta-gallery .insta-gallery-item {
    height: auto;
    margin-bottom: .5em;
}

.insta-masonry .embedpress-insta-container .insta-gallery .insta-gallery-item video.insta-gallery-image {
    height: 550px;
    margin-bottom: -13px;
}

.insta-masonry .embedpress-insta-container .insta-gallery-item .insta-gallery-item-info {
    height: calc(100% + 4px);
}

.embedpress-insta-container .insta-gallery-item-likes {
    margin-right: 2.2rem;
}

.insta-masonry .embedpress-insta-container .insta-gallery-image {
    margin-bottom: -13px;
}

.insta-item-reaction-count {
    display: flex;
}

.insta-item-reaction-count .insta-gallery-item-likes, .insta-item-reaction-count .insta-gallery-item-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.insta-gallery-item-info .insta-item-reaction-count svg {
    width: 25px;
    height: 25px;
}

.ep-embed-content-wraper.insta-carousel .cg-carousel__btns {
    top: calc(50% - 16px);
}

.ep-embed-content-wraper.insta-carousel .insta-gallery-item-permalink {
    display: flex;
    align-content: center;
}

/* Hashtag feed header */
.embedpress-hashtag-header {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    justify-content: space-between;
    border-bottom: 1px solid #f4e9e9;
}

.hashtag-container {
    border-bottom: 1px solid #f4e9e9;
}

.embedpress-hashtag-header {
    border: none;
    max-width: 350px;
    margin: auto;
}

.embedpress-hashtag-username {
    font-weight: bold;
}

.embedpress-hashtag-header-img img {
    border-radius: 50% !important;
    margin-right: 10px;
    width: 30px;
    height: 30px !important;
    object-fit: cover;
    border: 2px solid #037bff !important;
}

.embedpress-hashtag-header-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

img.embedpress-hashtag-round {
    border-radius: 50px !important;
}

/* Popup like / comment counts */
.embedpress-inline.popup-like-button a:hover svg {
    color: rgb(115, 115, 115);
    fill: rgb(115, 115, 115);
}

@media screen and (max-width: 768px) {
    .embedpress-hashtag-header {
        padding: 12px 14px;
    }
}
