.banner-slider {
  width: 100%;
  overflow: hidden;
}

.banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title-section,
.frame-container-small {
  margin-bottom: 5rem;
}

.brand-title-section h1,
.brand-title-section h2,
.frame-container-small h1,
.frame-container-small h2 {
  margin-bottom: 2.5rem;
}

.brand-title-section p,
.frame-container-small p {
  margin-bottom: 0;
}

.text-image-grid {
  background-color: #F5F1E8;
  padding-top: 6.85rem;
  padding-bottom: 4rem;
  position: relative;
  text-align: right;
  font-size: 24px;
  color: var(--text-light);
}

.text-image-grid .image-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
}

.text-image-grid .image-left img {
  width: 100%;
  height: 100%;
}

.text-image-grid .image-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
}

.text-image-grid .image-right img {
  width: 100%;
  height: 100%;
}

.text-image-grid .text-area {
  padding-left: 3.3rem;
}

.text-image-grid .text-area h2 {
  margin-bottom: 3rem;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--text-color);
  background: none;
  border: none;
  font-size: 30px;
  width: auto;
  height: auto;
}

.swiper-button-prev {
  left: -20px !important;
}

.swiper-button-next {
  right: -20px !important;
}

.swiper-navigation-icon {
  display: none;
}

.contact-map {
  .text-area {
    text-align: left;
    padding-right: 3.3rem;
    padding-left: .75rem;
  }
}

