/*===============================*/
/*           FONT FACES         */
/*===============================*/
@font-face {
  font-family: 'DB adman X';
  src: url('DB-Adman-X.ttf') format('woff2');
    font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DB adman X';
  src: url('DB-Adman-X-Bd.ttf') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('Gilroy-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Gilroy';
  src: url('Gilroy-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

.aboutus-crop {
width: 1920px;
    height: 607px;
    overflow: hidden;
    position: relative;

}


.aboutus1 {
    position: absolute;
    right: 0px;
    bottom: -20rem;
    width: 100%;
}

.caption-overlay {
    position: absolute;
    top: 5%;
    right: 71%;
    text-align: left;
    color: #ffffff;
    line-height: 0.2;
    font-weight: bold;
    font-family: 'Gilroy', sans-serif;
    font-size: 2rem;
    z-index: 10;
}

.caption-overlay p {
  margin: 0;
}

.caption-overlay h5 {
 font-size: 1.5rem;
}

.caption-overlay2 {
    position: absolute;
    top: 106%;
    right: 13%;
    width: 77%;
    color: #585858;
    font-size: 1.7rem;
    line-height: 1.2;
    font-family: 'DB adman X';
    text-align: center;
}


.caption-overlay2 p {
  margin: 0;
  word-break: break-word;      /* บังคับตัดคำถ้ายาวเกิน */
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Keyframes */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media (max-width: 768px) {

  .aboutus-wrapper {
        position: relative;
        top: -10rem;
  }

  .aboutus-crop {
        position: relative;
        width: 100vw;
        height: 560px;
        overflow: hidden;
  }

    .aboutus1 {
        position: absolute;
        width: 258%;
        right: -10rem;
        bottom: 1rem;
        height: auto;
        object-fit: cover;
    }

    .caption-overlay {
        top: 62%;
        right: 5%;
        font-size: 2.5rem;
        left: 2rem;
        line-height: 1;
        top: 19rem;
    }

    .caption-overlay2 {
        top: 105%;
        right: 7%;
        width: 85%;
        font-size: 1.2rem;
        text-align: left;
    }

.aboutus-crop {
    margin-top: 20rem;
}

  }


@media (min-width: 992px) and (max-width: 1199px){
  .aboutus-crop {
    margin-top: 25rem;
}


    .caption-overlay {
    top: 5%;
    right: 25%;
    line-height: 1;
    font-size: 3rem;
    width: 46rem;
}

.caption-overlay2 {
    right: 19%;

}

    }

@media (min-width: 769px) and (max-width: 991px) {
  .aboutus-crop {
  margin-top: 7rem;
}

.aboutus1 {
    position: absolute;
    right: 45rem;
    bottom: -22rem;
    width: 100%;
}


    .caption-overlay {
        top: 1%;
        right: 15%;
        line-height: 1;
        font-size: 3rem;
        width: 46rem;
}

.caption-overlay2 {
        right: 5%;
        font-size: 1.5rem;
        width: 90%;
}

    }    

@media (min-width: 1200px) and (max-width: 1599px){
  .aboutus-crop {
    margin-top: 25rem;
}

.caption-overlay h5 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

    .caption-overlay {
top: -6%;
        right: 40%;
        line-height: 1;
        font-size: 4rem;
        width: 47rem;

}

.aboutus1 {
    right: 24rem;
}

.caption-overlay2 {
        font-size: 1.7rem;
        right: 11%;

}

    }

