/* card */
.card img,
.moviecard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 44;
  font-size: 0;
  position: absolute;
  left: 0;
  top: 0;
}

.card {
  /* aspect-ratio: 1 / 1; */
  height: auto;
  flex-shrink: 0;
  border-radius: var(--r-small);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card::after{
  display: block;
  content: "";
  padding-bottom: 100%;
}

.ic-viewer {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: var(--r-small);
  background: url(../images/icon/ic_full.svg)no-repeat center center / 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card .ic-viewer {
  position: absolute;
  left: 16px;
  bottom: 16px;
}

.moviecard {
  aspect-ratio: 6 / 4;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--r-small);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.moviecard video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #000;
}

.moviecard::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 6;
}

.ic-play {
  display: block;
  width: 50px;
  height: 50px;
  background: url(../images/icon/ic_play_line_w.svg)no-repeat center center / contain;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
}

.moviecard .ic-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 7;
  width: 24px;
  height: 24px;
  background-size: 48px;
}

.lettercard {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-small);
  background-color: var(--background);
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.lettercard .lettercard-tit {
  margin-bottom: 16px;
  font-weight: var(--f-w-semibold);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.lettercard-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lettercard-bottom span {
  font-size: 14px;
  color: var(--text-02);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lettercard-bottom span img {
  width: var(--f-small);
  filter: brightness(100);
  opacity: .6;
}

.lettercard-bottom span:last-child {
  margin-left: auto;
}

.lettercard-bottom span:last-child img {
  filter: none;
}

/* slide */
.slide-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-btn .swiper-button-prev,
.slide-btn .swiper-button-next {
  position: unset;
  font-size: var(--f-small);
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background-color: var(--background);
}

.slide-btn .swiper-button-prev::after {
  width: 40px;
  height: 40px;
  content: '';
  background: url(../images/icon/ic_expand_left.svg)no-repeat center center / 28px;
  filter: brightness(100);
  border-radius: 50%;
}

.slide-btn .swiper-button-next::after {
  width: 40px;
  height: 40px;
  content: '';
  background: url(../images/icon/ic_expand_right.svg)no-repeat center center / 28px;
  filter: brightness(100);
  border-radius: 50%;
}

/* title */
.con-tit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: var(--f-large);
  font-family: var(--hahmlet);
  letter-spacing: .5px;
  position: relative;
}

.con-tit::after {
  position: absolute;
  left: 3px;
  top: -10px;
  width: 40px;
  height: 40px;
  content: '';
  background: url(/assets/images/icon/ic_lotus_emp.png)no-repeat left top / contain;
  z-index: -1;
  opacity: .25;
}

.con-subtxt {
  color: var(--text-02);
  letter-spacing: -.5px;
  font-size: 14px;
}

/* btn */
.link-write {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-small);
  background-color: var(--text-01);
  color: var(--white);
  font-weight: 500;
  font-size: var(--f-normal);
  line-height: 1.0;
}

.ic-add {
  background: url(../images/icon/ic_close.svg)no-repeat center center / 28px;
  transform: rotate(45deg);
  display: inline-block;
  width: 10px;
  height: 10px;
}

/* tab */
.tab-contents {
  display: none;
}

.tab-contents.active {
  display: block;
}

.tabs {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: var(--r-small);
  overflow: hidden;
  background-color: #b2b8b9;
  background-color: var(--text-01);
}

.tabs li {
  width: 50%;
  text-align: center;
  font-weight: var(--f-w-semibold);
  color: var(--text-02);
  font-size: var(--f-normal);
  padding: 10px;
  position: relative;
  z-index: 2;
}

.tabs:after {
  width: calc(50% - 10px);
  height: calc(100% - 10px);
  content: '';
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 1;
  transition: var(--transition);
  background-color: var(--white);
  border-radius: var(--r-small);
  box-sizing: border-box;
  box-shadow: var(--box-shadow);
}

