.travity-gallery {
  margin: 2rem 0;
}

.travity-gallery h2 {
  margin-bottom: 0.5rem;
}

.travity-gallery p {
  margin-bottom: 1.5rem;
  color: #666;
}

.travity-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.travity-gallery .gallery-item {
  padding:5px !important;
  margin:0 !important;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  margin:5px;
  padding: 10px;
  font-size: 0.95em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.travity-gallery-grid .gallery-item {
  position: relative;
  width: 100%;
}

@media (min-width: 576px) {
  .travity-gallery-grid .gallery-item {
	flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .travity-gallery-grid .gallery-item {
	flex: 0 0 25%;
  }
}

.travity-gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Slider basic layout (fallback) */
.travity-gallery-slider .slider-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.travity-gallery-slider img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.slider-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  text-align: center;
}