
.modal.hidden {
  display: none;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); 
  justify-content: center; 
  align-items: center; 
  z-index: 1000;
}

.modal-inner {
  padding: 42px 36px 42px 36px;
  min-width: 642px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  margin: 0 36px;
  border-radius: 16px;
  background: var(--Surface-Surface-10, #FFF);
  color: var(--Color-Black);
  max-width: 642px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 752px;
  overflow-y: auto;
}

.modal-description::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 7px;
}

.modal-description::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover  {
  background: #a3a3a3;
}

.modal .modal-img {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
}

.title-info {
  margin-top: 16px;
  margin-bottom: 24px;
}

.modal-content .semi-title {
  text-align: center;
  margin-top: 8px;
}

.semi-title .source, .semi-title .card-date-range {
  color: var(--Color-Grey-80);
  font-size: 16px;
}

.modal .title {
  padding: 0 16px;
  font-size: 24px;
  color: var(--Color-Black);
}

.modal-description {
  font-size: 16px;
  width: 100%;
  word-break: keep-all;
  margin-top: 24px;
}

.seperator {
  width: 100%;
  min-height: 1px;
  height: 1px;
  background: var(--Color-Grey-20);
}

.modal-description .des-header {
  margin-bottom: 24px;
}

.detail-btn {
  box-sizing: border-box;
  margin-top: 32px;
  border-radius: 100px;
  background: var(--Color-Black);
  min-width: 132px;
  padding: 10px 20px;
  text-align: center;
  color: var(--Color-White);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.08px;
}

a.detail-btn:visited {
  color: var(--Color-White);
}

.detail-btn.disabled {
  color: var(--Color-Grey-60);
  background: var(--Color-Grey-40)
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 24px;
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/modal-close-black.svg'); /* SVG URL */
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

.mobile-top-text {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .modal-close-btn {
    background-image: url('//image.chosun.com/cds/icon/close-white.svg')
  }
}

@media screen and (max-width: 689px) {
  body.card-modal-open {
    overflow: hidden;
  }

  .mobile-top-text {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--Color-Grey-40);
    background: var(--Surface-Surface-10);
    font-size: 18px;
  }

  .modal-close-btn {
    top: 12px;
  }

  .modal .title {
    font-size: 22px;
  }

  .modal-inner {
    min-width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding-top: 48px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .modal-content {
    position: relative;
    margin-top: 24px;
    padding: 0 16px;
    max-height: calc(100vh - 118px);
  }

  .modal .modal-img {
    width: 80px;
    height: 80px;
    min-height: 80px;
  }
  
  .detail-btn {
    margin-top: 24px;
    margin-bottom: 16px;
  }
}