@charset "utf-8";
#modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--black_color), .5);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal_wrapper {
  position: relative;
  background-color: rgb(var(--white_color), 1);
  overflow-y: scroll;
  width: 90%;
  max-width: 800px;
  height: 95%;
  border: 1px solid rgb(var(--black_color), 1);
  box-sizing: border-box;
  padding: 2rem;
  max-height: max-content;
}
html:has(#modal) {
  overflow: hidden;
}
.modal_wrap_flex {
  display: flex;
}
.tags {
  display: flex;
  gap: .5rem;
  margin: 1rem;
}
.tag {
  display: block;
  width: fit-content;
  padding: .2rem .8rem;
  background-color: rgb(var(--black_color), 1);
  color: rgb(var(--white_color), 1);
  border-radius: 1rem;
  font-size: .9rem;
}
.back_btn {
  display: none;
}
.image_wrap img {
  width: 100%;
  height:100%
}
.back_list_btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: .5rem .8rem ;
  display: inline-block;
  background-color: rgb(var(--black_color), 1);
  color: rgb(var(--white_color), 1);
}
.art_title {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 1rem;
}
@media screen and (max-width:600px) {
    .modal_wrapper {
        padding: 1rem;
    }
    .tags {
        flex-wrap: wrap;
        font-size: .8rem;
        margin: .5rem;
    }
    .tag {
        font-size: 1rem .8rem;
    }
    .art_title {
        margin: 0 0 .8rem;
    }
}