
/* Instagram gallery container */
.hb-instagram {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 26px 16px;
  background: #fff;
  overflow: hidden;
}

/* Header */
.hb-instagram__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.hb-instagram__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hb-instagram__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.hb-instagram__icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

/* Drupal wraps field values in additional divs */
.hb-instagram__title,
.hb-instagram__title > div {
  margin: 0;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.hb-instagram__subtitle,
.hb-instagram__subtitle > div {
  margin: 2px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #444;
}

/* Follow button */
.hb-instagram__follow {
  flex-shrink: 0;
}

.hb-instagram__follow a {
  display: inline-block;
  padding: 10px 15px;
  border: 2px solid #ff6b75;
  border-radius: 4px;
  color: #ed4b5b;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.hb-instagram__follow a:hover {
  background: #fff1f2;
}

/* Gallery viewport */
.hb-instagram__gallery-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hb-instagram__gallery {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hb-instagram__gallery::-webkit-scrollbar {
  display: none;
}

/* Drupal's image field wrappers */
.hb-instagram__track {
  width: 100%;
}

.hb-instagram__track > div {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
}

.hb-instagram__track > div > div {
  display: block;
  flex: 0 0 136px;
  width: 136px;
  height: 132px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hb-instagram__track img {
  display: block;
  width: 100% !important;
  height: 132px !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Navigation arrows */
.hb-instagram__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.hb-instagram__arrow--prev {
  left: -15px;
}

.hb-instagram__arrow--next {
  right: -15px;
}

.hb-instagram__arrow:hover {
  background: #f3f3f3;
}

@media (max-width: 600px) {
  .hb-instagram {
    padding: 12px 18px;
  }

  .hb-instagram__header {
    gap: 8px;
  }

  .hb-instagram__title,
  .hb-instagram__title > div {
    font-size: 15px;
  }

  .hb-instagram__subtitle,
  .hb-instagram__subtitle > div {
    font-size: 10px;
  }

  .hb-instagram__follow a {
    padding: 8px;
    font-size: 10px;
  }

  .hb-instagram__track > div > div {
    flex-basis: 120px;
    width: 120px;
    height: 115px;
  }

  .hb-instagram__track img {
    height: 115px !important;
  }
}