/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */
.dfn-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.dfn-box {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.dfn-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.3s ease;
}

.dfn-box:hover img {
  transform: scale(1.05);
}

.dfn-box span {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
