/* ////////////// 共用：捲軸底色 ////////////// */
.modal-body::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #fff6c0;
}
/* 捲軸寬度 */
.modal-body::-webkit-scrollbar{
  width: 6px;
  background-color: black;
}
/* 捲軸本體顏色 */
.modal-body::-webkit-scrollbar-thumb {
  background-color: #bba765;
}
/* ////////////// 捲軸底色 ////////////// */



.modal {
  line-height: 3.2rem;
  font-weight: 500;
  text-align: left;
  text-align: justify;
  scrollbar-width: none;
  margin: auto;
  background-color: #272727bd;
}

.modal-backdrop {
  /* background-color: rgba(0, 0, 0, 1) !important; */
}

.modal-content {
  position: relative;
  background-color: transparent !important;
  /* background: url(../img/modal/modal_bg_01.png) no-repeat center center; 
  background-size: 100% 100%;*/
  border: none !important;
}


.modal-header{
  background-color: transparent !important;
  border: 0px solid #dee2e6 !important;
  padding: 0;
  margin: 0;
  margin-bottom: -10%;
  position: relative;
  z-index:99;
}


.modal-header .close {
  position: absolute;
  top: -0rem;
  right: 0rem;
}

.modal-header .close {
  background: url(../img/modal/modal_colse.png) no-repeat center center;
  background-size: 90% 90%;
  width: 40px;
  height: 40px;
}
a:focus,
a:focus-visible,
a:focus-within,
a:active {
  /* border: none !important; */
  outline: none !important;
  box-shadow: none !important;
}

img:focus,
img:focus-visible,
img:focus-within,
img:active {
  /* border: none !important; */
  outline: none !important;
  box-shadow: none !important;
}




.modal-body {
  position: relative;
  width: 100%;
  margin: auto;
}


.modal-footer{
  border: 0px solid #dee2e6 !important;
  position: relative;
  z-index: 99;
  display: flex;
  justify-content: center !important;
  margin-top: -5%;
  margin-bottom: 0.5rem;
  padding: 0 0rem 0.75rem 0rem !important;
}

.modal-footer > *{
  margin: 0 0.25rem;
}





/* ////////////// 1. ////////////// */
#modal01.modal-dialog{
  max-width: 500px;  
}


#modal01 .modal-body{
  background: url(../img/modal/modal_frame_m.png) no-repeat top center; 
  background-size: 100% auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-left: 2.5rem;
  padding-right: 2.5rem;

  /* @media (width >1441px) {
    padding-top: 16.5rem;
  } */
}

.modal-body .board_title{
  left: 53%;
}


.modal_ch{
  position: relative;
  left: 50%;
  aspect-ratio:700/1190;
  width: 210px;
  transform: translateX(-50%)
}

.modal_txt{
  width: 100%;
  font-size: 15px;
  text-align: center;
  color: #784d28;
  margin-top: -1rem;
  line-height: 1.2;
}

.modal_social {
  position: relative;
  display: grid;
  grid-auto-flow:row;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr); 
  gap: 5px; 
  margin: 0rem auto 0rem auto;
  width: 80%;
} 

.modal_social a{
  width: 100%;
}







/*--------------------------------------------------------------
  RWD X 平板以下 
--------------------------------------------------------------*/


@media (max-width: 1024px) {
  #modal01.modal-dialog{ max-width: 650px; }
  #modal01 a.close{ width: 70px; height: 70px; }
  .modal_ch  {width: 50%;}
}


@media (max-width: 576px) {
  .modal{ padding-right: 0 !important; }
  #modal01.modal-dialog{ width: 95%; margin: auto; }
  #modal01 a.close{ width: 50px; height: 50px; }
  .modal-body .board_title{ height: 50px; }
  .modal-body .title_txt_gp .txt_f, 
  .modal-body .title_txt_gp .txt_b {font-size: 2rem;}
  .modal_txt  { margin-top: -1.5rem; }
}


@media (max-width: 400px) {
  .modal-dialog-centered{
    min-height: calc(90% - 1rem);
  }
}
