.jpg-4127-container {
    width: 100%;
}

.jpg-4127-grid {
    display: grid;
    gap: 20px;
}

.jpg-4127-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.jpg-4127-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.jpg-4127-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.jpg-4127-no-image {
    background-color: #f0f0f0;
}

.jpg-4127-content {
    padding: 20px;
    flex-grow: 1;
}

.jpg-4127-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
}

.jpg-4127-meta {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jpg-4127-meta-item {
    font-size: 0.85rem;
    color: #54595F;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
}

.jpg-4127-meta-item i {
    color: #6EC1E4;
}

.jpg-4127-excerpt {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.jpg-4127-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jpg-4127-modal.active {
    opacity: 1;
    visibility: visible;
}

.jpg-4127-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.jpg-4127-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
}

.jpg-4127-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.jpg-4127-modal-title {
    margin-top: 0;
    color: #333;
}

.jpg-4127-modal-body {
    color: #555;
    line-height: 1.6;
}