@import url("https://necolas.github.io/normalize.css/8.0.1/normalize.css");
@import url("https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css");
::-moz-selection,
::selection {
  background: #000;
  color: #fff;
  text-shadow: none;
}

html, body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

html {
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

html, *, input {
  line-height: 120%;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}
body {
  overflow: hidden scroll;
}

* {
  font-weight: 300;
}

img {
  transition: all .2s ease-out;
}

a {
  height: fit-content;
  color: initial;
  text-decoration: none;
  display: flex;
  position: relative;
  border: 1px solid #ccc;
}
h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  max-width: 100%;
  padding: 1rem 2.4rem;
  width: max-content;
  text-align: center;
  display: none;
}
a:hover h2 {
  display: initial;
}
a:hover img {
  opacity: .25;
  transform: rotateX(20deg) rotateY(-30deg);
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  grid-gap: 0 .4rem;
  padding: 0 .4rem;
  width: 100%;
}
.list__header {
  margin-bottom: 30vh;
  padding: .4rem;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}
.list__header h1 {
  font-weight: 900;
  font-family: fantasy;
  background-color: #fff;
  width: fit-content;
  border: 1px solid #ccc;
  padding: 0.3rem 0.6rem 0;
  @media (orientation: landscape) {
    font-size: 3.4rem;
  }
  @media (orientation: portrait) {
    font-size: 2.4rem;
  }
}
.filter {
  position: sticky;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .4rem;
  backdrop-filter: blur(10px);
  @media (orientation: landscape) {
    top: 5.3rem;
  }
  @media (orientation: portrait) {
    top: 4rem;
  }
}
.filter #tagSearchInput {
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  background-color: #fff;
  font: inherit;
  font-size: 0.85rem;
  min-width: 160px;
}
.filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.filter__pill {
  position: relative;
  padding: 0.3rem 0.8rem;
  border: 1px solid #ccc;
  background: none;
  color: #000;
  background-color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .15s ease-out;
}
.filter__pill:hover {
  background-color: #eee;
}
.filter__pill.is-active {
  background-color: #ccc;
}
.list__col {
  overflow: hidden;
  position: relative;
  overflow: hidden;
  grid-row: 1/3;
}
.list__col, .list__col .list__inner {
  height: 100vh;
}
.list__col::-webkit-scrollbar {
  display: none;
}
.list__col:not(.list__footer) .list__inner > *:not(:last-child) {
  border-bottom: 1px solid #000;
}
.list .list__col:nth-child(2), .list .list__col:nth-child(3) {
  grid-row-start: 2;
  height: calc(100vh - 4.4rem);
}
.list__cont {
  width: calc(100% + 1rem);
  position: absolute;
  left: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: initial;
}
.list__cont::-webkit-scrollbar {
  display: none;
}
.list:hover .list__cont {
  scroll-behavior: smooth;
}
.list__site {
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  position: relative;
}
.remove__btn {
  border: 1px solid #ccc;
  background-color: #fff;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  margin-left: .4rem;
  cursor: pointer;
  position: absolute;
  left: 0;
}
.remove__btn:hover {
  background-color: #fee;
  border-color: #c00;
  color: #c00;
}
.list__footer {
  padding: 0.2rem;
  padding-top: 0;
  position: relative;
  background-color: deeppink;
}
.list__footer footer {
  width: calc(100% - .6rem);
  position: absolute;
  bottom: 0.3rem;
  left: 0.2rem;
  border-top: 1px solid #000;
}

#thumbnail {
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
  width: calc(20vw - .7rem);
  height: auto;
  opacity: 0;
}
#thumbnail.active {
  opacity: 1;
}
