/*--------------------------------------------------------------
  Gallery Section (Skill Manthra) - custom addition
  Reuses theme variables (--sm-navy / --sm-gold); does not touch style.css
--------------------------------------------------------------*/

.sm-gallery {
  position: relative;
  display: block;
  padding: 110px 0 120px;
  overflow: hidden;
  z-index: 1;
}

.sm-gallery__intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 27px;
  color: var(--glorify-gray);
}

/* Filter tabs (reuses the theme's post-filter / filter-layout isotope hooks) */
.sm-gallery__filter.post-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 45px 0 50px;
  padding: 0;
  list-style: none;
}

.sm-gallery__filter.post-filter li {
  display: inline-flex;
  background-color: var(--glorify-white);
  color: var(--sm-navy);
  border: 1.5px solid rgba(13, 46, 98, .14);
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sm-gallery__filter.post-filter li .filter-text {
  display: inline-block;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--glorify-font-two);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sm-gallery__filter.post-filter li:hover,
.sm-gallery__filter.post-filter li.active {
  background-color: var(--sm-navy);
  border-color: var(--sm-navy);
}

.sm-gallery__filter.post-filter li:hover .filter-text,
.sm-gallery__filter.post-filter li.active .filter-text {
  color: var(--sm-gold);
}

/* Grid items */
.sm-gallery__item {
  margin-bottom: 30px;
}

.sm-gallery__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--glorify-bdr-radius, 10px);
  box-shadow: 0 10px 30px rgba(13, 46, 98, .08);
}

.sm-gallery__card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sm-gallery__card:hover img {
  transform: scale(1.08);
}

.sm-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 46, 98, 0) 40%, rgba(13, 46, 98, .85) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.sm-gallery__card:hover .sm-gallery__overlay {
  opacity: 1;
}

.sm-gallery__cat {
  color: var(--sm-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.sm-gallery__title {
  color: var(--glorify-white);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.sm-gallery__zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--sm-gold);
  color: var(--sm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.sm-gallery__card:hover .sm-gallery__zoom {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .sm-gallery__card img {
    height: 220px;
  }
}
