@import url("global.css");

/* POSTS */
/* .post-popup__wrapper {
  display: none;
} */

/* PINNED POST */
.post__pinned {
  background-color: rgba(255, 247, 164, 0.841);
  padding: 0.5rem;
  max-width: 520px;
}

.post__pinned h2 {
  color: red;
  margin: 0;
}

.post__pinned h3 {
  padding-left: 1rem;
}

.titles__pinned {
  display: flex;
}

/* OTHER POSTS */
.post-home__wrapper {
  cursor: pointer;
  padding-bottom: 2.8rem;
}

.post-home__text {
  margin-top: 0.7rem;
}

.post-home__text h3 {
  margin: 0;
  line-height: 1.4rem;
}

/* try code for pop up */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.popup.open {
  display: block;
}

.popup-content {
  position: relative;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  max-width: 500px;
  max-height: 100vh;
  width: 90%;
  overflow-y: auto;
}

.popup-content img {
  margin-bottom: 2rem;
}

.popup-close {
  position: sticky;
  float: right;
  top: 0rem;
  right: 0rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10000;
  font-family: "Courier New", Courier, monospace;
  color: rgb(0, 208, 255);
}

/* pop up typo */
.pop-up__tit h3 {
  margin: 0;
  /* font-family: "junction-bold"; */
  line-height: 1.4rem;
}

@media screen and (min-width: 550px) {
  /* posts in grid for big screen */
  .posts {
    display: grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1rem;
  }

  .popup-content {
    top: 5rem;
    height: 80vh;
  }
}
