/**
 * Theme Name: Olsen Child
 * Template:   olsen-light
 */

/* Hide featured images everywhere except the gallery page */
.post-thumbnail img,
.post-thumbnail a img,
figure.post-thumbnail {
    display: none;
}

.gallery-thumb {
    display: block !important;
}

.entry-featured {display:none;} 

@media (max-width: 768px) {
    .entry-featured {
        display: none !important;
    }
}

.entry-author {margin-right:10px;}


/* ===== Author archive page ===== */

.author-bio-box {
	margin-bottom: 2.5em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid #eee;
}

.author-bio-inner {
	display: flex;
	align-items: flex-start;
	gap: 1.25em;
}

.author-avatar img {
	border-radius: 50%;
	display: block;
}

.author-bio-text .entry-title {
	margin-top: 0;
	margin-bottom: 0.4em;
}

.author-description {
	margin: 0;
	color: #666;
	line-height: 1.6;
}

/* Pagination on author archive */

.ci-pagination {
	margin-top: 2em;
	text-align: center;
}

.ci-pagination .nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ci-pagination .nav-previous,
.ci-pagination .nav-next {
	flex: 0 0 auto;
}

.ci-pagination a {
	display: inline-block;
	padding: 0.6em 1.2em;
	border: 1px solid #ddd;
	border-radius: 3px;
	text-decoration: none;
}

.ci-pagination a:hover {
	background: #f7f7f7;
}

@media (max-width: 600px) {
	.author-bio-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Cover Collection gallery grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.gallery-grid a {
	display: block;
	line-height: 0;
}

.gallery-grid a {
	display: block;
	line-height: 0;
	overflow: hidden;
	border-radius: 3px;
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 3 / 2;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-grid a:hover img {
	transform: scale(1.04);
	opacity: 0.9;
}