.xbbcode-b {
    font-weight:bold;
}

.xbbcode-i {
    font-style: italic; 
}

img.xbbcode-img.d-block.w-100.rounded,
.xbbcode-pic,
.xbbcode-img {
    display: block;
    margin: 0;
    width: 100%;
    margin-top: 48px !important;
    border-radius: 30px !important;
}

.xbbcode-ul {
    list-style: inside disc;
    margin: 0 !important;
    margin-top: 48px !important;
    padding-left: 15px;
}

.xbbcode-ul li{
    padding: 0 0 10px 0;
}

.xbbcode-ul li:last-child{
    padding: 0;
}

.xbbcode-table {
    border-collapse:collapse;
    border: 1px solid #555;
    margin-top: 48px !important;
}

.xbbcode-td {
    border: 1px solid #555;
    padding: 5px;
}

.xbbcode-video {
    width: 100%;
    height: 56.25%;
    margin-top: 48px !important;
    object-fit: cover;
    border-radius: 30px !important;
}

.xbbcode-h1 {
    display: block;
    font-size: 28px;
    line-height: 30px;
    font-weight: bold;
    margin-top: 48px !important;
}

.xbbcode-h2 {
    display: block;
    font-size: 24px;
    line-height: 26px;
    font-weight: bold;
    margin-top: 48px !important;
}

.xbbcode-h3 {
    display: block;
    font-size: 20px;
    line-height: 22px;
    font-weight: bold;
    margin-top: 48px !important;
}

.xbbcode-nl {
    display: block;
    margin-top: 26px !important;
}

.xbbcode-br {
    display: block;
}

.xbbcode-wrap {
    display: block;
}

/* CARD */
div.card.border-0.mt-4 div.row.g-0{
    background-color: var(--bodyBgColor1);
    color: var(--bodyFontColor1);
}

/* GRID 4 */

.img-container {
  padding: 0.5rem;
}

.img-wrapper {
  position: relative;
  padding-top: 90%;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 10px;
}

.img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.swiper {
  border-radius: 30px;
}


.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #ccc !important;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--headerBottomFontColor2) !important
}

@media (min-width: 576px) {
  .swiper-container {
      display: none;
  }
}

@media (max-width: 576px) {
  .grid-container {
      display: none;
  }
  
  .swiper-container {
      display: block;
  }
}

@media (min-width: 576px) and (max-width: 1400px) {
  .grid-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1401px) {
  .grid-container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
  }
}

/* GRID 7 */

.grid7 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 30px;
}


.grid7 .top-left-photo {
  grid-area: 1 / 1 / 3 / 3;
  background-color: white;
  border-radius: 4px;
}

.grid7 .bottom-left-photo-1 {
  grid-area: 3 / 1 / 6 / 2;
  background-color: white;
  border-radius: 4px;
}

.grid7 .bottom-left-photo-2 {
  grid-area: 3 / 2 / 6 / 3;
  background-color: white;
  border-radius: 4px;
}

.grid7 .top-right-photo-1 {
  grid-area: 1 / 3 / 3 / 4;
  background-color: white;
  border-radius: 4px;
}

.grid7 .top-right-photo-2 {
  grid-area: 1 / 4 / 2 / 5;
  background-color: white;
  border-radius: 4px;
}

.grid7 .middle-right-photo {
  grid-area: 2 / 4 / 3 / 5;
  background-color: white;
  border-radius: 4px;
}

.grid7 .bottom-right-photo {
  grid-area: 3 / 3 / 6 / 5;
  background-color: white;
  border-radius: 4px;
}

.grid7 img {
  object-fit: cover;
  height: 100% !important;
  width: 100%;
}

@media(max-width:1280px){
  .grid7 {
    grid-column-gap: 15px;
    grid-row-gap: 15px;
  }
}

