.g_mode {
	width: 90%;
	max-width: 1145px;
	margin: 0 auto 3rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 25px;
	justify-content: start;
}

article {
	width: 170px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 20px 0 20px 0;
	font-size: 1em;
}
article:hover {
	opacity: .8;
	transition: .5s;
	border: 1px solid #ff3489;
}
.imagebox {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1; /* 正方形 */
	overflow: hidden;
}
.imagebox img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.imagebox > .pictcount {
	background: #ffffff85;
	color: var(--main-text-color);
	border-radius: 2px;
	font-weight: 400;
	font-size: small;
	position: absolute;
	left: 5px;
	bottom: 5px;
	padding: 0 5px;
}

.onelogtext {
	padding: 5px;
	font-weight: 400;
	font-size: smaller;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.postdate {
	width: 95%;
	margin: 0 auto;
	border-top: 1px solid var(--os2);
	color: var(--os2);
	text-align: center;
	font-size: x-small;
	padding: 5px 0;
}

@media (max-width: 599px){
	.g_mode {
		width: 95%;
		grid-template-columns: repeat(3, 1fr);
		gap: 5px;
	}
	article {
		width: 100%;
	}
}