.igp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.igp-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.igp-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.igp-rating {
    margin: 10px 0;
    cursor: pointer;
}

.igp-star {
    font-size: 20px;
    color: #ffd700;
}

.igp-download-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.igp-download-btn:hover {
    background: #005a87;
}

/* Payment Modal */
#igp-payment-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.igp-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.igp-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.igp-close:hover {
    color: black;
}

/* Preview Modal */
#igp-preview-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#igp-preview-modal .igp-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
}

#igp-preview-modal img {
    max-width: 60%;
    height: auto;
    margin-right: 20px;
}

#igp-preview-info {
    flex: 1;
    min-width: 250px;
}

#igp-preview-info h3 {
    margin-top: 0;
}

#igp-preview-info p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    #igp-preview-modal .igp-modal-content {
        flex-direction: column;
    }
    
    #igp-preview-modal img {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}