.custom-gallery-tabs {
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.gallery-tab {
  background: #eee;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 90px;
  white-space: nowrap;
}
.gallery-tab.active, .gallery-tab:hover {
  background: #b3c6e7;
}
.gallery-arrow {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 0.5rem;
  font-size: 2rem;
}
#gallery-image {
  max-width: 100%;
  height: auto;
  max-height: 50vh;
  margin: 0 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 10px;
}
#gallery-caption {
  font-size: 1rem;
  color: #555;
  word-break: break-word;
}
@media (max-width: 768px) {
  .custom-gallery-tabs {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem;
  }
  .gallery-tab {
    font-size: 0.95rem;
    min-width: 120px;
    padding: 0.5rem 0.5rem;
  }
  .custom-gallery-view {
    flex-direction: column;
  }
  #gallery-image {
    max-width: 95vw;
    max-height: 35vh;
    margin: 0.5rem 0;
  }
  .gallery-arrow {
    font-size: 2.2rem;
    margin: 0 0.2rem;
  }
}
@media (max-width: 480px) {
  #gallery-image {
    max-width: 98vw;
    max-height: 25vh;
  }
  .gallery-tab {
    font-size: 0.9rem;
    min-width: 100px;
    padding: 0.4rem 0.3rem;
  }
}
