.tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tabs-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  white-space: nowrap;
  flex: 1;
  /* take available space */
  /* padding: 10px 0; */
  border-bottom: 2px solid #ddd;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 8px;
  text-decoration: none;
  color: #333;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.3s;
}

.tab-item:hover {
  border-bottom-color: #007bff;
  color: #007bff;
}


.tab-item.active {
  border-bottom-color: #007bff;
  font-weight: bold;
  color: #007bff;
}

/* Scroll buttons */
.scroll-btn {
  background-color: #f1f1f1;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 5px 5px;
  margin: 0 5px;
  user-select: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.scroll-btn:hover {
  background-color: #ddd;
}

.page__content>div[data-id] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.page__content>div[data-id].active {
  max-height: 2000px;
  /* adjust as needed */
  opacity: 1;
  visibility: visible;
  overflow: visible;
}


.tab-content {
  transition: opacity 0.3s ease, height 0.3s ease;
  overflow: hidden;
  height: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  /* So hidden tabs don’t affect layout */
  width: 100%;
}

.tab-content.active {
  height: auto;
  /* Let it expand */
  opacity: 1;
  visibility: visible;
  position: relative;
  /* Normal flow for active tab */
}

a.post__title-link:hover {
  color: #000 !important;
}

span.lsvr-townpress-menu-widget__item-link-label:hover {
  color: #000 !important;
  text-decoration: none !important;
}


.gallery-mini-left {
  --size: min(60vmin, 400px);
  box-shadow:
    0 0 10px #0002,
    0 20px 40px -20px #0004;
  height: var(--size);
  background: #fff;
  border: 6px solid #fff;
  display: grid;
  grid-template-rows: 50% 50%;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  gap: 6px;
}

.gallery-mini-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
}

@keyframes moveHorizontal {
  to {
    object-position: 100% 0;
  }
}

@keyframes moveVertical {
  to {
    object-position: 0 100%;
  }
}

@keyframes shrinkVertical {
  to {
    height: 0;
  }
}

@keyframes shrinkHorizontal {
  to {
    width: 0;
  }
}

@keyframes growHorizontal {
  to {
    width: 100%;
  }
}

.gallery-mini-left img:nth-child(1).play-animation {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  animation:
    moveHorizontal 8.5s 0.5s forwards,
    shrinkHorizontal 2s 9s ease-in forwards;
}

.gallery-mini-left img:nth-child(2).play-animation {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  animation:
    shrinkHorizontal 2s 11s forwards;
}

.gallery-mini-left img:nth-child(3).play-animation {
  grid-row: 2;
  grid-column: 1 / 3;
  align-self: end;
  animation:
    moveVertical 5s 1s forwards,
    shrinkVertical 3s 5s forwards;
}

.gallery-mini-left img:nth-child(4).play-animation {
  grid-column: 1 / 3;
  grid-row: 1;
  width: 0;
  justify-self: center;
  align-self: start;
  animation:
    growHorizontal 2.25s 11s forwards,
    moveHorizontal 4s 14s forwards,
    shrinkVertical 2s 18s forwards;
}

.gallery-mini-left img:nth-child(5).play-animation {
  grid-column: 1;
  grid-row: 2;
  width: 0;
  justify-self: start;
  align-self: end;
  animation:
    growHorizontal 2.5s 7.5s forwards,
    moveVertical 4s 12.5s forwards,
    shrinkHorizontal 2s 17s forwards;
}

.gallery-mini-left img:nth-child(6).play-animation {
  grid-column: 2;
  grid-row: 2;
  width: 0;
  justify-self: end;
  align-self: end;
  animation:
    growHorizontal 2s 8s forwards,
    shrinkHorizontal 2s 17s forwards;
}

.gallery-mini-left img:nth-child(7).play-animation {
  grid-column: 1/3;
  grid-row: 1/3;
  width: 0;
  justify-self: end;
  align-self: end;
  object-position: 0 0;
  animation:
    growHorizontal 2s 20s forwards,
    moveHorizontal 16s 21.5s forwards;
}

