/* Hugo Easy Gallery CSS */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.gallery .box {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 250px;
  max-width: 400px;
  margin-bottom: 20px;
}

.gallery figure {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gallery .img {
  position: relative;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gallery .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.gallery figcaption {
  padding: 15px;
  background: #fff;
}

.gallery figcaption p {
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.gallery a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  text-decoration: none;
}

/* Hover effects */
.hover-effect-zoom .img {
  transition: transform 0.3s ease;
}

.hover-effect-zoom:hover .img {
  transform: scale(1.05);
}

/* Caption effects */
.caption-effect-slide figcaption {
  transition: transform 0.3s ease;
}

.caption-position-bottom figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  transform: translateY(100%);
}

.caption-effect-slide:hover figcaption {
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
  .gallery .box {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .gallery .box {
    flex: 1 1 100%;
  }
}