/* Brand logo and uploaded media presentation. */
.tamba-site-logo {
  width: clamp(170px, 14vw, 220px);
  max-width: 220px;
  margin: 0;
  justify-self: start;
}

.tamba-site-logo a,
.tamba-site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.tamba-site-logo img {
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.tamba-footer-logo {
  width: min(220px, 100%);
  margin: 0 0 20px;
}

/* Keep footer contact symbols compact and aligned with their text. */
.tamba-footer-contact-icon,
.site-footer__contact-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* Use the same horizontal grid for the header and page sections. */
.tamba-site-header__inner {
  width: min(var(--wp--custom--layout--content, 1180px), calc(100% - 48px)) !important;
  max-width: var(--wp--custom--layout--content, 1180px) !important;
}

/* Keep all hero copy flush with the left edge of the shared container. */
.tamba-hero-slide .tamba-shell {
  justify-content: flex-start !important;
}

.tamba-hero-slide .tamba-hero__content {
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left !important;
}

.tamba-hero-slide .tamba-hero__content > *,
.tamba-hero-slide .tamba-hero__content.is-layout-constrained > * {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

.tamba-hero-slide .tamba-actions {
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

/*
 * The events section overlaps the hero by 34px. Keep the controls above that
 * overlap plus a visible inner gap so they remain fully on the hero image.
 */
.tamba-hero-slider__controls {
  top: auto !important;
  right: auto !important;
  bottom: 58px !important;
  left: 50% !important;
  margin: 0 !important;
  justify-content: center;
  transform: translateX(-50%);
}

.tamba-hero-slider > .tamba-hero-slide:nth-child(1) > .wp-block-cover__image-background {
  object-position: center 42%;
}

.tamba-hero-slider > .tamba-hero-slide:nth-child(2) > .wp-block-cover__image-background {
  object-position: 68% center;
}

.tamba-hero-slider > .tamba-hero-slide:nth-child(3) > .wp-block-cover__image-background {
  object-position: 68% center;
}

/* Why Tamba icons supplied as separate transparent PNG assets. */
.tamba-why-card__icon {
  display: block !important;
  width: 76px !important;
  height: 76px !important;
  margin-bottom: 22px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.tamba-why-card:nth-child(1) .tamba-why-card__icon {
  background-image: url("../images/why-tamba/choose-better-experiences.png") !important;
}

.tamba-why-card:nth-child(2) .tamba-why-card__icon {
  background-image: url("../images/why-tamba/worth-remembering.png") !important;
}

.tamba-why-card:nth-child(3) .tamba-why-card__icon {
  background-image: url("../images/why-tamba/everyone-belongs.png") !important;
}

.tamba-why-card:nth-child(4) .tamba-why-card__icon {
  background-image: url("../images/why-tamba/meaningful-connections.png") !important;
}

.tamba-gallery > .wp-block-image img {
  background: #efe8df;
}

@media (max-width: 1100px) {
  .tamba-site-logo {
    width: 180px;
  }
}

@media (max-width: 700px) {
  .tamba-site-logo {
    width: 150px;
  }

  .tamba-site-logo img {
    max-height: 50px;
  }

  .tamba-footer-logo {
    margin-bottom: 16px;
  }

  .tamba-hero-slider__controls {
    bottom: 50px !important;
  }

  .tamba-why-card__icon {
    width: 68px !important;
    height: 68px !important;
  }
}