.tabs:has(li:nth-child(1).active):after {
  left: 5px;
}

.tabs:has(li:nth-child(2).active):after {
  left: calc(50% + 5px);
}

.tabs li.active {
  color: var(--font);
}

.btn-gallview {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--r-small);
  background-color: transparent;
  box-sizing: border-box;
}

.btn-gallview::after {
  position: absolute;
  left: -2px;
  top: -2px;
  content: '';
  width: 38px;
  height: 38px;
  background: url(../images/icon/ic_squ.svg)no-repeat center right / 24px;
  filter: brightness(100);
  box-sizing: border-box;
}

/* dropdown menu */
.dropmenu {
  position: relative;
}

.dropmenu.dropmenu.closed {
  overflow: hidden;
}

.dropmenu ul {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 555;
  background: var(--primary);
  border-radius: var(--r-small);
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--border);
  box-shadow: var(--box-shadow);
}

.dropmenu.closed ul {
  box-shadow: none;
  height: 0px;
  border: none;
}

.dropmenu ul li {
  white-space: nowrap;
  padding: 8px;
  margin: 8px;
  position: relative;
}

/* search */
.totally {
  font-size: 14px;
  color: var(--text-02);
  font-weight: var(--f-w-semibold);
}

/* pagination */
.pagination {
  text-align: center;
  margin: 30px 0 0 0;
}

.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination ul li {
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-small);
  line-height: 36px;
  padding: 0 5px;
  color: var(--text-02);
  transition: var(--transition);
  cursor: pointer;
}

.pagination ul li a {
  display: block;
  padding: 0 5px;
}

.pagination ul li:has(a) {
  padding: 0;
}

.pagination ul li.active {
  color: var(--white);
  box-shadow: var(--box-shadow);
  border-color: #996630;
  background-color: #996630;
}

.pag-prev {
  background: url(../images/icon/ic_expand_left.svg)no-repeat center center / 20px;
  filter: brightness(100);
}

.pag-next {
  background: url(../images/icon/ic_expand_right.svg)no-repeat center center / 20px;
  filter: brightness(100);
}

.pag-prev a,
.pag-next a {
  color: transparent;
}

.pag-prev.disabled,
.pag-next.disabled {
  background-color: var(--border);
  opacity: .4;
  cursor: default;
}

/* file upload */
.upload-box {
  padding: 20px;
  background-color: var(--text-02);
  box-sizing: border-box;
  border: 1px dashed var(--font);
  border-radius: var(--r-small);
  overflow: hidden;
  position: relative;
  /* aspect-ratio: 1 / 1; */
}

.upload-box::after{
  display: block;
  content: '';
  padding-bottom: 100%;
}

.add-img,
.add-movie {
  width: 100%;
  height: 100%;
  font-size: var(--f-normal);
  font-weight: var(--f-w-semibold);
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  flex-direction: column;
  z-index: 40;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--s-error);
}

.upload-box input {
  width: 50px;
  height: 48px;
  font-size: 0;
  padding: 0;
  background: url(/assets/images/icon/ic_img.svg)no-repeat center center /28px var(--white);
  border: 1px dashed var(--font);
  border-radius: var(--r-medium);
  transition: var(--transition);
}

.upload-box .add-movie input {
  background: url(/assets/images/icon/ic_play_line.svg)no-repeat center center /28px var(--white);
}

.upload-box input::file-selector-button {
  display: none;
}

.thumnail-info {
  font-size: var(--f-small);
  color: var(--text-01);
  text-align: center;
}

.upload-thumnail {
  display: none;
}

.upload-thumnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uploading-img .upload-thumnail {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 30;
}

.uploading-img .add-img,
.uploading-img .add-movie {
  opacity: 0;
}

.uploading-img {
  border: 1px solid var(--border);
  background-color: transparent;
}

