.post {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
}
.post-container {
  width: 100%;
  max-width: 168rem;
  min-width: var(--min-width);
  height: 100%;
  padding: 14rem clamp(1.6rem, 3vw, 4rem);

  color: var(--white);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 0.1rem solid var(--main-font-color);
  border-bottom: 0.1rem solid var(--main-font-color);
  padding: 1.2rem 0;
}
.post-nav-title {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1rem;
  color: var(--main-font-color);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.search {
  white-space: nowrap;
}
.post-dropDown {
  background: transparent;
  border: none;
  border-left: 0.1rem solid var(--main-font-color);
  border-right: 0.1rem solid var(--main-font-color);
  outline: none;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.5rem;
  color: var(--main-font-color);
  appearance: none;
  background: url("/home_assets/img/icon/dropdown.svg") no-repeat
    calc(100% - 0.4rem) center/ contain;
  background-size: 0.8rem clamp(0.2rem, 1vw, 0.4rem);
  padding: 0 clamp(2rem, 1vw, 4rem) 0 clamp(0.2rem, 1vw, 0.4rem);
}

.post-dropDown option {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1vw, 1.2rem);
  color: var(--main-font-color);
  background-color: var(--background-color);
}

.post-searchBox {
  width: clamp(10rem, 5vw, 16rem);
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--white);
}
.search-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.post-searchBox::-webkit-input-placeholder {
  color: var(--main-font-color);
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.5rem;
} /*크롬 사파리*/
.post-searchBox:-ms-input-placeholder {
  color: var(--main-font-color);
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.5rem;
} /*엣지*/
.post-title {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.2rem, 5vw, 6.4rem);
  line-height: 6.8rem;
  color: var(--main-font-color);
  padding: 1.4rem 0;
}
.post-list {
  display: grid;
  grid-template-columns: repeat(
    4,
    calc((100% - 3 * clamp(3rem, 3vw, 6rem)) / 4)
  );
  gap: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 3vw, 6rem);
  padding: 8.7rem 0;
}
.post-item {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.4rem, 1vw, 0.8rem);
  flex-shrink: 0;
}
.post-date {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.2rem, 1vw, 1.4rem);
  line-height: 1.7rem;
  text-align: right;
  color: var(--main-font-color);
}
.post-img {
  width: 100%;
  aspect-ratio: 381 / 235;
}
.post-img::after {
  content: "";
  display: block;
  width: 17%;
  height: 0.1rem;
  margin: clamp(0.4rem, 1vw, 1rem) 0;
  background-color: var(--main-font-color);
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-name {
  width: 100%;
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.6rem, 1vw, 2rem);
  line-height: 2.4rem;
  color: var(--sub-font-color);
  padding-top: 1.2rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.arrow {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.arrow.next img {
  transform: scale(-1);
}
.page-num {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.7rem;
  color: var(--main-font-color);
}

@media (max-width: 768px) {
  .post-container {
    padding-top: 0;
  }
  .post-list {
    grid-template-columns: repeat(2, calc((100% - clamp(3rem, 3vw, 6rem)) / 2));
    padding-top: 0;
  }
}
