/* Main Container */
.thing-pg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Grid Layout */
.thing-pg-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 600px) {
    .thing-pg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .thing-pg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.thing-pg-card {
    background: var(--base-3, #f9f9f9);
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.thing-pg-image-wrapper {
    display: block;
    position: relative;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: var(--base, #eee);
}

.thing-pg-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thing-pg-card:hover .thing-pg-image-wrapper img {
    transform: scale(1.05);
    /* Zoom on hover */
}

.thing-pg-content {
    padding: 15px;
}

/* Category Label */
.thing-pg-category {
    display: none;
}

.thing-pg-meta {
    display: none;
}

.thing-pg-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
    color: #111;
}

.thing-pg-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.thing-pg-title a:hover {
    color: #f2a263;
}

/* Empty posts notice */
.thing-pg-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Pagination */
.thing-pg-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.thing-pg-page-num,
.thing-pg-page-nav {
    border: none;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--contrast, #333);
    transition: all 0.2s ease;
    border-radius: 50%;
    font-family: inherit;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thing-pg-page-num:hover,
.thing-pg-page-nav:hover {
    background-color: #f2a263;
    color: #fff;
}

/* Minimalist Active State */
.thing-pg-page-num.active {
    background-color: transparent;
    color: var(--contrast, #111);
    font-weight: 800;
    pointer-events: none;
}

/* Arrow Animation */
.thing-pg-page-nav {
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.thing-pg-page-nav.prev:hover {
    transform: translateX(-4px);
}

.thing-pg-page-nav.next:hover {
    transform: translateX(4px);
}

/* Loader opacity */
.thing-pg-grid {
    transition: opacity 0.3s ease;
}