.col-grid {
  display: flex;
  gap: 15px;
  height: 100%;
  margin-right: -25vw;
  margin-left: -25vw;
}

.col-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dynamic height control per column */
.col-column .col-tile:first-child {
  flex-basis: var(--top);
}

.col-column .col-tile:last-child {
  flex-basis: var(--bottom);
}

.col-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.col-tile a img {
  transition: transform 920ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.col-tile:hover {
  transform: scale(1.03);
}
.col-tile:hover > a img {
  transform: scale(1.1);
}

/* Cover image */
.col-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  background: #B3B3BC;
  color: rgba(0, 0, 0, 0.75);
  position: relative;
  border: 0;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  height: 40px;
}
.tab-btn.is-active {
  background: #2F3033;
  color: rgba(255, 255, 255, 0.75);
}
.tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px; /* how far it sticks out */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #2f3236; /* same as active bg */
}

/* Tab panels container wrapper (optional but recommended) */
.panels {
  position: relative;
  height: 1000px;
  /* overflow: hidden; */
}

/* Animated grids */
.col-grid {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.col-grid.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tabs-wrap {
  position: sticky; /* optional: keep tabs visible */
  top: 0;
  width: 100%;
  z-index: 5;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox hide */
  padding: 0 12px;
  padding-bottom: 15px;
}
.tabs:not(.container) {
  justify-content: center;
}

.tabs::-webkit-scrollbar {
  display: none;
} /* Chrome/Safari hide */
@media (max-width: 640px) {
  .col-tile {
    min-width: 50vw;
  }
  .panels::-webkit-scrollbar {
    display: none;
  }
  .panels {
    overflow-x: auto;
    height: 50vh;
  }
  .col-grid {
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
  }
  .col-column {
    gap: 12px;
  }
  .tabs {
    justify-content: normal;
  }
}