.brand-card {
  text-align: left;
  margin-bottom: 2rem;

  .card-image {
    padding: 0px;
    margin: 0px;
    height: 150px;

    img {
      margin: auto;
      object-fit: cover;
      height: 100%;
    }
  }

  h2 {
    margin: 0px !important;
    display: none;
  }

  p {
    padding: 0px;
    font-size: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0px;
  }

  .brand-card-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.text-image-grid:has(.brand-card) {
  padding: 0px !important;
  border-radius: 8px;
  background: #F1F1F1;
}

.col-12.col-md-6.col-xl-4:has(.brand-card) {
  margin-top: 0px !important;
}

.row.gy-5:has(.brand-card) {
  margin-top: 0rem;
}

@media screen and (max-width: 1200px) {
  .swiper-button-next {
    right: -10px !important;
  }

  .swiper-button-prev {
    left: -10px !important;
  }

  .text-area {
    padding-left: .75rem !important;
  }
}

@media screen and (max-width: 992px) {
  .text-image-grid .image-left {
    width: 100%;
    height: 650px;
    margin-bottom: 2rem;
  }

  .text-image-grid .image-right {
    width: 100%;
    height: 650px;
    margin-bottom: 2rem;
  }

  .image-area {
    height: 650px;
    width: 100%;

  }

  .text-image-grid {
    padding-top: 0rem;
    padding-bottom: 3rem;
    text-align: left;
  }

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

@media screen and (max-width: 576px) {
  .text-image-grid .image-left {
    height: 400px;
  }

  .text-image-grid .image-right {
    height: 400px;
  }

  .image-area {
    height: 400px;
  }

  .brand-title-section,
  .frame-container-small {
    margin-bottom: 3rem;
  }

  .swiper-button-next {
    right: 0 !important;
  }

  .swiper-button-prev {
    left: 0 !important;
  }

  .brand-title-section h1,
  .brand-title-section h2,
  .frame-container-small h1,
  .frame-container-small h2 {
    margin-bottom: 1rem;
  }

  .text-image-grid .text-area h2 {
    margin-bottom: 1rem;
  }
}

@media (min-width: 993px) {
  .brand-grid-section {
    .ce-textpic {
      display: flex;
    }

    .ce-left {
      .ce-gallery {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 50%;
        margin: 0px !important;

        .ce-row {
          width: 100%;
          height: 100%;

          .ce-column {
            width: 100%;
            height: 100%;

            .image {
              width: 100%;
              height: 100%;

              img {
                width: 100%;
                max-width: 100%;
                object-fit: cover;
                min-height: 100%;
              }
            }
          }
        }

      }

      .content-data {
        padding-left: 3.3rem !important;
      }
    }

    .ce-right {
      .ce-gallery {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 50%;
        margin: 0px !important;

        .ce-column {
          width: 100%;

          .image {
            width: 100%;

            img {
              width: 100% !important;
            }
          }
        }
      }
    }

    .image-area {
      iframe {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 50% !important;
        margin: 0px !important;
      }
    }

    .text-left {
      text-align: left !important;

      .text-area {
        padding-left: 1rem !important;
        padding-right: 3.3rem !important;
      }
    }
  }

  .text-image-grid .row:has(.image-right) {
    flex-direction: column-reverse;
    text-align: left !important;

    .text-area {
      padding-left: 1rem !important;
      padding-right: 3.3rem !important;
    }
  }
}

@media (max-width: 992px) {
  .brand-grid-section {
    .ce-textpic {
      display: flex;
      flex-direction: column;
      display: flex;

      .col-12:first-child {
        width: 100%;
        height: 650px;
        margin-bottom: 2rem;

        .ce-gallery {
          position: absolute;
          top: 0;
          right: 0;
          left: 0;
          width: 100%;

          .ce-column {
            width: 100%;

            .image {
              width: 100%;
              display: flex;

              img {
                width: 100% !important;
                height: 650px !important;
                object-fit: cover;
              }
            }
          }
        }
      }
    }

    .row-reverse {
      flex-direction: column-reverse;

      iframe {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 650px !important;
      }
    }
  }
}

@media (max-width: 576px) {
  .brand-grid-section {
    .ce-textpic .col-12:first-child {
      height: 400px !important;

      .ce-gallery {
        height: 400px !important;
        object-fit: contain !important;
      }
    }

    .row-reverse {
      iframe {
        height: 400px !important;
      }
    }
  }
}

.category-section,
.category-container {
  padding: 0px !important;
  margin: 0px !important;
}

.category-section,
.category-container {

  .image-wrapper {
    padding: 20px;
  }

  .product-info {
    padding: 0px 20px;
  }
}

.category-section .frame {
  margin-bottom: 5rem;
}

.category-section .frame-type-textpic,
.category-container .frame-type-textpic {
  background-color: var(--bg-light-1);
  background-color: #f5f1e8;
  padding-top: 6.85rem;
  padding-bottom: 4rem;
  position: relative;
  text-align: right;
  font-size: 24px;
  color: var(--text-light);
}

@media (min-width: 993px) {

  .category-section .frame-type-textpic .image-content-wrapper,
  .category-container .frame-type-textpic .image-content-wrapper {
    .ce-right {
      display: flex;

      .ce-gallery {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 50%;
        margin: 0px !important;

        .ce-row {
          height: 100%;

          .ce-column {
            width: 100%;
            height: 100%;

            .image {
              width: 100%;
              height: 100%;

              img {
                width: 100% !important;
                height: 100%;
              }
            }
          }
        }
      }

      .content-data {
        padding-right: 1rem !important;
        padding-left: 3.3rem !important;
      }
    }

    .ce-left {
      display: flex;
      flex-direction: column-reverse;

      .ce-gallery {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 50%;
        margin: 0px !important;

        .ce-row {
          height: 100%;

          .ce-column {
            width: 100%;
            height: 100%;

            .image {
              width: 100%;
              height: 100%;

              img {
                width: 100% !important;
                height: 100%;
              }
            }
          }
        }
      }

      .content-data {
        padding-left: 1rem !important;
        padding-right: 3.3rem !important;
        text-align: left;
      }
    }
  }
}

@media (max-width: 992px) {

  .category-section .ce-right .col-12:first-child,
  .category-container .ce-right .col-12:first-child {
    width: 100%;
    height: 650px;
    margin-bottom: 2rem !important;

    .ce-gallery {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      width: 100%;
      margin: 0px !important;

      .ce-column {
        width: 100%;

        .image {
          width: 100%;

          img {
            width: 100% !important;
            height: 650px;
            object-fit: cover;
          }
        }
      }
    }
  }

  .category-section .ce-left .col-12:first-child,
  .category-container .ce-left .col-12:first-child {
    width: 100%;
    height: 650px;
    margin-bottom: 2rem !important;

    .ce-gallery {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      width: 100%;
      margin: 0px !important;

      .ce-column {
        width: 100%;

        .image {
          width: 100%;

          img {
            width: 100% !important;
            height: 650px;
            object-fit: cover;
          }
        }
      }
    }
  }

  .category-section .frame-type-textpic,
  .category-container .frame-type-textpic {
    padding-top: 0rem;
    padding-bottom: 3rem;
    text-align: left;
  }
}

@media screen and (max-width: 576px) {

  .category-section .ce-right .col-12:first-child,
  .category-container .ce-right .col-12:first-child {
    height: 400px;

    img {
      height: 400px !important;
    }
  }

  .category-section .ce-left .col-12:first-child,
  .category-container .ce-left .col-12:first-child {
    height: 400px;

    img {
      height: 400px !important;
    }
  }

  .category-section .content-data,
  .category-container .content-data {
    padding: 0rem 0.75rem;
  }

  .category-section .frame {
    margin-bottom: 3rem;
  }
}

.brand-detail-modal {
  .modal-dialog {
    --bs-modal-width: 96%;

    .modal-body {
      padding: 2rem;
      background-color: var(--bg-light-1);

      .text-image-grid {
        padding: 2rem;

        .container {
          max-width: 100%;
        }
      }

      .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
        border: none;
        color: var(--text-color);
      }
    }
  }
}

@media screen and (max-width: 992px) {
  .brand-detail-modal {
    .modal-body {
      padding: 0 !important;

      .btn-close {
        top: 0.5rem !important;
        right: 0.5rem !important;
      }
    }
  }
}

@media screen and (max-width: 576px) {
  .brand-detail-modal {
    .text-image-grid {
      padding: 1rem !important;
    }
  }
}