/*--------------------------------------------------------------
# SINGLE GALERY
--------------------------------------------------------------*/
.single-gallery .ctm-section-title {
  text-align: center;
  position: relative;
}

.single-gallery .image-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.single-gallery .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(80, 6, 141, 0.6), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.single-gallery .image-wrapper:hover .image-overlay {
  opacity: 1;
}

.single-gallery .overlay-title {
  margin: 0;
  font-size: 1.3rem;
  color: #fff !important;
  z-index: 2;
}

.single-gallery .single-image {
  padding: 30px;
}

.single-gallery .single-image img {
  box-shadow: 0 8px 10px -4px rgba(0, 0, 0, 0.3);
}

.single-gallery .ctm-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #602255;
}

.single-gallery .title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px;
}

.single-gallery .related-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.single-gallery .related-gallery::-webkit-scrollbar {
  height: 6px;
}

.single-gallery .related-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.single-gallery .related-gallery a.related-item {
  flex: 0 0 auto;
  width: 250px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.single-gallery .related-gallery a.related-item:hover {
  background: linear-gradient(to right, #800080, #ffffff);
  font-weight: 400;
  font-style: italic;
}
