.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.popup img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close-popup {
    position: absolute;
    top: 15px;
    left: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#poesias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    #poesias-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.poesia-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(138, 92, 255, 0.147);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.poesia-item:hover {
    transform: scale(1.02);
}

.poesia-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}