/** Team **/
.tabs {
  margin-top: 40px;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 10px 24px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
  border-radius: 30px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.tab-btn:hover {
  color: var(--color-orange);
}
.tab-btn.active {
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.tab-row {
  margin: 0;
}
.tab-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
#city-youthz {
  margin-top: 40px;
}

/** HOME: GALLERY **/
.home-features-gallery {
  text-align: center;
  padding: 100px 0 0 0;
}
.gallery-wrapper {
  position: relative;
  margin: 40px 5px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background-color: #ddd;
  border: 1px solid #ddd;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-mobile-prev,
.gallery-mobile-next {
  display: none;
}

/** LIGHTBOX **/
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-prev {
  left: 15px;
}
.lightbox-next {
  right: 15px;
}

@media (max-width: 767px) {
  .gallery-wrapper {
    margin: 40px 10px 0;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .gallery-grid {
    display: block;
    border: none;
    background: none;
  }
  .gallery-grid .gallery-item {
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    display: none;
  }
  .gallery-mobile-prev,
  .gallery-mobile-next {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    font-size: 1.3rem;
    padding: 4px 8px;
    cursor: pointer;
    line-height: 1;
    color: var(--color-blue);
    transition: color 0.3s ease;
  }
  .gallery-mobile-prev:hover,
  .gallery-mobile-next:hover {
    color: var(--color-orange);
  }
  .gallery-mobile-prev {
    left: -50px;
  }
  .gallery-mobile-next {
    right: -50px;
  }
}
