.brnd-events_page_gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.brnd-events_page_gallery-bg-wrap {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  background-size: contain;
  align-content: stretch;
  justify-content: center;
  align-items: center;
}
.brnd-events_page_gallery-items {
  max-width: 1270px;
  width: 95%;
  margin: auto;
}
.brnd-events_page_gallery-item-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brnd-events_page_gallery-item-img-wrap {
  position: relative;
  width: 350px;
  height: 350px;
  overflow: hidden;
}
.brnd-events_page_gallery-item-img {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition-property: top, right, bottom, left;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
  will-change: top, right, bottom, left;
}
.brnd-events_page_gallery-item-wrap:hover .brnd-events_page_gallery-item-img {
  top: -15px;
  right: -15px;
  bottom: -15px;
  left: -15px;
}
.brnd-events_page_gallery-item-info-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}
.brnd-events_page_gallery-item-texts-wrap {
  padding: 0 16px;
}
.brnd-events_page_gallery-item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  padding-top: 12px;
  margin-bottom: 0px;
}

.brnd-events_page_gallery-item-text {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
}

.brnd-events_page_gallery-item-btn {
  display: block;
  color: white;
  background: var(--brnd-primary-blue);
  border: solid 1px var(--brnd-primary-blue);
  width: 170px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
}
.brnd-events_page_gallery-item-btn:hover {
  background: white;
  color: var(--brnd-primary-blue);
}

.brnd-events_page_gallery-item-dates-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 216px;
  text-align: center;
  flex-direction: column;
  background-size: cover;
  background: var(--brnd-primary-blue);
}

.brnd-events_page_gallery-item-date-icon {
  width: 36px;
  margin-bottom: 16px;
}

.brnd-events_page_gallery-item-date-text {
  font-size: 24px;
  font-weight: 700;
  color: white
}

@media screen and (min-width: 1336px) {
  .brnd-events_page_gallery-item-texts-wrap {
    padding-right: 35px;
    /* 1270px is the max container width, width is 95% (1336.84), image is 350, date wrap is 300 */
    max-width: 620px;
  }
}

@media screen and (max-width: 1335px) {
  .brnd-events_page_gallery-item-wrap {
    display: block;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: solid 1px var(--brnd-light-blue);
  }
  .brnd-events_page_gallery-item-wrap:last-of-type {
    border-bottom-width: 0
  }
  .brnd-events_page_gallery-item-info-wrap {
    flex-direction: row-reverse;
    margin-top: 8px;
  }
  .brnd-events_page_gallery-item-img-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
  }
}

@media screen and (max-width: 500px) {
  .brnd-events_page_gallery-item-info-wrap {
    flex-direction: column-reverse;
  }
  .brnd-events_page_gallery-item-texts-wrap {
    padding: 0;
  }
  .brnd-events_page_gallery-item-dates-wrap {
    width: 100%;
    height: auto;
    padding: 8px;
    flex-direction: row;
    align-items: center;
  }
  .brnd-events_page_gallery-item-date-icon {
    margin-bottom: 0;
    margin-left: 16px;
  }
  .brnd-events_page_gallery-item-btn {
    width: 100%;
  }
}
