.gallery-section {
  padding: 150px 0;
}

.gallery-section .section-subtitle{
  margin-bottom: 56px;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
}

.gallery-item {
  background: #e3e9f7;
  overflow: hidden;
  padding: 12px;
  transition: transform 0.3s ease;
  box-shadow: 4px 4px 8px #96acdd;

}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-images {
  display: flex;
  gap: 12px;
  flex-direction: row;
  width: 100%;
  height: 320px;
}

.image-block {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.image-block:hover img {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 500;
  user-select: none;
}

.gallery-caption {
  padding: 18px 20px 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--primary-color);
  background-color: #e3e9f7;
}

@media (max-width: 768px) {
  .image-block {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .gallery-images {
    flex-direction: column;
    height: 460px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
}