/* Targeted responsive corrections for JOYFOOD theme. */
html,
body {
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

.brands-section {
  overflow: hidden;
  text-align: center;
}

.brands-section .container {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.brands-section h2 {
  position: relative;
  margin-bottom: 32px;
  text-align: center;
}

.brands-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center;
  justify-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.brands-map > a,
.brands-map__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brands-map img {
  display: block;
  width: 100% !important;
  max-width: 160px;
  min-width: 0;
  height: 100% !important;
  min-height: 0;
  max-height: 110px;
  object-fit: contain !important;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
}

.brands-map .icon-bridor {
  top: 8px;
  left: 500%;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
}

.brands-map .icon-bridor:hover {
  transform: translateX(-50%) translateY(-2px);
}

.section-about .about-content,
.product-bridor .card-title {
  max-width: 100%;
}

.about-imgs img,
.post-header__thumbnail img,
.img-map {
  max-width: 100%;
  object-fit: cover;
}

.header-menu .mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 992px) {
  html,
  body {
    overflow-x: hidden;
  }

  .top-bar .container-fluid,
  header .container-fluid {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .brands-section {
    padding: 32px 0;
  }

  .brands-section h2 {
    margin-bottom: 22px;
    font-size: 25px !important;
  }

  .brands-map {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 620px;
    gap: 14px;
  }

  .brands-map > a,
  .brands-map__item {
    min-width: 0;
    height: 128px;
    padding: 14px;
  }

  .brands-map img {
    width: 100% !important;
    height: 100% !important;
    max-width: min(150px, 100%);
    max-height: 92px;
    object-fit: contain !important;
  }

  .brands-map__item--bridor {
    display: flex !important;
  }

  .hero-carousel .content-box .content {
    padding: 32px 16px;
  }

  .hero-carousel .content-box h1 {
    font-size: clamp(28px, 9vw, 44px);
  }

  .section-about .about-content {
    width: 100%;
    margin-top: 24px;
  }

  .about-imgs {
    padding-top: 24px;
  }

  .about-imgs,
  .marks-wrapper,
  .partnership-content-box,
  .distribution-section .row,
  .factory-section .row,
  .section-about .row {
    row-gap: 24px;
  }

  .img-map {
    height: auto;
    max-height: 360px;
  }
}

@media screen and (max-width: 576px) {
  .brands-map {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 360px;
    gap: 8px;
  }

  .brands-map > a,
  .brands-map__item {
    height: 78px;
    padding: 8px 4px;
  }

  .brands-map img {
    width: 100% !important;
    height: 100% !important;
    max-width: min(74px, 100%);
    max-height: 58px;
    object-fit: contain !important;
  }

  .brands-map .icon-bridor {
    top: 4px;
    max-width: calc(100% - 10px);
    padding: 3px 6px;
    overflow: hidden;
    font-size: 7px !important;
    text-overflow: ellipsis;
  }

  .top-bar .row,
  .bottom-footer .row {
    row-gap: 12px;
  }

  .social-media-links,
  .bottom-footer .payment-options {
    justify-content: center;
  }

  .post-header__thumbnail img {
    height: auto;
  }
}
