:root {
  --tmx-ig-gap: 12px;
  --tmx-ig-radius: 14px;
  --tmx-ig-nav: 44px;
}
.moments-wrap {
  background-color: var(--white);
}
/* WRAPPER */
.tmx-ig-wrapper {
  position: relative;
  margin: 0 auto;
}

/* SCROLL AREA */
.tmx-ig-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* MASONRY */
.tmx-ig-masonry {
  column-gap: var(--tmx-ig-gap);
  column-count: 2;
}

@media (min-width: 680px) {
  .tmx-ig-masonry {
    column-count: 3;
  }
}

@media (min-width: 980px) {
  .tmx-ig-masonry {
    column-count: 4;
  }
}

@media (min-width: 1280px) {
  .tmx-ig-masonry {
    column-count: 5;
  }
}

/* CARD */
.tmx-ig-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--tmx-ig-gap);
  break-inside: avoid;
  border-radius: var(--tmx-ig-radius);
  overflow: hidden;
  background: #eee;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease;
}

.tmx-ig-card:hover {
  transform: translateY(-4px);
}
.tmx-ig-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmx-ig-card.video .play-btn,
.tmx-ig-card.video .pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.4);
  /* Slight glow */
  backdrop-filter: blur(3px);
  /* Only this part blurs background */
  -webkit-backdrop-filter: blur(3px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.tmx-ig-card.video .play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.tmx-ig-card.video .pause-btn::after {
  content: "";
  display: block;
  width: 12px;
  height: 16px;
  border-left: 4px solid white;
  border-right: 4px solid white;
}

.tmx-ig-card.video .pause-btn {
  opacity: 0;
  pointer-events: none;
}

.tmx-ig-card.video.playing .pause-btn,
.tmx-ig-card.video.playing:hover .pause-btn {
  opacity: 1;
  pointer-events: all;
}
/* HEIGHT TYPES */
.tmx-ig-short {
  height: 220px;
}

.tmx-ig-tall {
  height: 300px;
}

/* matches your collage look */

/* IMAGE */
.tmx-ig-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGES */
.tmx-ig-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmx-ig-play {
  background: rgba(0, 0, 0, 0.65);
}

.tmx-ig-ig {
  background: rgba(0, 0, 0, 0.6);
}

/* ARROWS */
.tmx-ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--tmx-ig-nav);
  height: var(--tmx-ig-nav);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #2f74d0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(47, 116, 208, 0.25);
  z-index: 20;
}

.tmx-ig-left {
  left: -16px;
}

.tmx-ig-right {
  right: -16px;
}

.tmx-ig-nav-btn svg {
  width: 18px;
  height: 18px;
}

.tmx-ig-nav-btn[aria-hidden="true"] {
  display: none;
}
/* .tmx-ig-card::after {
  --size: 23px;
  content: "";
  display: block;
  width: var(--size);
  height: var(--size);
  background-image: url(../images/icons/v2/insta-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: 10px;
  right: 10px;
} */
.btn-vsecond.insta,
.btn-vsecond.insta:hover,
.btn-vsecond.insta:focus {
  background-color: var(--hm-red);
  border-color: var(--hm-red);
  background-image: url(../images/icons/v2/insta-white.svg) !important;
  background-repeat: no-repeat;
  background-position: 7px center;
  padding-right: 12px;
  padding-left: 26px;
  text-transform: uppercase;
  font-size: var(--font-s);
  color: var(--white);
  background-size: 15px;
}

@media (min-width: 992px) {
  .tmx-ig-tall {
    height: 440px;
  }
}
