.tag-author-grid-wrapper {
    width: 100%;
    margin: 24px 0;
}

.tag-author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
    transition: opacity 0.2s ease-in-out;
}

.tag-author-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Forces all author images to the same aspect ratio */
.tag-author-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Standard portrait ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.tag-author-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.tag-author-card:hover img {
    transform: scale(1.06);
}

/* Overlay Styling for Name Caption */
.tag-author-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 16px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #ffffff;
    text-align: center;
}

.tag-author-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Footer Control Bar (Pagination + Search Input) */
.tag-author-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Search Input in Footer */
.tag-author-search-container {
    flex: 1;
    max-width: 320px;
    min-width: 220px;
}

input[type="text"].tag-author-search-input {
	width: 100%;
}

.tag-author-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: 2px solid #e4e4e7;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tag-author-search-input:focus {
    border-color: #18181b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Pagination Styling */
.tag-author-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-author-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f4f4f5;
    color: #18181b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-author-pagination .page-numbers.current,
.tag-author-pagination .page-numbers:hover {
    background: #18181b;
    color: #ffffff;
}

.tag-no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 24px;
    color: #71717a;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .tag-author-footer-bar {
        align-items: center;
    }
    .tag-author-search-container {
        max-width: 100%;
    }
}