@media(max-width:768px){

  .grid7{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
  }

  .grid7 .top-left-photo {
    grid-area: 1 / 1 / 3 / 3;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .bottom-left-photo-1 {
    grid-area: 3 / 1 / 4 / 2;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .bottom-left-photo-2 {
    grid-area: 3 / 2 / 4 / 3;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .top-right-photo-1 {
    grid-area: 4 / 1 / 6 / 2;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .top-right-photo-2 {
    grid-area: 4 / 2 / 5 / 3;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .middle-right-photo {
    grid-area: 5 / 2 / 6 / 3;
    background-color: white;
    border-radius: 4px;
  }
  
  .grid7 .bottom-right-photo {
    grid-area: 6 / 1 / 8 / 3;
    background-color: white;
    border-radius: 4px;
  }



}


/* GRID-8 */

.grid-container-8 {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 170px 170px 170px 170px 170px;
    gap: 25px;
}

.grid-8-item-1 {
  grid-column: 1;
  grid-row: 1;
}
.grid-8-item-2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.grid-8-item-3 {
  grid-column: 3;
  grid-row: 1 / span 3;
}
.grid-8-item-4 {
  grid-column: 1;
  grid-row: 2 / span 2;
}
.grid-8-item-5 {
    grid-column: 2;
  grid-row: 3 / span 2;
}

.grid-8-item-6 {
  grid-column: 2 / span 2;
    grid-row: 5;
}
.grid-8-item-7 {
  grid-column: 1;
  grid-row: 4 / span 2;
}

.grid-8-item-8 {
  grid-column: 3;
  grid-row: 4 / span 1;
}

@media (max-width: 768px) {
  .grid-container-8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .grid-8-item-1 {
    grid-column: 1;
    grid-row: 1 / span 1;
  }
  
  .grid-8-item-2 {
    grid-column: 2;
    grid-row: 1 / span 1;
  }
  
  .grid-8-item-3 {
    grid-column: 1 / span 2; 
    grid-row: 2 / span 1;   
  }
  
  .grid-8-item-4 {
    grid-column: 1;
    grid-row: 3 / span 1;
  }
  
  .grid-8-item-5 {
    grid-column: 2;
    grid-row: 3 / span 1;
  }
  
  .grid-8-item-6 {
    grid-column: 1 / span 2;
    grid-row: 4;
  }
  
  .grid-8-item-7 {
    grid-column: 1;
    grid-row: 5 / span 1;
  }
  
  .grid-8-item-8 {
    grid-column: 2;
    grid-row: 5;
  }
}

/* GRID-2 */

div.grid-container-2.w-100 div.row div.col-md-6.mb-md-0.mb-4:nth-child(2){
  margin-bottom: 0px !important;
}

/* GRID-3 */
@media(min-width:768px){
  div.row.grid3 div.sx-mb,
  div.row.grid3 div.dx.dx-mb{
    margin-bottom: 1.5rem;
  }
}

@media(max-width:768px){
  .dx-mb,
  .sx-mb{
    margin-bottom: 1.5rem;
  }
  .last-sx{
    margin-top:1.5rem;
  }
}

div.row.grid3 div.col-12.col-md-8 img{
  height: 100%;
  object-fit: cover;
}

.grid5 img {
  object-fit: cover;
  height: 100% !important;
  width: 100%;
}

@media(min-width:768px){
  .grid5-swiper{
    display: none;
  }
  .grid5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
  }
  
  .left-photo-1 { grid-area: 1 / 1 / 3 / 3; }
  .left-photo-2 { grid-area: 3 / 1 / 5 / 3; }
  .left-photo-3 { grid-area: 5 / 1 / 9 / 3; }
  .right-photo-1 { grid-area: 1 / 3 / 5 / 6; }
  .right-photo-2 { grid-area: 5 / 3 / 9 / 6; } 
}

@media(max-width:768px){
  .grid5{
    display: none;
  }
  div.grid5-swiper div.swiper-wrapper{
    margin-bottom: 1rem;
  }
  .grid5-swiper{
    display: block;
  }
}

.grid5-flip {
  transform: scaleX(-1);
}

.grid5-flip img {
  transform: scaleX(-1);
}

/* NUMBERS */

/* .number-item{
  margin-bottom: 25px;
} */
.number-span{
  font-size: 4rem;
  line-height: 4.2rem;
  font-weight: bold;
  width: 100%;
  display: block;
  text-align: center;
}

.number-label{
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 25px;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

@media(max-width:1840px){
  .number-span{
    font-size: 3rem;
    line-height: 3.2rem;
    font-weight: bold;
    width: 100%;
    display: block;
    text-align: center;
  }
  
  .number-label{
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
  }
}

@media(max-width:1440px){
  .number-span{
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: bold;
    width: 100%;
    display: block;
    text-align: center;
  }
  
  .number-label{
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.2rem;
  }
  @media(max-width:768px){
    .numbers-container{
      display: block !important;
    }

    /* .number-item{
      margin-bottom: 26px;
    } */

    .number-span{
      font-size: 3.2rem;
      line-height: 3.2rem;
      font-weight: bold;
      width: 100%;
      display: block;
      text-align: left;
    }

    .number-item:not(:last-child){
      margin-bottom: 24px;
    }
    
    .number-label{
      width: 100%;
      display: block;
      text-align: left;
      margin-top: 15px;
      font-size: 1.2rem;
      line-height: 1.4rem;
    }
  }
}