.text-infomation {
  padding: 20px 20px 20px 50px;
  font-size: 14px;
  background: url(../images/icon/ic_info.svg)no-repeat center left 20px / 20px var(--background);
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--r-small);
  position: relative;
}

.text-infomation::after {
  content: '';
  position: absolute;
  filter: brightness(100);
  top: 20px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: url(../images/icon/ic_info.svg)no-repeat center center / 20px;
}

.upload-box:has(.add-movie) {
  /* aspect-ratio: 6 / 4; */
}

.upload-box:has(.add-movie):after{
  padding-bottom: 60%;
}
.upload-box:has(.add-movie input:valid):after{
	padding-bottom: 48px;
}

#ThumbBox, #UrlThumbBox {
  /* aspect-ratio: 6 / 4; */
  margin-top: 20px;
}

#ThumbBox::after, #UrlThumbBox::after {
  padding-bottom: 60%;
}

.upload-loading{
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color:#c3c3c3e6;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 5px;
  z-index: 50;
}

.upload-loading b{
  font-size: var(--f-caption);
  color: var(--text-01);
  width: 100%;
  text-align: center;
}

.upload-loading img{
  max-width: 50px;
  width: 100%;
}

/* heart */
.heart-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--text-01);
}

.heart-box .fill-heart {
  display: none;
}

.heart-box.active .emp-heart {
  display: none;
}

.heart-box.active .fill-heart {
  display: block;
}

.heart-box img {
  width: 26px;
}

/* modal */
.modal_btn {}

.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}

html:has(.modal) {
	overflow-y: unset;
}
html:has(.modal.on) {
	overflow-y: hidden;
}
.modal.on {
	position: fixed;
  	display: block;
}

.modal .modal-con {
  padding: 20px;
  border-radius: var(--r-medium);
  width: 100%;
  max-width: var(--w-1200);
  max-height: 90vh;
  position: relative;
  margin: 0 auto;
}

.modal .modal-con .close_btn {
  display: block;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background: url(../images/icon/ic_arrow_left.svg)no-repeat center center / 24px;
  position: absolute;
  left: 15px;
  top: 15px;
  filter: brightness(100);
}

.modal .modal-con .btn-edit {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background-size: 24px;
  color: var(--font);
}

.modal .modal-con .btn-edit.closed {
  filter: brightness(100);
}


.modal .modal-con .btn-edit ul {
  top: 30px;
  right: 0;
}

.modal .modal-con .btn-edit ul li a {
  color: var(--white);
}

.modal .modal-con .modal-tit {
  padding: 0 40px;
  color: var(--white);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.0;
}

.modal-inner {
  text-align: center;
}

.modal-inner img,
.modal-inner video,
.modal-inner iframe {
  max-width: 100%;
  max-height: calc(100% - 66px);
  object-fit: contain;
}

/* password */
.lbl-password {
  text-align: right;
  font-size: var(--f-caption);
  margin-top: 8px;
  color: var(--text-02);
}

.inp-password input {
  border-radius: var(--r-regular);
  width: 100%;
  padding-right: 50px;
}

.inp-password {
  position: relative;
}

.inp-password .btn-locking {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 0;
  top: 0;
  background-color: transparent;
  filter: brightness(100);
}

.btn-locking img {
  margin: 0 auto;
}

.password-box {
  width: 100%;
}

.btn-locking img.pass-off,
.lbl-password.off {
  display: none;
}

img.pass-off.active,
.lbl-password.off.active {
  display: block;
}

.btn-locking img.pass-on,
.lbl-password.on {
  display: none;
}


img.pass-on.active,
.lbl-password.on.active {
  display: block;
}

.btn-login {
  color: var(--white);
  background-color: var(--font);
  width: 100%;
}

.pass_auth .btn-login {
  background-color: var(--font);
  color: var(--white);
  border: 1px solid var(--text-02);
}

.link-passfind {
  font-size: var(--f-caption);
  font-weight: var(--f-w-semibold);
  color: var(--text-01);
}

