.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modalContent {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  padding-bottom: 90px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.modal .modalContent.loading::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.modal .modalContent.loading::before {
  content: '';
  width: 48px;
  height: 6px;
  display: block;
  margin: auto;
  position: relative;
  border-radius: 4px;
  color: #FFF;
  box-sizing: border-box;
  animation: animloader 0.6s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
  z-index: 12;
}
@keyframes animloader {
  0% { box-shadow: -10px 20px, 10px 35px , 0px 50px }
  25% { box-shadow: 0px 20px ,  0px 35px, 10px 50px }
  50% { box-shadow: 10px 20px, -10px 35px, 0px 50px }
  75% { box-shadow: 0px 20px, 0px  35px, -10px 50px }
  100% { box-shadow: -10px 20px, 10px  35px, 0px 50px}
}

.modal .modalAbsoluteClose {
  position: absolute;
  top: 20px;
  right: 20px;
}

.modal .modalBody {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal .modalBody .imageModifyWrap {
  display: flex;
  justify-content: stretch;
  gap: 10px;
}

.modal .modalBody .imageModifyWrap .thumbWrap {
  flex: 1;
}

.modal .modalBody .imageModifyWrap .thumbWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal .modalBody .imageModifyWrap .formWrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal .formBtnWrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .formBtnWrap .formBtn {
  flex: 1;
  padding: 0 30px;
  height: 60px;
  background: #7d6452;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .formItem .radioGroup {
  display: flex;
}

.modal .formItem .radioGroup label {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.modal .formItem .radioGroup input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal .formItem .radioGroup span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 1px solid #e2dddb;
  color: #cec7c1;
  transition: all 0.3s;
}

.modal .formItem .radioGroup input[type="radio"]:checked + span {
  color: #7d6452;
  border-color: #7d6452;
}

.modal .formItem [type="text"],
.modal .formItem [type="tel"],
.modal .formItem [type="number"],
.modal .formItem [type="email"],
.modal .formItem [type="password"],
.modal .formItem textarea {
  width: 100%;
  height: 50px;
  border: 1px solid #e2dddb;
  padding: 0 10px;
  resize: none;
}

.modal .formItem textarea {
  height: 200px;
  padding: 10px;
}

.modal.admin .formItem textarea {
  height: 132px;
}

.modal.admin .formItem .filebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal .formItem.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal .formItem .checkBox {
  width: 70px;
}

.modal .formItem .checkBox label {
  display: block;
  width: 60px;
  height: 10px;
  border-radius: 999px;
  background: #cec7c1;
  position: relative;
  cursor: pointer;
}

.modal .formItem .checkBox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal .formItem .checkBox .check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  transition: all 0.3s;
  z-index: 1;
  box-shadow: 0 0 0 1px #7d6452;
  cursor: pointer;
}

.modal .formItem .checkBox input[type="checkbox"]:checked + .check {
  left: calc(100% - 5px);
  transform: translate(-100%,-50%);
  background: #7d6452;
}



.modal .formItem .filebox label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  color: #fff;
  background-color: #999999;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal .formItem .filebox input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.modal .formBtnWrap .formBtn.modalClose {
  background: #cec7c1;
  color: #7d6452;
}

.modal .formBtnWrap .formBtn.modalSubmit {
  background: #7d6452;
  color: #fff;
}

.modal .formItem .accountWrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 400;
  color: #7d6452;
}

.modal .formItem .accountWrap strong {
  font-weight: 700;
}

.modal .formItem .accountWrap + .accountWrap {
  margin-top: 10px;
}

.modal .formItem .accountWrap .copyBtn {
  font-size: 14px;
  font-weight: 400;
  color: #cec7c1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 70px;
  height: 30px;
  border-radius: 5px;
  background: #cec7c1;
  color: #7d6452;
}

.modal .formItem .accountWrap .kakaoBtn {
  background: #ffdf00;
  color: #000;
  width: 70px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
}

.modal .formItem .accountWrap + .accountWrap {
  position: relative;
  padding-left: 15px;
}

.modal .formItem .accountWrap + .accountWrap::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  position: absolute;
  top: 13px;
  left: 0;
  background: #7d6452;
}

.modal .formItem .charCount {
  text-align: right;
  font-size: 12px;
  color: #7d6452;
  margin-top: 5px;
}

.modal .formItem .charCount .current {
  color: #7d6452;
}

.modal .formItem .charCount .max {
  color: #cec7c1;
}

@media (max-width: 768px) {
  /**/
  .modal .modalContent {
    width: calc(100% - 40px);
  }

  .modal .formItem .accountWrap {
    font-size: 14px;
  }

  .modalGallery .modalGalleryContainer {
    width: 90%;
  }
}




/* =================================================================
  Custom Video Player
================================================================= */
.custom-video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #000;
  font-family: Arial, sans-serif;
}

.custom-video-player video {
  width: 100%;
  height: 100%;
  display: block;
}

.custom-video-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.custom-video-player__play-pause-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

/* Play-Pause Icon using CSS */
.custom-video-player__play-pause-btn .play-icon,
.custom-video-player__play-pause-btn .pause-icon {
    width: 100%;
    height: 100%;
    fill: #fff;
}
.custom-video-player__play-pause-btn .pause-icon {
    display: none;
}
.custom-video-player.playing .custom-video-player__play-pause-btn .play-icon {
    display: none;
}
.custom-video-player.playing .custom-video-player__play-pause-btn .pause-icon {
    display: block;
}


.custom-video-player__progress-container {
  flex-grow: 1;
  cursor: pointer;
  height: 14px;
  display: flex;
  align-items: center;
}

.custom-video-player__progress-bar {
  background-color: rgba(255, 255, 255, 0.5);
  height: 4px;
  width: 100%;
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}

.custom-video-player__progress {
  background-color: #ff0000;
  width: 0;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.custom-video-player__time {
  margin-left: 10px;
  color: #fff;
  font-size: 12px;
  user-select: none;
}

/* Big play button in the center */
.custom-video-player__big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.custom-video-player__big-play-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-left: 5px;
}

.custom-video-player.playing .custom-video-player__big-play-btn {
    opacity: 0;
    pointer-events: none;
}
