/* v3 */
section {
	position: fixed;
	top: 139px;
	min-height: calc(100vh - 100px);
	max-width: calc(100vw - 3vw);
}
.thumbnail-wrap {
	display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
	margin-top: 5px;
}
.thumbnail {
	cursor: pointer;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* v2 */
/*
section {
  padding: 5px 10px 10px 5px;
  width: 100%;
  min-height: calc(100vh - 100px);
}
*/

/* 게시판 목록 */
.text-div, .login-form-div {
    margin-top: 10px;
    flex-wrap: wrap;
    text-align: center;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  padding: 5px 0;
  border-bottom: 1px dotted var(--black-20);
}
td a {
  text-decoration: none;
  color: var(--black);
  display: flex;
}
td a img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  aspect-ratio: 1/1;
}
td a div {
  width: 100%;
  padding: 0 5px;
}
tr td a div p {
  font-size: 1rem;
  font-weight: 800;
}
.board-title {
  font-size: large;
  text-align: right;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--black);
}

.date, .board-name {
  font-size: 10px;
  color: var(--black-80);
}

.pagination {
  display: flex;
  justify-content: center;
}
.pagination a {
  width: 20px;
  text-align: center;
  margin: 0 3px;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
}
.pagination a:hover, .pagination a.active {
  font-weight: 800;
}

.info-text {
  text-align: center;
  font-weight: 800;
  color: var(--hotpink);
}

.search-div {
  text-align: center;
  margin: 0 0 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search {
  text-align: center;
  margin-right: 2px;
  height: -webkit-fill-available;
}

/* 게시글 상세 */
.post-div {

}
.post-div .title {
  color: var(--black);
  font-size: 20px;
  padding: 1px 5px;
  font-weight: 800;
  font-style: italic;
}
.post-div .youtube-id, .tag {
  padding: 6px;
}
.youtube-id {
  background-color: #dbdbdb;
}
.post-div .youtube-id.active {
  background-color: rgba(254, 238, 160, 0.3);
}
.post-div .date {
  margin-bottom: 30px;
}
.post-div p {
  letter-spacing: 1px;
}
.post-div div input, .tag, .search {
  outline: none;
  border: 1px solid var(--lightgray);
}
.post-div div input, .tag {
  width: 100%;
}
.post-div div input {
  margin-bottom: 5px;
}

.thumbnail-div {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.thumbnail-div .thumbnail {
  display: none;
  width: 100px;
  margin-top: 10px;
}

.post {
  margin: 30px 0 50px 0;
}
.post img {
  height: auto;
}
.post p {
  margin-bottom: 10px;
}
.post h1, .post h2, .post h3 {
  margin-bottom: 5px;
}
.post h1 {
  font-size: 20px;
}
.post h2 {
  font-size: 18px;
}
.post h3 {
  font-size: 16px;
}
.post pre, .post code, .post pre code {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}
.post pre {
  background-color: rgba(254, 238, 160, 0.3);
  padding: 10px;
  margin-bottom: 20px;
}
.post pre code {
  font-family: 'IntelOneMono';
  font-weight: 800;
}
.post-info-div {
  border-radius: 0;
  padding: 7px 5px;
  cursor: pointer;
  background-color: #fff;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.post-info-div.prev {
  border-bottom: 1px dotted var(--black-20);
  margin-top: 5px;
}
.post-info-div a {
  color: var(--black);
  text-decoration: none;
  display: block;
}
.post-info-div:hover {
  background-color: var(--black-10);
}
.post-info-div:hover a {
}

blockquote {
  border-left: 7px solid lightgray;
  padding: 5px 0;
}
blockquote p {
	margin-left: 3px;
	font-style: italic;
}

.title-div {
	display: flex;
	justify-content: right;
}
.tag-div {
  display: flex;
  flex-wrap: wrap;
}
.tag-btn {
  display: flex;
  color: var(--black);
	cursor: pointer;
  background-color: var(--lightgray);
  margin-right: 5px;
  padding: 0 5px;
}
.tag-btn a {
	color: var(--black);
	text-decoration: none;
}
.tag-remove {
  cursor: pointer;
}
.tag-name {
	font-size: 10px;
  font-style: italic;
}

/* 게시글 작성 */
.ck.ck-editor {
  max-width: 100%;
}
.ck-editor__editable {
  min-height: 400px;
  max-height: 400px;
  overflow-y: auto;
}
figcaption {
  min-height: 0 !important;
  text-align: center;
  font-size: 11px;
  margin: 0 0 10px 0;
  color: var(--black);
}

#thumbnail {
  display: none;
}
#thumbnail-btn {
  margin-top: 10px;	
}

.sec-yn-div {
  margin-top: 5px;
  display: flex;
  align-items: center;
}
#sec-yn {
  margin-left: 3px;
  border: 1px solid #dbdbdb;
  border-radius: 0;
}

.token.tag {
	border: 0;
}

/* 로그인 */
#login-form {
	width: 100%;
}
#login-form input, #login-form button {
  width: 100%;
}
#login-form label {
  width: 70px;
  padding-right: 5px;
  display: flex;
  justify-content: right;
  align-items: center;
}
#login-form input {
  border: 1px solid var(--lightgray);
  padding: 7px;
  outline: none;
  border-radius: 0;
  color: var(--black);
}
#login-form button {
  border: 1px solid var(--lightgray);
  padding: 7px 0;
  cursor: pointer;
}
#login-form button:hover {
  background-color: var(--black-20);
}
#login-form p {
  display: flex;
  margin-bottom: 5px;
  text-align: right;
}

/* 홈 */
.home-latest-post-div {
}
.raspberrypi-days {
  color: #000;
}
.latest-posts {
  margin-top: 10px;
  font-weight: 800;
}
.img-div {
  text-align: center;
}
.img-div img {
  width: 40%;
}
.text-div p {
	color: gray;
}