.password-box {
  margin-bottom: -12px;
}

.pss-tit {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-weight: var(--f-w-semibold);
  line-height: 1.0;
}

.pss-tit+.password-box {
  margin-bottom: 10px;
}

.varidation {
  color: var(--s-error);
  font-size: var(--f-caption);
  text-align: left;
  padding-left: 14px;
}

.inp-password:has(.varidation) input {
  border-color: var(--s-error);
}

/* 수정하기 dropmenu */
.btn-edit {
  width: 60px;
  height: 60px;
  background: url(../images/icon/ic_meatballs_menu.svg)no-repeat center center / 24px;
  background: transparent;
  border-radius: var(--r-small);
}

.btn-edit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-small);
  filter: brightness(100);
  background: url(../images/icon/ic_meatballs_menu.svg)no-repeat center center / 24px;
}

.dropmenu.btn-edit ul {
  top: 60px;
  right: 20px;
}

.link-remove {
  color: var(--s-error);
}

header .btn-edit {
  position: absolute;
  right: 0;
  top: 0;
}

/* 알림 */
.swal2-container .swal2-popup {
  color: var(--font);
}

.swal2-container .swal2-title {
  font-size: var(--f-middle);
}

.swal2-container .swal2-html-container {
  font-size: var(--f-small);
  padding-top: 10px;
}

div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content {
  color: #f8bb86;
}

/* 비밀번호인증 */
.pass_auth {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pass_auth h2 {
  font-size: var(--f-middle);
  margin-top: 20px;
  text-align: center;
  line-height: 1.65;
}

.pass_auth .text-infomation {
  padding: 0;
  background-color: transparent;
  border: none;
  filter: brightness(100);
  padding-left: 24px;
  background-position-x: 0;
  display: inline-block;
  margin: 0 auto;
  margin-top: -24px;
  margin-bottom: 48px;
}

.pass_auth .text-infomation::after {
  display: none;
}

.nodata-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-02);
}

.nodata-box img {
  opacity: .7;
  filter: brightness(100);
}

/* 404 */
body:has(.errorpage) {
  background-color: #eee;
  text-align: center;
}

.errorpage h2,
.errorpage b {
  font-size: var(--f-large);
  color: #888;
  line-height: 1.45;
  letter-spacing: -.5px;
}

.errorpage h2 b {
  color: #222;
}

.errorpage img {
  width: 50%;
  max-width: 240px;
  margin-bottom: 20px;
}

.error-box {
  border: 1px solid #ddd;
  border-radius: var(--r-medium);
  padding: 20px;
  width: calc(100% - 40px);
  margin-left: 20px;
  height: calc(100vh - 120px);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px 2px rgb(0 0 0 / 5%);
}

.errorpage {
  width: 100%;
  height: 100%;
}

.modal-inner-btn {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 30;
}

.modal-inner-btn .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  background-color:  var(--background);
  cursor: pointer;
  display: block;
}

.modal-inner-btn .btn::after {
  filter: brightness(100);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  content: '';
  display: block;
  position: absolute;
  left: -2px;
  top: -2px;
}

.modal-inner-btn .btn.btn-prev::after {
  background: url(../images/icon/ic_expand_left.svg) no-repeat center center / 28px;
}

.modal-inner-btn .btn.btn-next::after {
  background: url(../images/icon/ic_expand_right.svg) no-repeat center center / 28px;
}

.modal-inner:has( img), .modal-inner:has( video), .modal-inner:has( iframe){
  position: relative;
}

.modal-inner img,
.modal-inner video,
.modal-inner iframe{
  z-index: 20;
  position: relative;
}

/* 미디어쿼리 */
@media all and (max-width:360px) {
  .lettercard {
    height: 110px;
  }

  .con-subtxt {
    margin-top: 4px;
  }

  .ic-add {
    background-size: 16px;
  }

  .lettercard-bottom span {
    font-size: var(--f-caption);
  }

}
