#image-gallery-posts {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.ig-post {
    position: relative;
}
.ig-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.ig-thumbnail img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.ig-hover-buttons {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ig-thumbnail:hover .ig-hover-buttons {
    opacity: 1;
}
.ig-share, .ig-download {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

#ig-popup, #ig-share-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.ig-popup-image {
    max-width: 90%;
    max-height: 90%;
}
.ig-popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.ig-share-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.ig-share-content h4 {
    margin-bottom: 10px;
}
#ig-copy-link {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}
.ig-share-links a {
    display: inline-block;
    margin: 5px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #0073aa;
    padding: 6px 10px;
    border-radius: 4px;
}
#ig-loader {
    text-align: center;
    padding: 20px;
}